public class TabItemConfig extends Object implements HasIcon, HasHTML, HasSafeHtml, HasUiAttributes
TabPanel.update(com.google.gwt.user.client.ui.Widget, TabItemConfig).| Constructor and Description |
|---|
TabItemConfig() |
TabItemConfig(String text) |
TabItemConfig(String text,
boolean close) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHTML() |
ImageResource |
getIcon()
Returns the icon.
|
String |
getText() |
boolean |
isClosable()
Returns the item closable state.
|
boolean |
isEnabled()
Returns the enable / disable state.
|
boolean |
isHTML()
Returns true if the item text is treated as HTML.
|
void |
setClosable(boolean closable)
True to allow the item to be closable (defaults to false).
|
void |
setEnabled(boolean enabled)
True to enable, false to disable (defaults to true).
|
void |
setHTML(SafeHtml html) |
void |
setHTML(String html) |
void |
setIcon(ImageResource icon)
Sets the icon.
|
void |
setText(String text) |
public TabItemConfig()
public TabItemConfig(String text)
public TabItemConfig(String text, boolean close)
public ImageResource getIcon()
HasIconpublic boolean isClosable()
public boolean isEnabled()
public boolean isHTML()
public void setClosable(boolean closable)
closable - true for closablepublic void setEnabled(boolean enabled)
enabled - the enabled statepublic void setHTML(SafeHtml html)
setHTML in interface HasSafeHtmlpublic void setIcon(ImageResource icon)
HasIconCopyright © 2012. All Rights Reserved.