public static interface TabSheet.Tab extends Component.HasIcon, Component.HasCaption
Modifier and Type | Method and Description |
---|---|
TabSheet.TabCloseHandler |
getCloseHandler() |
java.lang.String |
getName()
Get tab id.
|
java.lang.String |
getStyleName() |
boolean |
isClosable()
Whether the tab has a button that allows a user to close the tab.
|
boolean |
isDetachable()
Whether the tab can be detached to a new window in desktop client.
|
boolean |
isEnabled()
Whether the tab is enabled.
|
boolean |
isVisible()
Whether the tab is visible.
|
void |
setClosable(boolean closable) |
void |
setCloseHandler(TabSheet.TabCloseHandler tabCloseHandler)
Set a handler that can override the close behavior if
isClosable() is true. |
void |
setDetachable(boolean detachable) |
void |
setEnabled(boolean enabled) |
void |
setName(java.lang.String name)
INTERNAL.
|
void |
setStyleName(java.lang.String styleName)
Set style for UI element that represents the tab header.
|
void |
setVisible(boolean visible) |
getIcon, setIcon, setIconFromSet
getCaption, setCaption
getDescription, setDescription
java.lang.String getName()
void setName(java.lang.String name)
boolean isEnabled()
void setEnabled(boolean enabled)
boolean isVisible()
void setVisible(boolean visible)
boolean isClosable()
void setClosable(boolean closable)
boolean isDetachable()
void setDetachable(boolean detachable)
void setCloseHandler(TabSheet.TabCloseHandler tabCloseHandler)
isClosable()
is true.
Default action just removes the tab.TabSheet.TabCloseHandler getCloseHandler()
void setStyleName(java.lang.String styleName)
styleName
- stylejava.lang.String getStyleName()