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.
 void removeTab(int index)
          Removes the tab at the specified index.
 void setActiveTab(int index)
          Sets the active tab to the specified index.
 void setActiveTab(String tabId)
          Sets the active 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.

setActiveTab

void setActiveTab(int index)
Sets the active tab to the specified index.

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

setActiveTab

void setActiveTab(String tabId)
Sets the active tab based on the tabId;

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


Copyright © 2011. All Rights Reserved.