Controller, NiftyControl, TabGroupTabGroup interface.@Deprecated public class TabGroupControl extends AbstractController implements TabGroup
| Constructor | Description |
|---|---|
TabGroupControl() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addTab(Tab tab) |
Deprecated.
Adds a single tab to the end of the tab list.
|
void |
addTab(TabBuilder tabBuilder) |
Deprecated.
Add a tab builder to the list.
|
void |
addTab(Element tab) |
Deprecated.
Adds a single tab to the end of the tab list.
|
void |
bind(Nifty nifty,
Screen screen,
Element element,
Parameters parameter) |
Deprecated.
|
Tab |
getSelectedTab() |
Deprecated.
Get the tab that is currently selected.
|
int |
getSelectedTabIndex() |
Deprecated.
Get the index of the tab that is currently selected.
|
Tab |
getTabAtIndex(int index) |
Deprecated.
Get the tab control at a specified index.
|
int |
getTabCount() |
Deprecated.
Get the amount of tabs that are currently part of this tab group.
|
int |
indexOf(Tab tab) |
Deprecated.
Get the index of a specified tab.
|
void |
init(Parameters parameter) |
Deprecated.
|
boolean |
inputEvent(NiftyInputEvent inputEvent) |
Deprecated.
|
boolean |
isTabInGroup(Tab tab) |
Deprecated.
Check if a tab is part of this group.
|
void |
onStartScreen() |
Deprecated.
|
void |
removeTab(int index) |
Deprecated.
Removes the tab at a specified list index.
|
void |
removeTab(int index,
EndNotify notify) |
Deprecated.
Removes the tab at a specified list index.
|
void |
removeTab(Tab tab) |
Deprecated.
Remove a tab from this tab group.
|
void |
removeTab(Tab tab,
EndNotify notify) |
Deprecated.
Remove a tab from this tab group.
|
void |
removeTab(Element tab) |
Deprecated.
Remove a tab from this tab group.
|
void |
removeTab(Element tab,
EndNotify notify) |
Deprecated.
Remove a tab from this tab group.
|
void |
setSelectedTab(Tab tab) |
Deprecated.
Change the selected tab to a specified tab.
|
void |
setSelectedTabIndex(int index) |
Deprecated.
Change the selected tab to a index.
|
void |
setTabCaption(int index,
java.lang.String caption) |
Deprecated.
Set the caption of a tab.
|
void |
setTabCaption(Tab tab,
java.lang.String caption) |
Deprecated.
Set the caption of a tab.
|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, onEndScreen, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthdisable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthpublic void addTab(@Nonnull
Element tab)
TabGrouppublic void addTab(@Nonnull
TabBuilder tabBuilder)
TabGroupElementBuilder.build(de.lessvoid.nifty.Nifty, de.lessvoid.nifty.screen.Screen, Element) function.public void bind(@Nonnull
Nifty nifty,
@Nonnull
Screen screen,
@Nonnull
Element element,
@Nonnull
Parameters parameter)
bind in interface Controller@Nullable public Tab getSelectedTab()
TabGroupgetSelectedTab in interface TabGroupnull in case there are no tabs in this tab grouppublic int getSelectedTabIndex()
TabGroupgetSelectedTabIndex in interface TabGroup-1 in case there are no tabs in this grouppublic void init(@Nonnull
Parameters parameter)
init in interface Controllerinit in class AbstractControllerpublic void addTab(@Nonnull
Tab tab)
TabGrouppublic int indexOf(@Nonnull
Tab tab)
TabGrouppublic int getTabCount()
TabGroupgetTabCount in interface TabGroup@Nullable public Tab getTabAtIndex(int index)
getTabAtIndex in interface TabGroupindex - the index of the tab controlpublic boolean inputEvent(@Nonnull
NiftyInputEvent inputEvent)
inputEvent in interface Controllerpublic boolean isTabInGroup(@Nonnull
Tab tab)
TabGroupisTabInGroup in interface TabGrouptab - the tab to checktrue in case the tab is registered to this grouppublic void onStartScreen()
onStartScreen in interface Controllerpublic void removeTab(int index)
TabGrouppublic void removeTab(@Nonnull
Tab tab)
TabGrouppublic void removeTab(@Nonnull
Element tab)
TabGrouppublic void removeTab(int index,
@Nullable
EndNotify notify)
TabGrouppublic void removeTab(@Nonnull
Tab tab,
@Nullable
EndNotify notify)
TabGrouppublic void removeTab(@Nonnull
Element tab,
@Nullable
EndNotify notify)
TabGrouppublic void setSelectedTab(@Nonnull
Tab tab)
TabGroupsetSelectedTab in interface TabGrouptab - the tab that is supposed to be displayed in the tab grouppublic void setSelectedTabIndex(int index)
TabGroupsetSelectedTabIndex in interface TabGroupindex - the index of the tab that is supposed to be displayedpublic void setTabCaption(int index,
@Nonnull
java.lang.String caption)
TabGroupsetTabCaption in interface TabGroupindex - the index of the tab that is supposed to get a new captioncaption - the new caption of this tabpublic void setTabCaption(@Nonnull
Tab tab,
@Nonnull
java.lang.String caption)
TabGroupsetTabCaption in interface TabGrouptab - the tab that is supposed to receive a new captioncaption - the new caption of this tabCopyright © 2018. All rights reserved.