|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.controls.AbstractController
de.lessvoid.nifty.controls.tabs.TabsControl
public class TabsControl
Constructor Summary | |
---|---|
TabsControl()
|
Method Summary | |
---|---|
void |
addTab(Element tab)
Adds a single tab to the end of the Tab list. |
void |
bind(Nifty nifty,
Screen screen,
Element element,
Properties parameter,
Attributes controlDefinitionAttributes)
|
void |
init(Properties prprts,
Attributes atrbts)
|
boolean |
inputEvent(NiftyInputEvent inputEvent)
|
void |
onEvent(String topic,
ElementShowEvent data)
|
void |
onStartScreen()
|
void |
removeTab(int index)
Removes the tab at the specified index. |
void |
removeTab(String tabId)
|
void |
setActiveTab(int index)
Sets the active tab to the specified index. |
void |
setActiveTab(String tabId)
Sets the active tab based on the tabId; |
void |
switchTab(String tabId)
Method used to switch between tabs. |
Methods inherited from class de.lessvoid.nifty.controls.AbstractController |
---|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lessvoid.nifty.controls.NiftyControl |
---|
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth |
Constructor Detail |
---|
public TabsControl()
Method Detail |
---|
public void bind(Nifty nifty, Screen screen, Element element, Properties parameter, Attributes controlDefinitionAttributes)
bind
in interface Controller
public void init(Properties prprts, Attributes atrbts)
init
in interface Controller
init
in class AbstractController
public void onStartScreen()
onStartScreen
in interface Controller
public boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent
in interface Controller
public void addTab(Element tab)
Tabs
addTab
in interface Tabs
tab
- Tab to be added.public void removeTab(int index)
Tabs
removeTab
in interface Tabs
index
- Index of the tab to remove.public void removeTab(String tabId)
public void setActiveTab(int index)
Tabs
setActiveTab
in interface Tabs
index
- The index of the tab to make the active tab.public void setActiveTab(String tabId)
Tabs
setActiveTab
in interface Tabs
tabId
- The TabId of the tab to make the active tab.public void switchTab(String tabId)
tabId
- The id of the tab this button is linked to.public void onEvent(String topic, ElementShowEvent data)
onEvent
in interface org.bushe.swing.event.EventTopicSubscriber<ElementShowEvent>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |