public static interface TabSheet.Tab extends Component.HasIcon, Component.HasCaption
Modifier and Type | Method and Description |
---|---|
TabSheet.TabCloseHandler |
getCloseHandler() |
java.lang.String |
getName() |
java.lang.String |
getStyleName()
Returns the style for UI element that represents the tab header.
|
boolean |
isClosable()
Returns the closability status for the tab.
|
boolean |
isEnabled()
Returns the availability status for the tab.
|
boolean |
isVisible()
Returns the visibility status for the tab.
|
void |
setClosable(boolean closable)
Sets the closability status for the tab.
|
void |
setCloseHandler(TabSheet.TabCloseHandler tabCloseHandler)
Sets a handler that can override the close behavior if
isClosable() is true. |
void |
setEnabled(boolean enabled)
Sets the availability status for the tab.
|
void |
setName(java.lang.String name)
INTERNAL.
|
void |
setStyleName(java.lang.String styleName)
Sets style for UI element that represents the tab header.
|
void |
setVisible(boolean visible)
Sets the visibility status for the tab.
|
getIcon, setIcon, setIconFromSet
getCaption, setCaption
getDescription, setDescription
java.lang.String getName()
void setName(java.lang.String name)
boolean isEnabled()
@StudioProperty(name="enable", defaultValue="true") void setEnabled(boolean enabled)
enabled
- true if tab is enabled, false otherwiseboolean isVisible()
@StudioProperty(defaultValue="true") void setVisible(boolean visible)
visible
- true if tab is visible, false otherwiseboolean isClosable()
@StudioProperty(defaultValue="false") void setClosable(boolean closable)
closable
- true if the tab should be closable from the UI, false otherwisevoid setCloseHandler(@Nullable TabSheet.TabCloseHandler tabCloseHandler)
isClosable()
is true.
Default action just removes the tab.tabCloseHandler
- tab close handler@Nullable TabSheet.TabCloseHandler getCloseHandler()
@StudioProperty(name="stylename", type=CSS_CLASSNAME_LIST) void setStyleName(@Nullable java.lang.String styleName)
styleName
- style name@Nullable java.lang.String getStyleName()
null
if no style name has been set