public class Pages
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.user.client.ui.TabListener, com.google.gwt.user.client.ui.SourcesTabEvents, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Constructor and Description |
|---|
Pages()
Creates an empty tab panel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w) |
void |
add(com.google.gwt.user.client.ui.Widget w,
String tabText)
Adds a widget to the tab panel.
|
void |
add(com.google.gwt.user.client.ui.Widget w,
String tabText,
boolean asHTML)
Adds a widget to the tab panel.
|
void |
add(com.google.gwt.user.client.ui.Widget w,
com.google.gwt.user.client.ui.Widget tabWidget)
Adds a widget to the tab panel.
|
void |
addBeforeSelectionHandler(com.google.gwt.event.logical.shared.BeforeSelectionHandler<Integer> beforeSelectionHandler) |
void |
addTabListener(com.google.gwt.user.client.ui.TabListener listener) |
void |
clear() |
com.google.gwt.user.client.ui.DeckPanel |
getDeckPanel()
Gets the deck panel within this tab panel.
|
com.google.gwt.user.client.ui.TabBar |
getTabBar()
Gets the tab bar within this tab panel.
|
com.google.gwt.user.client.ui.Widget |
getWidget(int index) |
int |
getWidgetCount() |
int |
getWidgetIndex(com.google.gwt.user.client.ui.Widget widget) |
void |
insert(com.google.gwt.user.client.ui.Widget widget,
String tabText,
boolean asHTML,
int beforeIndex)
Inserts a widget into the tab panel.
|
void |
insert(com.google.gwt.user.client.ui.Widget widget,
String tabText,
int beforeIndex)
Inserts a widget into the tab panel.
|
void |
insert(com.google.gwt.user.client.ui.Widget widget,
com.google.gwt.user.client.ui.Widget tabWidget,
int beforeIndex)
Inserts a widget into the tab panel.
|
Iterator |
iterator() |
boolean |
onBeforeTabSelected(com.google.gwt.user.client.ui.SourcesTabEvents sender,
int tabIndex) |
void |
onTabSelected(com.google.gwt.user.client.ui.SourcesTabEvents sender,
int tabIndex) |
boolean |
remove(int index) |
boolean |
remove(com.google.gwt.user.client.ui.Widget widget)
Removes the given widget, and its associated tab.
|
void |
removeTabListener(com.google.gwt.user.client.ui.TabListener listener) |
void |
selectTab(int index,
boolean b)
Programmatically selects the specified tab.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, 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 void addBeforeSelectionHandler(com.google.gwt.event.logical.shared.BeforeSelectionHandler<Integer> beforeSelectionHandler)
public void add(com.google.gwt.user.client.ui.Widget w)
add in interface com.google.gwt.user.client.ui.HasWidgetspublic void add(com.google.gwt.user.client.ui.Widget w,
String tabText)
w - the widget to be addedtabText - the text to be shown on its tabpublic void add(com.google.gwt.user.client.ui.Widget w,
String tabText,
boolean asHTML)
w - the widget to be addedtabText - the text to be shown on its tabasHTML - true to treat the specified text as HTMLpublic void add(com.google.gwt.user.client.ui.Widget w,
com.google.gwt.user.client.ui.Widget tabWidget)
w - the widget to be addedtabWidget - the widget to be shown in the tabpublic void addTabListener(com.google.gwt.user.client.ui.TabListener listener)
addTabListener in interface com.google.gwt.user.client.ui.SourcesTabEventspublic void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetspublic com.google.gwt.user.client.ui.DeckPanel getDeckPanel()
public com.google.gwt.user.client.ui.TabBar getTabBar()
public com.google.gwt.user.client.ui.Widget getWidget(int index)
getWidget in interface com.google.gwt.user.client.ui.IndexedPanelpublic int getWidgetCount()
getWidgetCount in interface com.google.gwt.user.client.ui.IndexedPanelpublic int getWidgetIndex(com.google.gwt.user.client.ui.Widget widget)
getWidgetIndex in interface com.google.gwt.user.client.ui.IndexedPanelpublic void insert(com.google.gwt.user.client.ui.Widget widget,
String tabText,
boolean asHTML,
int beforeIndex)
widget - the widget to be insertedtabText - the text to be shown on its tabasHTML - true to treat the specified text as HTMLbeforeIndex - the index before which it will be insertedpublic void insert(com.google.gwt.user.client.ui.Widget widget,
com.google.gwt.user.client.ui.Widget tabWidget,
int beforeIndex)
widget - the widget to be inserted.tabWidget - the widget to be shown on its tab.beforeIndex - the index before which it will be inserted.public void insert(com.google.gwt.user.client.ui.Widget widget,
String tabText,
int beforeIndex)
widget - the widget to be insertedtabText - the text to be shown on its tabbeforeIndex - the index before which it will be insertedpublic Iterator iterator()
public boolean onBeforeTabSelected(com.google.gwt.user.client.ui.SourcesTabEvents sender,
int tabIndex)
onBeforeTabSelected in interface com.google.gwt.user.client.ui.TabListenerpublic void onTabSelected(com.google.gwt.user.client.ui.SourcesTabEvents sender,
int tabIndex)
onTabSelected in interface com.google.gwt.user.client.ui.TabListenerpublic boolean remove(int index)
remove in interface com.google.gwt.user.client.ui.IndexedPanelpublic boolean remove(com.google.gwt.user.client.ui.Widget widget)
remove in interface com.google.gwt.user.client.ui.HasWidgetswidget - the widget to be removedpublic void removeTabListener(com.google.gwt.user.client.ui.TabListener listener)
removeTabListener in interface com.google.gwt.user.client.ui.SourcesTabEventspublic void selectTab(int index,
boolean b)
index - the index of the tab to be selectedb - fire eventsCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.