public class TabSet extends Layout implements PanelContainer, HasTabSelectedHandlers, HasTabDeselectedHandlers, HasPanelShowHandlers, HasPanelHideHandlers, HasDropHandlers
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
static com.smartgwt.mobile.client.internal.theme.TabSetCssResourceBase |
_CSS |
alignment, enforcePolicy, hPolicy, members, membersMargin, minMemberSize, momentumScroll, overflow, paddingAsLayoutMargin, reverseOrder, valign, vertical_CONTENT_CHANGED_EVENT_TYPE, _HISTORY_ENABLED, _REQUEST_SCROLL_TO_EVENT_TYPE, id, touched| Constructor and Description |
|---|
TabSet() |
| Modifier and Type | Method and Description |
|---|---|
Tab |
_getMoreTab() |
void |
_onTabDrop(com.smartgwt.mobile.client.internal.widgets.tab.TabSetItem tabSetItem,
DropEvent event)
Add/Remove tabs
|
void |
_selectMoreTab() |
com.google.gwt.event.shared.HandlerRegistration |
addDropHandler(DropHandler handler)
Notification method fired when the user drops another canvas onto this one.
|
Tab |
addPanel(Panel panel)
Creates a
Tab and adds it to the end. |
com.google.gwt.event.shared.HandlerRegistration |
addPanelHideHandler(PanelHideHandler handler)
Executed when the left mouse is clicked (pressed and then released) on this widget.
|
com.google.gwt.event.shared.HandlerRegistration |
addPanelShowHandler(PanelShowHandler handler)
Executed when the left mouse is clicked (pressed and then released) on this widget.
|
void |
addTab(Tab tab)
Add a tab to the end.
|
void |
addTab(Tab tab,
int position)
Add a tab at the given position.
|
com.google.gwt.event.shared.HandlerRegistration |
addTabDeselectedHandler(TabDeselectedHandler handler)
Add a tabDeselected handler.
|
com.google.gwt.event.shared.HandlerRegistration |
addTabSelectedHandler(TabSelectedHandler handler)
Add a tabSelected handler.
|
void |
disableTab(int index)
Disable a tab if it is currently enabled.
|
void |
enableTab(int index)
Enable a tab if it is currently disabled.
|
void |
enableTab(java.lang.String id)
Enable/disable tabs
|
void |
enableTab(Tab tab) |
ContainerFeatures |
getContainerFeatures()
****************************************************
Helper methods
****************************************************
|
int |
getMoreTabCount() |
int |
getNumTabs()
State and tab query methods
|
Tab |
getSelectedTab()
Returns the currently selected tab.
|
int |
getSelectedTabNumber()
Returns the index of the currently selected tab.
|
Tab |
getTab(int tabIndex)
Returns the canvas representing a tab.
|
Tab |
getTab(java.lang.String id) |
int |
getTabCount() |
Tab[] |
getTabs() |
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
void |
onLoad() |
void |
removeTab(int position)
Remove a tab at the specified index.
|
void |
removeTab(Tab tab)
Remove a tab.
|
void |
removeTabs(int[] tabIndexes)
Remove one or more tabs at the specified indexes.
|
void |
selectTab(int index)
Select a tab by index
|
void |
selectTab(Tab tab)
Select a tab.
|
void |
setMoreTabCount(int moreTabCount) |
void |
setShowMoreTab(boolean showMoreTab) |
void |
updateTab(int index,
Canvas pane) |
void |
updateTab(Tab tab,
Canvas pane)
Sets the pane of the given tab.
|
addDragMoveHandler, addMember, addMember, addMember, addMember, addMembers, addMembers, addMembers, clear, getEnforcePolicy, getHPolicy, getLayoutBottomMargin, getLayoutLeftMargin, getLayoutMargin, getLayoutRightMargin, getLayoutTopMargin, getManagePercentBreadth, getMember, getMember, getMemberNumber, getMemberNumber, getMembers, getMembersMargin, getMinMemberSize, getMomentumScroll, getOverflow, getPaddingAsLayoutMargin, getReverseOrder, getVertical, getVPolicy, hasMember, hideMember, hideMember, reflow, removeMember, removeMember, removeMembers, removeMembers, reorderMember, reorderMembers, setAlign, setAlign, setDefaultLayoutAlign, setDefaultLayoutAlign, setEnforcePolicy, setHPolicy, setLayoutBottomMargin, setLayoutLeftMargin, setLayoutMargin, setLayoutRightMargin, setLayoutTopMargin, setManagePercentBreadth, setMembers, setMembersMargin, setMinMemberSize, setMomentumScroll, setOverflow, setPaddingAsLayoutMargin, setReverseOrder, setVertical, setVisibleMember, setVPolicy, showMember, showMember_add, _booleanValue, _fireContentChangedEvent, _fireContentChangedEvent, _fireRequestScrollToEvent, _getAndroidWindowSoftInputMode, _getAttributeFromSplitLocator, _getChildFromLocatorSubstring, _getFixNavigationBarPositionDuringKeyboardFocus, _getHideTabBarDuringKeyboardFocus, _getInnerAttributeFromSplitLocator, _getInnerElement, _hideAddressBar, _hideAddressBarNow, _insert, _isDifferent, _isHDPIDisplay, _isIOS4OrOlder, _isIOS5, _isIOSMin6_0, _isStandaloneMode, _nativeParseFloat, _removeClassName, _setClassName, _setHandleDisabled, _sinkAnimationEndEvent, _sinkContentChangedEvent, _sinkFocusInEvent, _sinkFocusOutEvent, _sinkInputEvent, _sinkRequestScrollToEvent, _sinkTransitionEndEvent, _triggerDebugger, addChild, addChild, addChild, addClickHandler, addShowContextMenuHandler, destroy, disable, enable, getContextMenu, getID, getInnerHTML, getMargin, hasChild, hasChild, isAndroid, isDisabled, isEnabled, isIPad, isIPhone, isSafari, isStandAlone, isUIWebView, parseDimension, removeChild, removeChild, setContents, setContextMenu, setDisabled, setElement, setID, setMargin, setStyleName, split, useIOSNativeScrollingadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, add, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, 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, resolvePotentialElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString@SGWTInternal public static final com.smartgwt.mobile.client.internal.theme.TabSetCssResourceBase _CSS
@SGWTInternal public final Tab _getMoreTab()
public final Tab[] getTabs()
public void updateTab(Tab tab, Canvas pane)
tab - pane - public void updateTab(int index,
Canvas pane)
throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsExceptionpublic com.google.gwt.event.shared.HandlerRegistration addTabSelectedHandler(TabSelectedHandler handler)
addTabSelectedHandler in interface HasTabSelectedHandlershandler - the tabSelectedHandlerHandlerRegistration used to remove this handlerpublic com.google.gwt.event.shared.HandlerRegistration addDropHandler(DropHandler handler)
HasDropHandlersfalse from this method will prevent any default drop behavior from occurring
addDropHandler in interface HasDropHandlershandler - the onDrop handlerHandlerRegistration used to remove this handlerpublic com.google.gwt.event.shared.HandlerRegistration addTabDeselectedHandler(TabDeselectedHandler handler)
addTabDeselectedHandler in interface HasTabDeselectedHandlershandler - the tabDeselectedHandlerHandlerRegistration used to remove this handlerpublic void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class Canvaspublic void onLoad()
onLoad in class com.google.gwt.user.client.ui.Widget@SGWTInternal
public void _onTabDrop(com.smartgwt.mobile.client.internal.widgets.tab.TabSetItem tabSetItem,
DropEvent event)
public Tab addPanel(Panel panel)
Tab and adds it to the end.
This is equivalent to:
final Tab tab = new Tab(panel.getTitle(), panel.getIcon()); tabSet.addTab(tab);
panel - the panel to add.Tab.public void addTab(Tab tab)
tab - the tab to add.public void addTab(Tab tab, int position)
tab - the tab to add.position - the index where the tab should be added. It is clamped within range
(0 through getNumTabs(), inclusive) if out of bounds.public void removeTab(Tab tab)
tab - to removepublic void removeTab(int position)
position - the index of the tab to removepublic void removeTabs(int[] tabIndexes)
tabIndexes - array of tab indexespublic final int getSelectedTabNumber()
public final Tab getSelectedTab()
null if the More tab is selected
or no tab is selected.@SGWTInternal public void _selectMoreTab()
public void selectTab(int index)
throws java.lang.IndexOutOfBoundsException
index - the tab indexjava.lang.IndexOutOfBoundsExceptionpublic void selectTab(Tab tab)
tab - the canvas representing the tabpublic void enableTab(java.lang.String id)
public void enableTab(Tab tab)
public void enableTab(int index)
throws java.lang.IndexOutOfBoundsException
index - the tab indexjava.lang.IndexOutOfBoundsExceptionpublic void disableTab(int index)
throws java.lang.IndexOutOfBoundsException
index - the tab indexjava.lang.IndexOutOfBoundsExceptionpublic final int getNumTabs()
public final int getTabCount()
public final Tab getTab(int tabIndex)
tabIndex - index of tabpublic final Tab getTab(java.lang.String id)
public ContainerFeatures getContainerFeatures()
getContainerFeatures in interface PanelContainerpublic com.google.gwt.event.shared.HandlerRegistration addPanelHideHandler(PanelHideHandler handler)
HasPanelHideHandlersaddPanelHideHandler in interface HasPanelHideHandlershandler - the click handlerHandlerRegistration used to remove this handlerpublic com.google.gwt.event.shared.HandlerRegistration addPanelShowHandler(PanelShowHandler handler)
HasPanelShowHandlersaddPanelShowHandler in interface HasPanelShowHandlershandler - the click handlerHandlerRegistration used to remove this handlerpublic void setMoreTabCount(int moreTabCount)
public final int getMoreTabCount()
public void setShowMoreTab(boolean showMoreTab)