|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.widget.core.client.TabItemConfig
public class TabItemConfig
Config object which controls the content and behavior of a widget in a TabPanel.
When updating the config object after the widget has been inserted, you must callTabPanel.update(com.google.gwt.user.client.ui.Widget, TabItemConfig).
| Constructor Summary | |
|---|---|
TabItemConfig()
Creates a tab item configuration. |
|
TabItemConfig(java.lang.String text)
Creates a tab item configuration with the specified text. |
|
TabItemConfig(java.lang.String text,
boolean close)
Creates a tab item configuration with the specified properties. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHTML()
|
ImageResource |
getIcon()
Returns the icon. |
java.lang.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(java.lang.String html)
|
void |
setIcon(ImageResource icon)
Sets the icon. |
void |
setText(java.lang.String text)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TabItemConfig()
public TabItemConfig(java.lang.String text)
text - the text of the tab item.
public TabItemConfig(java.lang.String text,
boolean close)
text - the tab item textclose - true to indicate the tab is closable| Method Detail |
|---|
public java.lang.String getHTML()
getHTML in interface HasHTMLpublic ImageResource getIcon()
HasIcon
getIcon in interface HasIconpublic java.lang.String getText()
getText in interface HasTextpublic 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 setHTML(java.lang.String html)
setHTML in interface HasHTMLpublic void setIcon(ImageResource icon)
HasIcon
setIcon in interface HasIconicon - the iconpublic void setText(java.lang.String text)
setText in interface HasText
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||