|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.commons.client.TabStrip
public class TabStrip
The class TabStrip is the GWT wrapper
for the Phoenix control: sap.ui.commons.TabStrip.
A container for tab controls which contain the content and generally other controls. The user switches between the tabs then to display the content.
| Constructor Summary | |
|---|---|
protected |
TabStrip()
constructs the class TabStriphidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
TabStrip |
addTab(Tab tab)
Appends a tab to the aggregation tabs. |
TabStrip |
attachCloseEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user closes a tab. |
TabStrip |
attachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user selects a tab. |
void |
closeTab(int index)
This method closes a atb. |
static TabStrip |
create()
creates a new instance of the class TabStrip |
static TabStrip |
create(String idOrConfig)
creates a new instance of the class TabStrip |
static TabStrip |
create(String id,
String config)
creates a new instance of the class TabStrip |
void |
createTab(String text,
com.sap.ui.core.client.Control content)
Convenient method to add a tab with a text as title and a root control as content. |
TabStrip |
destroyTabs()
Destroys all the tabs in the Tabs-aggregation. |
TabStrip |
detachCloseEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the user closes a tab. |
TabStrip |
detachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the user selects a tab. |
String |
getHeight()
Getter for property height
Height includes tab bar and content area. |
int |
getSelectedIndex()
Getter for property selectedIndex
Index of the currently selected tab. |
com.sap.ui.core.client.js.JsArray<Tab> |
getTabs()
Getter for aggregation tabs Aggregating tabs contained in the tab strip. |
String |
getWidth()
Getter for property width
Width includes tab bar and content area. |
int |
indexOfTab(Tab tab)
Checks for the provided com.sap.ui.commons.client.Tab in the tabs-aggregation and
returns its index if found or -1 otherwise. |
TabStrip |
insertTab(Tab tab,
int index)
Inserts some tab into the aggregation named tabs. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<Tab>> |
removeAllTabs()
Removes all the items in the tabs-aggregation. |
com.sap.ui.core.client.js.JsArray<Tab> |
removeTab(int index)
Removes a tab from the aggregation named tabs. |
TabStrip |
setHeight(String value)
Setter for property height |
TabStrip |
setSelectedIndex(int value)
Setter for property selectedIndexDefault value is: 0 |
TabStrip |
setWidth(String value)
Setter for property width |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| 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 TabStrip()
TabStripJavaScriptObject restriction
| Method Detail |
|---|
public static TabStrip create()
TabStrip
public static TabStrip create(String idOrConfig)
TabStrip
id - id of the TabStrip or configuration JSON string
public static TabStrip create(String id,
String config)
TabStrip
id - id of the TabStripconfig - configuration JSON stringpublic final String getHeight()
height
Height includes tab bar and content area.
public final TabStrip setHeight(String value)
height
value - String
this to allow method chainingpublic final String getWidth()
width
Width includes tab bar and content area.
public final TabStrip setWidth(String value)
width
value - String
this to allow method chainingpublic final int getSelectedIndex()
selectedIndex
Index of the currently selected tab.
public final TabStrip setSelectedIndex(int value)
selectedIndex0
value - int
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<Tab> getTabs()
public final TabStrip insertTab(Tab tab,
int index)
tabs.
tab - the tab to insertindex - int the 0-based index the tab should be inserted at.
this to allow method chainingpublic final TabStrip addTab(Tab tab)
tabs.
tab - com.sap.ui.commons.client.Tab the tab to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<Tab> removeTab(int index)
tabs.
index - int the position of the tab to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<Tab>> removeAllTabs()
public final int indexOfTab(Tab tab)
com.sap.ui.commons.client.Tab in the tabs-aggregation and
returns its index if found or -1 otherwise.
tab - the tab whose index is looked for.
public final TabStrip destroyTabs()
this to allow method chainingpublic final TabStrip attachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user selects a tab.
listener - reference to the EventListener
this to allow method chainingpublic final TabStrip detachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user selects a tab.
listener - reference to the EventListener
this to allow method chainingpublic final TabStrip attachCloseEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user closes a tab.
listener - reference to the EventListener
this to allow method chainingpublic final TabStrip detachCloseEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user closes a tab.
listener - reference to the EventListener
this to allow method chaining
public final void createTab(String text,
com.sap.ui.core.client.Control content)
text - Defines the title text of the newly created tab.content - Defines the root control of the content area.public final void closeTab(int index)
index - Index of the tab that should be closed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||