public class AdvancedTabPanel extends com.google.gwt.user.client.ui.SimplePanel implements com.google.gwt.event.logical.shared.HasSelectionHandlers<Integer>, com.google.gwt.event.logical.shared.HasBeforeSelectionHandlers<Integer>, Resizable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AdvancedTabPanel.TabHolder
The class implements a pair of widgets related to each other.
|
protected class |
AdvancedTabPanel.TabState
Describes the tab state (enabled or disabled.
|
| Constructor and Description |
|---|
AdvancedTabPanel()
Creates an instance of this class and displays top tabs band.
|
AdvancedTabPanel(TabPosition position)
Creates an instance of this class and displays the tabs band in the specified position.
|
AdvancedTabPanel(TabPosition position,
BorderFactory tabBorderFactory,
BorderFactory contentBorderFactory)
Creates an instance of this class and displays the panel using the specified border factories.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget content,
com.google.gwt.user.client.ui.Widget tab)
Do the same things like the
addTab(com.google.gwt.user.client.ui.Widget, com.google.gwt.user.client.ui.Widget)
method and included into the class for changing from GWT TabPanel to this one. |
com.google.gwt.event.shared.HandlerRegistration |
addBeforeSelectionHandler(com.google.gwt.event.logical.shared.BeforeSelectionHandler<Integer> beforeSelectionHandler) |
com.google.gwt.event.shared.HandlerRegistration |
addSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler<Integer> selectionHandler) |
void |
addTab(com.google.gwt.user.client.ui.Widget tab,
com.google.gwt.user.client.ui.Widget content)
Adds a new tab into the panel.
|
int |
count()
Gets a total count of tabs.
|
com.google.gwt.user.client.ui.Widget |
getContent(com.google.gwt.user.client.ui.Widget tab)
Gets the content widget by the tab.
|
Border |
getContentBorder()
Gets a content border that is already rendered.
|
BorderFactory |
getContentBorderFactory()
Gets the content border factory.
|
TabPosition |
getPosition()
Gets tabs position.
|
int |
getSelected()
Gets an index of the selected tab.
|
com.google.gwt.user.client.ui.Widget |
getTab(int index)
Gets the tab widget by index.
|
BorderFactory |
getTabBorderFactory()
Gets the tabs border factory.
|
int |
indexOf(com.google.gwt.user.client.ui.Widget tab)
Gets an index of the specified tab.
|
void |
insertTab(com.google.gwt.user.client.ui.Widget tab,
com.google.gwt.user.client.ui.Widget content,
int before)
Inserts the tab before the specified tab.
|
void |
removeTab(com.google.gwt.user.client.ui.Widget tab)
Removes the tab from the panel.
|
protected void |
render()
Renders the widget.
|
protected void |
renderTabs()
This method renders tabs band widget and puts it in the current position.
|
void |
resize()
This method does resizing of the widget.
|
void |
selectTab(int index)
Do the same things like the
setSelected(int) method and included into the class for changing from GWT TabPanel
to this one. |
void |
setSelected(int index)
Sets the specified tab selected.
|
void |
setSelected(com.google.gwt.user.client.ui.Widget tab)
Sets the tab selected.
|
void |
setTabEnabled(int tabIndex,
boolean enable)
Sets the specified tab enabled or disabled.
|
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidgetadd, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventspublic AdvancedTabPanel()
public AdvancedTabPanel(TabPosition position)
position - is a tabs position.public AdvancedTabPanel(TabPosition position, BorderFactory tabBorderFactory, BorderFactory contentBorderFactory)
position - is a position of tabs.tabBorderFactory - is a factory for tabs border.contentBorderFactory - is a factory for the content border.public void add(com.google.gwt.user.client.ui.Widget content,
com.google.gwt.user.client.ui.Widget tab)
addTab(com.google.gwt.user.client.ui.Widget, com.google.gwt.user.client.ui.Widget)
method and included into the class for changing from GWT TabPanel to this one.content - is a tab content.tab - is a tab header.public void selectTab(int index)
setSelected(int) method and included into the class for changing from GWT TabPanel
to this one.index - is a selected tab index.public void addTab(com.google.gwt.user.client.ui.Widget tab,
com.google.gwt.user.client.ui.Widget content)
tab - is a tab widget.content - is a content widget.public void removeTab(com.google.gwt.user.client.ui.Widget tab)
tab - is a tab widget to identify the tab.public void insertTab(com.google.gwt.user.client.ui.Widget tab,
com.google.gwt.user.client.ui.Widget content,
int before)
tab - is a tab widget.content - is a tab widget.before - is an index of existent tab.public void setSelected(int index)
index - is an index of the tab for selection.public void setSelected(com.google.gwt.user.client.ui.Widget tab)
tab - is a widget of the tab to select.public int getSelected()
public com.google.gwt.user.client.ui.Widget getTab(int index)
index - is an index of the tab.public com.google.gwt.user.client.ui.Widget getContent(com.google.gwt.user.client.ui.Widget tab)
tab - is a tab widget.public int indexOf(com.google.gwt.user.client.ui.Widget tab)
-1.tab - is a widget of the tab.public int count()
public void setTabEnabled(int tabIndex,
boolean enable)
tabIndex - is a tab index.enable - is a tab state value.public BorderFactory getTabBorderFactory()
public BorderFactory getContentBorderFactory()
public Border getContentBorder()
public TabPosition getPosition()
protected void render()
protected void renderTabs()
public void resize()
public com.google.gwt.event.shared.HandlerRegistration addSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler<Integer> selectionHandler)
addSelectionHandler in interface com.google.gwt.event.logical.shared.HasSelectionHandlers<Integer>public com.google.gwt.event.shared.HandlerRegistration addBeforeSelectionHandler(com.google.gwt.event.logical.shared.BeforeSelectionHandler<Integer> beforeSelectionHandler)
addBeforeSelectionHandler in interface com.google.gwt.event.logical.shared.HasBeforeSelectionHandlers<Integer>Copyright © 2008–2013. All rights reserved.