public class TabItemConfig extends Object implements HasIcon, HasHTML, HasSafeHtml, 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 |
---|---|
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)
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 ImageResource getIcon()
HasIcon
public 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 HasSafeHtml
public void setIcon(ImageResource icon)
HasIcon
Copyright © 2015. All rights reserved.