public interface TabGroup extends NiftyControl
| Modifier and Type | Method and Description |
|---|---|
void |
addTab(Element tab)
Adds a single tab to the end of the tab list.
|
void |
addTab(Tab tab)
Adds a single tab to the end of the tab list.
|
void |
addTab(TabBuilder tabBuilder)
Add a tab builder to the list.
|
Tab |
getSelectedTab()
Get the tab that is currently selected.
|
int |
getSelectedTabIndex()
Get the index of the tab that is currently selected.
|
int |
getTabCount()
Get the amount of tabs that are currently part of this tab group.
|
int |
indexOf(Tab tab)
Get the index of a specified tab.
|
boolean |
isTabInGroup(Tab tab)
Check if a tab is part of this group.
|
void |
removeTab(Element tab)
Remove a tab from this tab group.
|
void |
removeTab(Element tab,
EndNotify notify)
Remove a tab from this tab group.
|
void |
removeTab(int index)
Removes the tab at a specified list index.
|
void |
removeTab(int index,
EndNotify notify)
Removes the tab at a specified list index.
|
void |
removeTab(Tab tab)
Remove a tab from this tab group.
|
void |
removeTab(Tab tab,
EndNotify notify)
Remove a tab from this tab group.
|
void |
setSelectedTab(Tab tab)
Change the selected tab to a specified tab.
|
void |
setSelectedTabIndex(int index)
Change the selected tab to a index.
|
void |
setTabCaption(int index,
String caption)
Set the caption of a tab.
|
void |
setTabCaption(Tab tab,
String caption)
Set the caption of a tab.
|
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthvoid addTab(Tab tab)
tab - the tab that is supposed to be added to the tab groupNullPointerException - in case the tab parameter is nullvoid addTab(Element tab)
tab - the tab that is supposed to be added to the tab groupNullPointerException - in case the tab parameter is nullIllegalArgumentException - in case the tab does not contain a Tab as registered controlvoid addTab(TabBuilder tabBuilder)
ElementBuilder.build(Nifty, Screen, Element) function.tabBuilder - the builder that is going to construct the tab that will be added to this tab groupNullPointerException - in case the tabBuilder parameter is nullTab getSelectedTab()
null in case there are no tabs in this tab groupint getSelectedTabIndex()
-1 in case there are no tabs in this groupint getTabCount()
int indexOf(Tab tab)
tab - the tab to check-1 in case the tab is not part of this group or nullboolean isTabInGroup(Tab tab)
tab - the tab to checktrue in case the tab is registered to this groupNullPointerException - in case the tab parameter is nullvoid removeTab(int index)
index - the index of the tab that is supposed to be removedIndexOutOfBoundsException - in case the index parameter is less then 0 or larger then getTabCount()void removeTab(Tab tab)
tab - the tab that is supposed to be removedNullPointerException - in case the tab parameter is nullIllegalArgumentException - in case the tab that is supposed to be removed is not a part of this tab groupvoid removeTab(Element tab)
tab - the tab that is supposed to be removedNullPointerException - in case the tab parameter is nullIllegalArgumentException - in case the tab that is supposed to be removed is not a part of this tab group or
in case the tab does not contain a Tab as registered controlvoid removeTab(int index,
EndNotify notify)
index - the index of the tab that is supposed to be removednotify - the notification that is called once the tab is removedIndexOutOfBoundsException - in case the index parameter is less then 0 or larger then getTabCount()void removeTab(Tab tab, EndNotify notify)
tab - the tab that is supposed to be removednotify - the notification that is called once the tab is removedNullPointerException - in case the tab parameter is nullIllegalArgumentException - in case the tab that is supposed to be removed is not a part of this tab groupvoid removeTab(Element tab, EndNotify notify)
tab - the tab that is supposed to be removednotify - the notification that is called once the tab is removedNullPointerException - in case the tab parameter is nullIllegalArgumentException - in case the tab that is supposed to be removed is not a part of this tab group or
in case the tab does not contain a Tab as registered controlvoid setSelectedTab(Tab tab)
tab - the tab that is supposed to be displayed in the tab groupNullPointerException - in case the tab parameter is nullIllegalArgumentException - in case the tab that is supposed to be removed is not a part of this tab groupvoid setSelectedTabIndex(int index)
index - the index of the tab that is supposed to be displayedIndexOutOfBoundsException - in case the index parameter is less then 0 or larger then getTabCount()void setTabCaption(int index,
String caption)
index - the index of the tab that is supposed to get a new captioncaption - the new caption of this tabNullPointerException - in case the caption parameter is nullIndexOutOfBoundsException - in case the index parameter is less then 0 or larger then getTabCount()void setTabCaption(Tab tab, String caption)
tab - the tab that is supposed to receive a new captioncaption - the new caption of this tabIllegalArgumentException - in case the tab that is supposed to be removed is not a part of this tab groupNullPointerException - in case the tab parameter or the caption parameter is nullCopyright © 2013. All Rights Reserved.