|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
org.cruxframework.crux.plugin.gadget.client.features.Tabs
public class Tabs
Represents a TabSet open social API
| Nested Class Summary | |
|---|---|
static class |
Tabs.Align
|
| Constructor Summary | |
|---|---|
protected |
Tabs()
|
| Method Summary | |
|---|---|
String |
addTab(String tabName)
Add a new tab into the tabSet |
String |
addTab(String tabName,
int index)
Add a new tab into the tabSet |
String |
addTab(String tabName,
int index,
String tooltip)
Add a new tab into the tabSet |
String |
addTab(String tabName,
int index,
String tooltip,
TabsFeature.Callback callback)
Add a new tab into the tabSet |
String |
addTab(String tabName,
int index,
String tooltip,
TabsFeature.Callback callback,
com.google.gwt.user.client.Element contentContainer)
Add a new tab into the tabSet |
void |
alignTabs(String align,
String offset)
Sets the alignment of tabs |
void |
alignTabs(Tabs.Align align)
Sets the alignment of tabs |
void |
alignTabs(Tabs.Align align,
String offset)
Sets the alignment of tabs |
void |
displayTabs(boolean display)
Hide or show the tabs |
com.google.gwt.user.client.Element |
getHeaderContainer()
Returns the tab headers container element. |
Tab |
getSelectedTab()
Returns the currently selected tab object. |
com.google.gwt.core.client.JsArray<Tab> |
getTabs()
Returns an array of all existing tab objects. |
void |
removeTab(int index)
Removes a tab at tabIndex and all of its associated content. |
void |
setSelectedTab(int index)
Selects the tab at tabIndex and fires the tab's callback function if it exists. |
void |
swapTabs(int index1,
int index2)
Swaps the positions of tabs at tabIndex1 and tabIndex2. |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Tabs()
| Method Detail |
|---|
public final String addTab(String tabName)
tabName -
public final String addTab(String tabName,
int index)
tabName - index -
public final String addTab(String tabName,
int index,
String tooltip)
tabName - index - tooltip -
public final String addTab(String tabName,
int index,
String tooltip,
TabsFeature.Callback callback)
tabName - index - tooltip - callback -
public final String addTab(String tabName,
int index,
String tooltip,
TabsFeature.Callback callback,
com.google.gwt.user.client.Element contentContainer)
tabName - index - tooltip - callback - contentContainer -
public final void alignTabs(Tabs.Align align)
align -
public final void alignTabs(Tabs.Align align,
String offset)
align - offset -
public final void alignTabs(String align,
String offset)
align - offset - public final void displayTabs(boolean display)
display - public final com.google.gwt.user.client.Element getHeaderContainer()
public final Tab getSelectedTab()
public final com.google.gwt.core.client.JsArray<Tab> getTabs()
public final void removeTab(int index)
index - public final void setSelectedTab(int index)
index -
public final void swapTabs(int index1,
int index2)
index1 - index2 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||