NiftyControlTabControlpublic interface Tab extends NiftyControl
TabGroup.
For the most aspects it behaves like a simple panel.| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getCaption() |
Get the caption that is currently set for this tab.
|
TabGroup |
getParentGroup() |
Get the parent group of tabs this tab is a member of.
|
boolean |
hasParent() |
Check if this tab was added to a parent tab group.
|
boolean |
isVisible() |
Check if this tab is the one that is currently visible in a tab group.
|
void |
setCaption(java.lang.String caption) |
Set the caption of the tab.
|
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth@Nonnull java.lang.String getCaption()
@Nullable TabGroup getParentGroup()
null in case this tab is not yet assigned to a tab groupboolean hasParent()
true if this tab is part of a groupboolean isVisible()
true if this tab is the one currently displayedvoid setCaption(@Nonnull
java.lang.String caption)
caption - the text to displayCopyright © 2018. All rights reserved.