|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.TabStripWidget
public class TabStripWidget
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
TabStripWidget()
constructs the class TabStripWidget |
|
TabStripWidget(String id)
constructs the class TabStripWidget |
protected |
TabStripWidget(TabStrip control)
constructs the class TabStripWidget |
| Method Summary | |
|---|---|
void |
addTab(Tab tab)
Appends some tab to the tabs-aggregation. |
void |
attachCloseEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user closes a tab. |
void |
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. |
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. |
void |
destroyTabs()
Destroys all the tabs in the Tabs-aggregation. |
void |
detachCloseEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the user closes a tab. |
void |
detachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the user selects a tab. |
TabStrip |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
insertTab(Tab tab,
int index)
Inserts some tab into the aggregation named tabs. |
void |
removeAllTabs()
Removes all the items in the tabs-aggregation. |
void |
removeTab(int index)
Removes the tab at position index in the tabs-aggregation named. |
void |
setHeight(String value)
Setter for property height |
void |
setSelectedIndex(int value)
Setter for property selectedIndexDefault value is: 0 |
void |
setWidth(String value)
Setter for property width |
| Methods inherited from class com.sap.ui.core.client.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TabStripWidget()
TabStripWidget
public TabStripWidget(String id)
TabStripWidget
id - id of the TabStripWidgetprotected TabStripWidget(TabStrip control)
TabStripWidget
control - reference to an existing TabStrip| Method Detail |
|---|
public TabStrip getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getHeight()
height
Height includes tab bar and content area.
public void setHeight(String value)
height
setHeight in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic String getWidth()
width
Width includes tab bar and content area.
public void setWidth(String value)
width
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic int getSelectedIndex()
selectedIndex
Index of the currently selected tab.
public void setSelectedIndex(int value)
selectedIndex0
value - intpublic com.sap.ui.core.client.js.JsArray<Tab> getTabs()
public void insertTab(Tab tab,
int index)
tab - the tab to insertindex - int the 0-based index the tab should be inserted at.public void addTab(Tab tab)
tab - com.sap.ui.commons.client.Tab the tab to addpublic void removeTab(int index)
index in the tabs-aggregation named.
index - int the position of the tab to remove.public void removeAllTabs()
public 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 void destroyTabs()
public void attachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user selects a tab.
listener - reference to the EventListenerpublic void detachSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user selects a tab.
listener - reference to the EventListenerpublic void attachCloseEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user closes a tab.
listener - reference to the EventListenerpublic void detachCloseEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user closes a tab.
listener - reference to the EventListener
public 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 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 | |||||||||