de.lessvoid.nifty.controls
Interface Tabs

All Superinterfaces:
NiftyControl
All Known Implementing Classes:
TabsControl

public interface Tabs
extends NiftyControl

Author:
ractoc

Method Summary
 void addTab(Element tab)
          Adds a single tab to the end of the Tab list.
 String getSelectedTab()
          Gets the selected tab to the specified index.
 int getSelectedTabIndex()
          Gets the selected tab to the specified index.
 void removeTab(int index)
          Removes the tab at the specified index.
 void setSelectedTab(int index)
          Sets the selected tab to the specified index.
 void setSelectedTab(String tabId)
          Sets the selected tab based on the tabId;
 
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
 

Method Detail

addTab

void addTab(Element tab)
Adds a single tab to the end of the Tab list.

Parameters:
tab - Tab to be added.

removeTab

void removeTab(int index)
Removes the tab at the specified index.

Parameters:
index - Index of the tab to remove.

setSelectedTab

void setSelectedTab(int index)
Sets the selected tab to the specified index.

Parameters:
index - The index of the tab to make the selected tab.

setSelectedTab

void setSelectedTab(String tabId)
Sets the selected tab based on the tabId;

Parameters:
tabId - The TabId of the tab to make the selected tab.

getSelectedTab

String getSelectedTab()
Gets the selected tab to the specified index.

Returns:
The id of the selected tab.

getSelectedTabIndex

int getSelectedTabIndex()
Gets the selected tab to the specified index.

Returns:
The index of the selected tab.


Copyright © 2011. All Rights Reserved.