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 |
---|---|
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 |
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 String getHTML()
public ImageResource getIcon()
HasIcon
public String getText()
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)
public void setIcon(ImageResource icon)
HasIcon
public void setText(String text)
Copyright © 2018. All rights reserved.