public class TabItemConfig extends Object implements HasIcon, HasUiAttributes
TabPanel#update(com.google.gwt.user.client.ui.Widget, TabItemConfig)
.Constructor and Description |
---|
TabItemConfig()
Creates a tab item configuration.
|
TabItemConfig(String text)
Creates a tab item configuration with the specified text.
|
TabItemConfig(String text,
boolean close)
Creates a tab item configuration with the specified properties.
|
Modifier and Type | Method and Description |
---|---|
SafeHtml |
getContent()
Returns the content of the label.
|
String |
getHTML()
Returns the content of the label as html.
|
ImageResource |
getIcon()
Returns the icon.
|
String |
getText()
Returns the content of the label as text.
|
boolean |
isClosable()
Returns the item closable state.
|
boolean |
isEnabled()
Returns the enable / disable state.
|
void |
setClosable(boolean closable)
True to allow the item to be closable (defaults to false).
|
void |
setContent(SafeHtml html)
Sets the content of the label as html.
|
void |
setEnabled(boolean enabled)
True to enable, false to disable (defaults to true).
|
void |
setHTML(SafeHtml html)
Sets the content of the label as html.
|
void |
setIcon(ImageResource icon)
Sets the icon.
|
void |
setText(String text)
Sets the content of the label as text.
|
public TabItemConfig()
public TabItemConfig(String text)
text
- the text of the tab item.public TabItemConfig(String text, boolean close)
text
- the tab item textclose
- true to indicate the tab is closablepublic SafeHtml getContent()
public void setContent(SafeHtml html)
html
- the label content htmlpublic String getText()
getHTML()
public void setText(String text)
text
- the textpublic String getHTML()
public void setHTML(SafeHtml html)
html
- the htmlpublic ImageResource getIcon()
HasIcon
public boolean isClosable()
public boolean isEnabled()
public void setClosable(boolean closable)
closable
- true for closablepublic void setEnabled(boolean enabled)
enabled
- the enabled stateCopyright © 2018. All rights reserved.