protected class TabSheetImpl.Tab extends java.lang.Object implements TabSheet.Tab
| Constructor and Description |
|---|
Tab(java.lang.String name,
Component tabComponent) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCaption() |
TabSheet.TabCloseHandler |
getCloseHandler() |
Component |
getComponent() |
java.lang.String |
getDescription() |
java.lang.String |
getIcon()
Get icon source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.
|
java.lang.String |
getName() |
java.lang.String |
getStyleName()
Returns the style for UI element that represents the tab header.
|
protected com.vaadin.ui.TabSheet.Tab |
getVaadinTab() |
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 |
setCaption(java.lang.String caption)
Sets the component's caption.
|
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
TabSheet.Tab.isClosable() is true. |
void |
setDescription(java.lang.String description)
Sets the component's description.
|
void |
setEnabled(boolean enabled)
Sets the availability status for the tab.
|
void |
setIcon(java.lang.String icon)
Set an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.
|
void |
setIconFromSet(Icons.Icon icon)
Set an icon from an icon set.
|
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.
|
public Tab(java.lang.String name,
Component tabComponent)
protected com.vaadin.ui.TabSheet.Tab getVaadinTab()
public Component getComponent()
public java.lang.String getName()
getName in interface TabSheet.Tabpublic void setName(java.lang.String name)
TabSheet.TabsetName in interface TabSheet.Tab@Nullable public java.lang.String getCaption()
getCaption in interface Component.HasCaptionpublic void setCaption(@Nullable
java.lang.String caption)
Component.HasCaptionsetCaption in interface Component.HasCaptioncaption - the new component's captionpublic boolean isEnabled()
TabSheet.TabisEnabled in interface TabSheet.Tabpublic void setEnabled(boolean enabled)
TabSheet.TabsetEnabled in interface TabSheet.Tabenabled - true if tab is enabled, false otherwisepublic boolean isVisible()
TabSheet.TabisVisible in interface TabSheet.Tabpublic void setVisible(boolean visible)
TabSheet.TabsetVisible in interface TabSheet.Tabvisible - true if tab is visible, false otherwisepublic boolean isClosable()
TabSheet.TabisClosable in interface TabSheet.Tabpublic void setClosable(boolean closable)
TabSheet.TabsetClosable in interface TabSheet.Tabclosable - true if the tab should be closable from the UI, false otherwise@Nullable public TabSheet.TabCloseHandler getCloseHandler()
getCloseHandler in interface TabSheet.Tabpublic void setCloseHandler(@Nullable
TabSheet.TabCloseHandler tabCloseHandler)
TabSheet.TabTabSheet.Tab.isClosable() is true.
Default action just removes the tab.setCloseHandler in interface TabSheet.TabtabCloseHandler - tab close handlerpublic void setStyleName(java.lang.String styleName)
TabSheet.TabsetStyleName in interface TabSheet.TabstyleName - style namepublic java.lang.String getStyleName()
TabSheet.TabgetStyleName in interface TabSheet.Tabnull if no style name has been set@Nullable public java.lang.String getIcon()
Component.HasIcongetIcon in interface Component.HasIconpublic void setIcon(@Nullable
java.lang.String icon)
Component.HasIconsetIcon in interface Component.HasIconpublic void setIconFromSet(@Nullable
Icons.Icon icon)
Component.HasIconsetIconFromSet in interface Component.HasIconpublic void setDescription(@Nullable
java.lang.String description)
Component.HasDescriptionsetDescription in interface Component.HasDescriptiondescription - the new description to set@Nullable public java.lang.String getDescription()
getDescription in interface Component.HasDescription