public class DefaultTabLayoutPanel extends com.google.gwt.user.client.ui.TabLayoutPanel implements OffPageTabPanel, com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.Widget>
PAGE_LIMIT pages at once. Addiing more pages will
display a selector icon. Clicking the selector icon brings up a menu where you can select the "off-page"
elements. Selected off-page elements are displayed in the last tab.
Please note that this tab panel only keeps an index over its visible tabs. Off-page elements cannot be selected or
removed by index, but only by name.| Modifier and Type | Field and Description |
|---|---|
static int |
PAGE_LIMIT
The number of simultaneously visible pages.
|
static String |
STYLE_NAME |
| Constructor and Description |
|---|
DefaultTabLayoutPanel(double barHeight,
com.google.gwt.dom.client.Style.Unit barUnit) |
DefaultTabLayoutPanel(double barHeight,
com.google.gwt.dom.client.Style.Unit barUnit,
boolean truncateTitles,
boolean closeable) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.Widget> handler) |
boolean |
contains(String text)
Returns
true if there's a tab with the specified text, false otherwise |
com.google.gwt.user.client.ui.Widget |
getWidget(int index) |
void |
insert(com.google.gwt.user.client.ui.Widget page,
com.google.gwt.user.client.ui.Widget tab,
int beforeIndex) |
protected void |
onAttach() |
boolean |
remove(int index) |
void |
selectTab(int index) |
void |
selectTab(String text)
Selects the tab with the specified text.
|
add, add, add, add, add, add, add, add, add, addBeforeSelectionHandler, addSelectionHandler, animate, animate, clear, forceLayout, getAnimationDuration, getSelectedIndex, getTabWidget, getTabWidget, getTabWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, insert, insert, insert, insert, insert, insert, isAnimationVertical, iterator, remove, selectTab, selectTab, selectTab, selectTab, selectTab, setAnimationDuration, setAnimationVertical, setTabHTML, setTabHTML, setTabTextclaimElement, getWidget, initializeClaimedElement, isAttached, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringpublic static final int PAGE_LIMIT
public static final String STYLE_NAME
public DefaultTabLayoutPanel(double barHeight,
com.google.gwt.dom.client.Style.Unit barUnit)
public DefaultTabLayoutPanel(double barHeight,
com.google.gwt.dom.client.Style.Unit barUnit,
boolean truncateTitles,
boolean closeable)
protected void onAttach()
onAttach in class com.google.gwt.user.client.ui.Compositepublic void insert(com.google.gwt.user.client.ui.Widget page,
com.google.gwt.user.client.ui.Widget tab,
int beforeIndex)
insert in class com.google.gwt.user.client.ui.TabLayoutPanelpublic boolean remove(int index)
remove in interface com.google.gwt.user.client.ui.IndexedPanelremove in class com.google.gwt.user.client.ui.TabLayoutPanelpublic com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.Widget> handler)
addCloseHandler in interface com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.Widget>public void selectTab(int index)
selectTab in class com.google.gwt.user.client.ui.TabLayoutPanelpublic void selectTab(String text)
selectTab in interface OffPageTabPaneltext - public boolean contains(String text)
true if there's a tab with the specified text, false otherwisecontains in interface OffPageTabPanelpublic com.google.gwt.user.client.ui.Widget getWidget(int index)
getWidget in interface com.google.gwt.user.client.ui.IndexedPanelgetWidget in class com.google.gwt.user.client.ui.TabLayoutPanelCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.