|
||||||||||
| 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.google.gwt.user.client.ui.Composite
com.google.gwt.user.client.ui.ResizeComposite
org.exoplatform.gwtframework.ui.client.tablayout.TabPanel
public class TabPanel
Wrapped and restyled TabLayoutPanel.
Since standard components do not provide a way to manipulate the tabs,
such as closing the tab by clicking the mouse and scrolling tabs when the tabs of more than can't fit Tab container.
This component was added this functionality.
Also
Component can also draw additional controls in the tabs, see addTabButton(Widget)
| 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 | |
|---|---|
TabPanel()
|
|
| Method Summary | |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addCloseTabHandler(CloseTabHandler closeTabHandler)
Adds CloseTabHandler. |
com.google.gwt.event.shared.HandlerRegistration |
addSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler<java.lang.Integer> handler)
|
void |
addTab(java.lang.String tabId,
com.google.gwt.user.client.ui.Image icon,
java.lang.String tabText,
com.google.gwt.user.client.ui.Widget widget,
boolean canClose)
Add new Tab |
void |
addTabButton(com.google.gwt.user.client.ui.Widget button)
Adds user defined button to this TabPanel. |
com.google.gwt.event.shared.HandlerRegistration |
addTabClosedHandler(TabClosedHandler tabClosedHandler)
|
int |
getSelectedTab()
|
java.lang.String |
getTabIdByIndex(int tabIndex)
Gets tab's ID through its index. |
com.google.gwt.user.client.ui.Widget |
getWidget(int i)
Get widget associate with tab index |
void |
onCloseTab(CloseTabEvent event)
|
void |
onResize()
|
boolean |
remove(int index)
Remove tab by this index |
void |
removeTab(java.lang.String tabId)
Removes tab with specified Tab Id. |
void |
removeTabButton(com.google.gwt.user.client.ui.Widget tabButton)
Removes user defined button from this TabPanel. |
void |
scrollLeft()
Scrolls to the left. |
void |
scrollRight()
Scrolls to the right. |
void |
selectTab(java.lang.String tabId)
Selects tab with specified ID. |
void |
setTabIcon(java.lang.String tabId,
com.google.gwt.user.client.ui.Image icon)
Change tab icon |
void |
setTabTitle(java.lang.String tabId,
java.lang.String title)
Change tab title |
| Methods inherited from class com.google.gwt.user.client.ui.ResizeComposite |
|---|
initWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, 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, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public TabPanel()
| Method Detail |
|---|
public void onResize()
onResize in interface com.google.gwt.user.client.ui.RequiresResizeonResize in class com.google.gwt.user.client.ui.ResizeCompositeResizeComposite.onResize()
public void addTab(java.lang.String tabId,
com.google.gwt.user.client.ui.Image icon,
java.lang.String tabText,
com.google.gwt.user.client.ui.Widget widget,
boolean canClose)
tabId - id of a tabicon - Icon of tabtabText - tab titlewidget - content of the tabcanClose - is tab can closepublic void onCloseTab(CloseTabEvent event)
onCloseTab in interface CloseTabHandlerCloseTabHandler.onCloseTab(org.exoplatform.gwtframework.ui.client.tab.event.CloseTabEvent)public void selectTab(java.lang.String tabId)
tabId - ID of tab which will be selected.public boolean remove(int index)
index -
public void setTabIcon(java.lang.String tabId,
com.google.gwt.user.client.ui.Image icon)
tabId - id of the tabicon - new icon
public void setTabTitle(java.lang.String tabId,
java.lang.String title)
tabId - is of the tabtitle - new tab titlepublic void removeTab(java.lang.String tabId)
tabId - public void addTabButton(com.google.gwt.user.client.ui.Widget button)
button - new buttonpublic void removeTabButton(com.google.gwt.user.client.ui.Widget tabButton)
tabButton - public java.lang.String getTabIdByIndex(int tabIndex)
tabIndex -
public com.google.gwt.event.shared.HandlerRegistration addTabClosedHandler(TabClosedHandler tabClosedHandler)
addTabClosedHandler in interface HasTabClosedHandlerHasTabClosedHandler.addTabClosedHandler(org.exoplatform.gwtframework.ui.client.tab.event.TabClosedHandler)public com.google.gwt.event.shared.HandlerRegistration addCloseTabHandler(CloseTabHandler closeTabHandler)
addCloseTabHandler in interface HasCloseTabHandlerHasCloseTabHandler.addCloseTabHandler(org.exoplatform.gwtframework.ui.client.tab.event.CloseTabHandler)public int getSelectedTab()
public void scrollLeft()
Scrollable
scrollLeft in interface ScrollableScrollable.scrollLeft()public void scrollRight()
Scrollable
scrollRight in interface ScrollableScrollable.scrollRight()public com.google.gwt.event.shared.HandlerRegistration addSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler<java.lang.Integer> handler)
addSelectionHandler in interface com.google.gwt.event.logical.shared.HasSelectionHandlers<java.lang.Integer>HasSelectionHandlers.addSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler)public com.google.gwt.user.client.ui.Widget getWidget(int i)
i - tab index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||