TabGroup
interface.@Deprecated public class TabGroupControl extends AbstractController implements TabGroup
Constructor and Description |
---|
TabGroupControl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addTab(Element tab)
Deprecated.
Adds a single tab to the end of the tab list.
|
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 |
bind(Nifty nifty,
Screen screen,
Element element,
Properties parameter,
Attributes controlDefinitionAttributes)
Deprecated.
|
Tab |
getSelectedTab()
Deprecated.
Get the tab that is currently selected.
|
int |
getSelectedTabIndex()
Deprecated.
Get the index of the tab that is currently selected.
|
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(Properties parameter,
Attributes controlDefinitionAttributes)
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(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 |
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 |
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,
String caption)
Deprecated.
Set the caption of a tab.
|
void |
setTabCaption(Tab tab,
String caption)
Deprecated.
Set the caption of a tab.
|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
public void addTab(Element tab)
TabGroup
public void addTab(TabBuilder tabBuilder)
TabGroup
ElementBuilder.build(Nifty, Screen, Element)
function.public void bind(Nifty nifty, Screen screen, Element element, Properties parameter, Attributes controlDefinitionAttributes)
bind
in interface Controller
public Tab getSelectedTab()
TabGroup
getSelectedTab
in interface TabGroup
null
in case there are no tabs in this tab grouppublic int getSelectedTabIndex()
TabGroup
getSelectedTabIndex
in interface TabGroup
-1
in case there are no tabs in this grouppublic void init(Properties parameter, Attributes controlDefinitionAttributes)
init
in interface Controller
init
in class AbstractController
public void addTab(Tab tab)
TabGroup
public int indexOf(Tab tab)
TabGroup
public int getTabCount()
TabGroup
getTabCount
in interface TabGroup
public boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent
in interface Controller
public boolean isTabInGroup(Tab tab)
TabGroup
isTabInGroup
in interface TabGroup
tab
- the tab to checktrue
in case the tab is registered to this grouppublic void onStartScreen()
onStartScreen
in interface Controller
public void removeTab(int index)
TabGroup
public void removeTab(Tab tab)
TabGroup
public void removeTab(Element tab)
TabGroup
public void removeTab(int index, EndNotify notify)
TabGroup
public void removeTab(Tab tab, EndNotify notify)
TabGroup
public void removeTab(Element tab, EndNotify notify)
TabGroup
public void setSelectedTab(Tab tab)
TabGroup
setSelectedTab
in interface TabGroup
tab
- the tab that is supposed to be displayed in the tab grouppublic void setSelectedTabIndex(int index)
TabGroup
setSelectedTabIndex
in interface TabGroup
index
- the index of the tab that is supposed to be displayedpublic void setTabCaption(int index, String caption)
TabGroup
setTabCaption
in interface TabGroup
index
- the index of the tab that is supposed to get a new captioncaption
- the new caption of this tabpublic void setTabCaption(Tab tab, String caption)
TabGroup
setTabCaption
in interface TabGroup
tab
- the tab that is supposed to receive a new captioncaption
- the new caption of this tabCopyright © 2013. All Rights Reserved.