|
|||||||||
| 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.smartgwt.client.widgets.BaseWidget
com.smartgwt.client.widgets.Canvas
com.smartgwt.client.widgets.tab.TabSet
public class TabSet
The TabSet class allows components on several panes to share the same space. The tabs at the top can be selected by the user to show each pane.
Tabs are configured via the tabs property, each of which has a
pane property which will be displayed in the main pane when that tab is selected.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.widgets.BaseWidget |
|---|
config, configOnly, id, isElementSet, nativeObject, scClassName |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
TabSet()
|
|
TabSet(JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
HandlerRegistration |
addCloseClickHandler(CloseClickHandler handler)
Add a closeClick handler. |
void |
addTab(Tab tab)
Add a tab |
void |
addTab(Tab tab,
int position)
Add a tab |
HandlerRegistration |
addTabContextMenuHandler(TabContextMenuHandler handler)
Add a tabContextMenu handler. |
HandlerRegistration |
addTabDeselectedHandler(TabDeselectedHandler handler)
Add a tabDeselected handler. |
HandlerRegistration |
addTabIconClickHandler(TabIconClickHandler handler)
Add a tabIconClick handler. |
HandlerRegistration |
addTabSelectedHandler(TabSelectedHandler handler)
Add a tabSelected handler. |
HandlerRegistration |
addTabTitleChangedHandler(TabTitleChangedHandler handler)
Add a tabTitleChanged handler. |
void |
cancelTabTitleEditing()
If the user is currently editing a tab title (see canEditTabTitles), dismiss the editor and discard the edit value entered by the user. |
protected JavaScriptObject |
create()
|
void |
disableTab(int tabIndex)
If the specified tab is enabled, disable it now. |
void |
disableTab(String ID)
If the specified tab is enabled, disable it now. |
void |
disableTab(Tab tab)
If the specified tab is enabled, disable it now. |
void |
editTabTitle(int tab)
Places an editor in the title of the parameter tab and allows the user to edit the title. |
void |
editTabTitle(String tab)
Places an editor in the title of the parameter tab and allows the user to edit the title. |
void |
enableTab(int tabIndex)
If the specified tab is disabled, enable it now. |
void |
enableTab(String ID)
If the specified tab is disabled, enable it now. |
void |
enableTab(Tab tab)
If the specified tab is disabled, enable it now. |
Boolean |
getAnimateTabScrolling()
If showTabScroller is true, should tabs be scrolled
into view via an animation when the user interacts with the scroller buttons? |
Boolean |
getCanCloseTabs()
Should tabs in this tabSet show an icon allowing the user to dismiss the tab by clicking on it directly. |
Boolean |
getCanEditTabTitles()
If true, users can edit the titles of tabs in this TabSet when the titleEditEvent fires. |
String |
getCloseTabIcon()
Default src for the close icon for tabs to display if canCloseTabs is true. |
int |
getCloseTabIconSize()
Size in pixels of the icon for closing tabs, displayed when canCloseTabs is true. |
Integer |
getDefaultTabWidth()
If set, is passed as "width" to all tabs. |
Boolean |
getDestroyPanes()
Whether destroy() should be called on pane when it a tab is removed via TabSet.removeTab}. |
String |
getLocateTabsBy()
When AutoTest.getElement is used to parse locator strings generated by link{isc.AutoTest.getLocator()}, how should tabs within this tabset be identified? By default if tab has a specified ID
this will always be used. |
com.smartgwt.logicalstructure.core.LogicalStructureObject |
getLogicalStructure()
|
int |
getMoreTabCount()
This property defines the number tab buttons that should be shown before automatically adding a "more" button to handle the remaining tabs. |
String |
getMoreTabImage()
If showMoreTab is enabled this property determines the
image to display on the "More" tab button. |
Canvas |
getMoreTabPaneDefaults()
Default properties for the "more" tab's pane. |
Canvas |
getMoreTabPaneProperties()
Properties to apply to the "more" tab's pane created by this TabSet. |
Tab |
getMoreTabProperties()
Properties to apply to the "more" tab created by this TabSet. |
String |
getMoreTabTitle()
Title for the "More" tab. |
int |
getNumTabs()
The number of tabs |
static TabSet |
getOrCreateRef(JavaScriptObject jsObj)
|
String |
getPaneContainerClassName()
CSS style used for the paneContainer. |
Overflow |
getPaneContainerOverflow()
Specifies the overflow of the pane container (the component that holds the pane contents for all tabs). |
int |
getPaneMargin()
Space to leave around the panes in our paneContainer |
String |
getPickerButtonHSrc()
If showTabPicker is true, and symmetricPickerButton is set to true, this property
governs the base URL for the picker button image, when displayed in a horizontal tab-bar [IE tabBarPosition is set to "top" or
"bottom"]. |
int |
getPickerButtonSize()
If showTabPicker is true, this property governs the size
of tab-picker button. |
String |
getPickerButtonSrc()
If showTabPicker is true, this property governs the base
URL for the picker button image, when symmetricPickerButton is set to false |
String |
getPickerButtonVSrc()
If showTabPicker is true, and symmetricPickerButton is set to true, this property
governs the base URL for the picker button image, when displayed in a verricaL tab-bar [IE tabBarPosition is set to "LEFT" or
"right"]. |
int |
getScrollerButtonSize()
If showTabScroller is true, this property governs the
size of scroller buttons. |
String |
getScrollerHSrc()
If this TabSet is showing tab scroller buttons, and
symmetricScroller is true, this property governs the
base URL for the tab bar back and forward scroller button images for horizontal tab bars [IE for tab sets with tabBarPosition set to "top" or "bottom"]. |
String |
getScrollerSrc()
If this TabSet is showing tab scroller buttons, and
symmetricScroller is false, this property governs
the base URL for the tab bar back and forward scroller button images. |
String |
getScrollerVSrc()
If this TabSet is showing tab scroller buttons, and
symmetricScroller is true, this property governs the
base URL for the tab bar back and forward scroller button images for vertical tab bars [IE for tab sets with tabBarPosition set to "left" or "right"]. |
Tab |
getSelectedTab()
The currently selected tab. |
int |
getSelectedTabNumber()
Returns the index of the currently selected tab object. |
Boolean |
getShowMoreTab()
Should tabs exceeding moreTabCount be shown on a "more"
tab? |
Boolean |
getShowPaneContainerEdges()
Should the paneContainer for this tabset show edges. |
Boolean |
getShowPartialEdges()
If the paneContainer for this tab set is showing edges, setting
this attribute to true will set the paneContainer to show customEdges for the three sides opposing the tabBarPosition. |
Boolean |
getShowTabPicker()
If there is not enough space to display all the tab-buttons in this tabSet, should a drop-down "picker" be displayed to allow selection of tabs that are clipped? |
Boolean |
getShowTabScroller()
If there is not enough space to display all the tab-buttons in this tabSet, should scroller buttons be displayed to allow access to tabs that are clipped? |
String |
getSimpleTabBaseStyle()
If this.useSimpleTabs is true, simpleTabBaseClass will be the base style used to determine the css style to apply to the tabs. This property will be suffixed with the side on which the tab-bar will appear, followed by with the tab's state (selected, over, etc), resolving to a className like "tabButtonTopOver" |
String |
getSkinImgDir()
Default directory for skin images (those defined by the class), relative to the Page-wide skinDir. |
Boolean |
getSymmetricEdges()
If this tabSet will show edges for the
paneContainer, this property determines whether the same edge media will be used regardless of the tab bar position, or
whether different media should be used (necessary if the edge appearance is not symmetrical on all sides). |
Boolean |
getSymmetricPickerButton()
If this TabSet is showing a tab picker button, this
property determines whether the pickerButtonHSrc and
pickerButtonVSrc media will be used for vertical and
horizontal tab-bar picker buttons, or whether separate media should be used for each possible tabBarPosition based on the pickerButtonSrc property for this tabSet. |
Boolean |
getSymmetricScroller()
If this TabSet is showing tab scroller buttons, this
property determines whether the scrollerHSrc and scrollerVSrc media will be used for vertical and horizontal
tab-bar scroller buttons, or whether separate media should be used for each possible tabBarPosition based on the scrollerSrc property for this tabSet. |
Tab |
getTab(int tabIndex)
Retrieves a Tab definition from within this tabSet by index. |
Tab |
getTab(String ID)
Retrieves a Tab definition from within this tabSet by ID. |
Side |
getTabBarAlign()
Alignment of the tabBar. |
Side |
getTabBarPosition()
Which side of the TabSet the TabBar should appear on. |
int |
getTabBarThickness()
Thickness of tabBar, applies to either orientation (specifies height for horizontal, width for vertical orientation). |
StatefulCanvas |
getTabCanvas(int tabIndex)
Get the live Canvas representing a tab by index. |
StatefulCanvas |
getTabCanvas(String ID)
Get the live Canvas representing a tab by index. |
int |
getTabNumber(String ID)
Get the index of a tab from the tabID. |
Tab[] |
getTabs()
The tabs |
TabTitleEditEvent |
getTitleEditEvent()
The event that triggers title editing on this TabSet. |
Integer |
getTitleEditorLeftOffset()
If set, offsets the tab title editor further in from the left-hand edge of the tab, by the number of pixels set in this property. |
TextItem |
getTitleEditorProperties()
Properties for the auto-generated titleEditor. |
Integer |
getTitleEditorRightOffset()
If set, offsets the tab title editor further in from the right-hand edge of the tab, by the number of pixels set in this property. |
Integer |
getTitleEditorTopOffset()
If set, offsets the tab title editor further down from the top edge of the tab, by the number of pixels set in this property. |
Boolean |
getUseSimpleTabs()
Should we use simple button based tabs styled with CSS rather than image based ImgTab tabs? |
static void |
preloadImages()
Preload primary tab skin images. |
void |
removeTab(int tabIndex)
Remove a tab. |
void |
removeTab(String ID)
Remove a tab. |
void |
removeTab(Tab tab)
Remove a tab. |
void |
removeTabs(int[] tabIndexes)
Remove one or more tabs. |
void |
removeTabs(String[] ids)
Remove one or more tabs. |
void |
saveTabTitle()
If the user is currently editing a tab title (see canEditTabTitles), save the edited tab title and hide the editor. |
void |
scrollBack()
If there is not enough space to display all the tabs in this tabSet, this method will scroll the previous tab (that first tab that is clipped at the beginning of the tab-bar) into view. |
void |
scrollForward()
If there is not enough space to display all the tabs in this tabSet, this method will scroll the next tab (that first tab that is clipped at the end of the tab-bar) into view. |
void |
selectTab(int tabIndex)
Select a tab. |
void |
selectTab(String ID)
Select a tab. |
void |
selectTab(Tab tab)
Select a tab. |
void |
setAnimateTabScrolling(Boolean animateTabScrolling)
If showTabScroller is true, should tabs be scrolled
into view via an animation when the user interacts with the scroller buttons? |
void |
setCanCloseTabs(Boolean canCloseTabs)
Should tabs in this tabSet show an icon allowing the user to dismiss the tab by clicking on it directly. |
void |
setCanEditTabTitles(Boolean canEditTabTitles)
If true, users can edit the titles of tabs in this TabSet when the titleEditEvent fires. |
void |
setCloseTabIcon(String closeTabIcon)
Default src for the close icon for tabs to display if canCloseTabs is true. |
void |
setCloseTabIconSize(int closeTabIconSize)
Size in pixels of the icon for closing tabs, displayed when canCloseTabs is true. |
static void |
setDefaultProperties(TabSet tabSetProperties)
Class level method to set the default properties of this class. |
void |
setDefaultTabWidth(Integer defaultTabWidth)
If set, is passed as "width" to all tabs. |
void |
setDestroyPanes(Boolean destroyPanes)
Whether destroy() should be called on pane when it a tab is removed via TabSet.removeTab}. |
void |
setJavaScriptObject(JavaScriptObject jsObj)
|
void |
setLocateTabsBy(String locateTabsBy)
When AutoTest.getElement is used to parse locator strings generated by link{isc.AutoTest.getLocator()}, how should tabs within this tabset be identified? By default if tab has a specified ID
this will always be used. |
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.widgets.tab.TabSetLogicalStructure s)
|
void |
setMoreTabCount(int moreTabCount)
This property defines the number tab buttons that should be shown before automatically adding a "more" button to handle the remaining tabs. |
void |
setMoreTabImage(String moreTabImage)
If showMoreTab is enabled this property determines the
image to display on the "More" tab button. |
void |
setMoreTabPaneDefaults(Canvas moreTabPaneDefaults)
Default properties for the "more" tab's pane. |
void |
setMoreTabPaneProperties(Canvas moreTabPaneProperties)
Properties to apply to the "more" tab's pane created by this TabSet. |
void |
setMoreTabProperties(Tab moreTabProperties)
Properties to apply to the "more" tab created by this TabSet. |
void |
setMoreTabTitle(String moreTabTitle)
Title for the "More" tab. |
void |
setPaneContainerClassName(String paneContainerClassName)
CSS style used for the paneContainer. |
void |
setPaneContainerOverflow(Overflow paneContainerOverflow)
Specifies the overflow of the pane container (the component that holds the pane contents for all tabs). |
void |
setPaneContainerProperties(Canvas paneContainerProperties)
Properties of the container where the component specified by Tab.pane is shown. |
void |
setPaneMargin(int paneMargin)
Space to leave around the panes in our paneContainer |
void |
setPickerButtonHSrc(String pickerButtonHSrc)
If showTabPicker is true, and symmetricPickerButton is set to true, this property
governs the base URL for the picker button image, when displayed in a horizontal tab-bar [IE tabBarPosition is set to "top" or
"bottom"]. |
void |
setPickerButtonSize(int pickerButtonSize)
If showTabPicker is true, this property governs the size
of tab-picker button. |
void |
setPickerButtonSrc(String pickerButtonSrc)
If showTabPicker is true, this property governs the base
URL for the picker button image, when symmetricPickerButton is set to false |
void |
setPickerButtonVSrc(String pickerButtonVSrc)
If showTabPicker is true, and symmetricPickerButton is set to true, this property
governs the base URL for the picker button image, when displayed in a verricaL tab-bar [IE tabBarPosition is set to "LEFT" or
"right"]. |
void |
setScrollerButtonSize(int scrollerButtonSize)
If showTabScroller is true, this property governs the
size of scroller buttons. |
void |
setScrollerHSrc(String scrollerHSrc)
If this TabSet is showing tab scroller buttons, and
symmetricScroller is true, this property governs the
base URL for the tab bar back and forward scroller button images for horizontal tab bars [IE for tab sets with tabBarPosition set to "top" or "bottom"]. |
void |
setScrollerSrc(String scrollerSrc)
If this TabSet is showing tab scroller buttons, and
symmetricScroller is false, this property governs
the base URL for the tab bar back and forward scroller button images. |
void |
setScrollerVSrc(String scrollerVSrc)
If this TabSet is showing tab scroller buttons, and
symmetricScroller is true, this property governs the
base URL for the tab bar back and forward scroller button images for vertical tab bars [IE for tab sets with tabBarPosition set to "left" or "right"]. |
void |
setSelectedTab(int selectedTab)
Specifies the index of the initially selected tab. |
void |
setShowMoreTab(Boolean showMoreTab)
Should tabs exceeding moreTabCount be shown on a "more"
tab? |
void |
setShowPaneContainerEdges(Boolean showPaneContainerEdges)
Should the paneContainer for this tabset show edges. |
void |
setShowPartialEdges(Boolean showPartialEdges)
If the paneContainer for this tab set is showing edges, setting
this attribute to true will set the paneContainer to show customEdges for the three sides opposing the tabBarPosition. |
void |
setShowTabPicker(Boolean showTabPicker)
If there is not enough space to display all the tab-buttons in this tabSet, should a drop-down "picker" be displayed to allow selection of tabs that are clipped? |
void |
setShowTabScroller(Boolean showTabScroller)
If there is not enough space to display all the tab-buttons in this tabSet, should scroller buttons be displayed to allow access to tabs that are clipped? |
void |
setSimpleTabBaseStyle(String simpleTabBaseStyle)
If this.useSimpleTabs is true, simpleTabBaseClass will be the base style used to determine the css style to apply to the tabs. This property will be suffixed with the side on which the tab-bar will appear, followed by with the tab's state (selected, over, etc), resolving to a className like "tabButtonTopOver" |
void |
setSkinImgDir(String skinImgDir)
Default directory for skin images (those defined by the class), relative to the Page-wide skinDir. |
void |
setSymmetricEdges(Boolean symmetricEdges)
If this tabSet will show edges for the
paneContainer, this property determines whether the same edge media will be used regardless of the tab bar position, or
whether different media should be used (necessary if the edge appearance is not symmetrical on all sides). |
void |
setSymmetricPickerButton(Boolean symmetricPickerButton)
If this TabSet is showing a tab picker button, this
property determines whether the pickerButtonHSrc and
pickerButtonVSrc media will be used for vertical and
horizontal tab-bar picker buttons, or whether separate media should be used for each possible tabBarPosition based on the pickerButtonSrc property for this tabSet. |
void |
setSymmetricScroller(Boolean symmetricScroller)
If this TabSet is showing tab scroller buttons, this
property determines whether the scrollerHSrc and scrollerVSrc media will be used for vertical and horizontal
tab-bar scroller buttons, or whether separate media should be used for each possible tabBarPosition based on the scrollerSrc property for this tabSet. |
void |
setTabBarAlign(Side tabBarAlign)
Alignment of the tabBar. |
void |
setTabBarControls(Object... tabBarControls)
This property determines what controls should show up after the tabBar for this tabSet. |
void |
setTabBarPosition(Side tabBarPosition)
Which side of the TabSet the TabBar should appear on. |
void |
setTabBarProperties(TabBar tabBarProperties)
This attribute allows developers to specify custom properties for this tabset's tabBar |
void |
setTabBarThickness(int tabBarThickness)
Thickness of tabBar, applies to either orientation (specifies height for horizontal, width for vertical orientation). |
void |
setTabIcon(int tabIndex,
String iconURL)
Changes the icon of a tab |
void |
setTabIcon(String ID,
String iconURL)
Changes the icon of a tab |
void |
setTabIcon(Tab tab,
String iconURL)
Changes the icon of a tab |
void |
setTabPane(int tabIndex,
Canvas pane)
Apply a new pane to an existing tab in this tabSet |
void |
setTabPane(String tabID,
Canvas pane)
Apply a new pane to an existing tab in this tabSet |
void |
setTabs(Tab... tabs)
|
void |
setTabTitle(int tabIndex,
String title)
Changes the title of a tab |
void |
setTabTitle(String ID,
String title)
Changes the title of a tab |
void |
setTabTitle(Tab tab,
String title)
Changes the title of a tab |
void |
setTitleEditEvent(TabTitleEditEvent titleEditEvent)
The event that triggers title editing on this TabSet. |
void |
setTitleEditorLeftOffset(Integer titleEditorLeftOffset)
If set, offsets the tab title editor further in from the left-hand edge of the tab, by the number of pixels set in this property. |
void |
setTitleEditorProperties(TextItem titleEditorProperties)
Properties for the auto-generated titleEditor. |
void |
setTitleEditorRightOffset(Integer titleEditorRightOffset)
If set, offsets the tab title editor further in from the right-hand edge of the tab, by the number of pixels set in this property. |
void |
setTitleEditorTopOffset(Integer titleEditorTopOffset)
If set, offsets the tab title editor further down from the top edge of the tab, by the number of pixels set in this property. |
void |
setUseSimpleTabs(Boolean useSimpleTabs)
Should we use simple button based tabs styled with CSS rather than image based ImgTab tabs? |
Tab |
tabForPane(Canvas pane)
Search for a tab that contains a pane. |
void |
updateTab(int tabIndex,
Canvas pane)
Set the pane for a tab. |
void |
updateTab(Tab tab,
Canvas pane)
Set the pane for a tab. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public TabSet()
public TabSet(JavaScriptObject jsObj)
| Method Detail |
|---|
public static TabSet getOrCreateRef(JavaScriptObject jsObj)
public void setJavaScriptObject(JavaScriptObject jsObj)
setJavaScriptObject in class Canvasprotected JavaScriptObject create()
create in class Canvas
public void setAnimateTabScrolling(Boolean animateTabScrolling)
throws IllegalStateException
showTabScroller is true, should tabs be scrolled
into view via an animation when the user interacts with the scroller buttons?
animateTabScrolling - animateTabScrolling Default value is true
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getAnimateTabScrolling()
showTabScroller is true, should tabs be scrolled
into view via an animation when the user interacts with the scroller buttons?
public void setCanCloseTabs(Boolean canCloseTabs)
canClose.
The URL for this icon's image will be derived from closeTabIcon by
default, but may be overridden by explicitly specifying closeIcon.
Note: Currently, tabs can only show a single icon, so a closable tab will show
the close icon only even if icon is set. To work around this, add
the icon
as an HTML <img> tag to the title property, for example:
title : "" + isc.Canvas.imgHTML("myIcon.png") + " Tab Title"
canCloseTabs - canCloseTabs Default value is nullcom.smartgwt.client.widgets.tab.TabSet#closeClickpublic Boolean getCanCloseTabs()
canClose.
The URL for this icon's image will be derived from closeTabIcon by
default, but may be overridden by explicitly specifying closeIcon.
Note: Currently, tabs can only show a single icon, so a closable tab will show
the close icon only even if icon is set. To work around this, add
the icon
as an HTML <img> tag to the title property, for example:
title : "" + isc.Canvas.imgHTML("myIcon.png") + " Tab Title"
com.smartgwt.client.widgets.tab.TabSet#closeClickpublic void setCanEditTabTitles(Boolean canEditTabTitles)
titleEditEvent fires. You can override this behavior per tab
with the canEditTitle property.
canEditTabTitles - canEditTabTitles Default value is falsepublic Boolean getCanEditTabTitles()
titleEditEvent fires. You can override this behavior per tab
with the canEditTitle property.
public void setCloseTabIcon(String closeTabIcon)
throws IllegalStateException
canCloseTabs is true.
closeTabIcon - . See SCImgURL. Default value is [SKIN]/TabSet/close.png
IllegalStateException - this property cannot be changed after the component has been createdpublic String getCloseTabIcon()
canCloseTabs is true.
SCImgURL
public void setCloseTabIconSize(int closeTabIconSize)
throws IllegalStateException
canCloseTabs is true.
closeTabIconSize - closeTabIconSize Default value is 16
IllegalStateException - this property cannot be changed after the component has been createdpublic int getCloseTabIconSize()
canCloseTabs is true.
public void setDefaultTabWidth(Integer defaultTabWidth)
defaultTabWidth - defaultTabWidth Default value is nullpublic Integer getDefaultTabWidth()
public void setDestroyPanes(Boolean destroyPanes)
throws IllegalStateException
destroy() should be called on pane when it a tab is removed via TabSet.removeTab}. An application might set this to false in order to re-use panes in different tabs or in different parts of the application.
destroyPanes - destroyPanes Default value is null
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getDestroyPanes()
destroy() should be called on pane when it a tab is removed via TabSet.removeTab}. An application might set this to false in order to re-use panes in different tabs or in different parts of the application.
public void setLocateTabsBy(String locateTabsBy)
ID
this will always be used. For tabs with no ID, the following options are available: "title" use
the title as an identifier"index" use the index of the tab in the tabset as an identifierNote : This is an advanced setting
locateTabsBy - . See String. Default value is nullpublic String getLocateTabsBy()
ID
this will always be used. For tabs with no ID, the following options are available: "title" use
the title as an identifier"index" use the index of the tab in the tabset as an identifier
String
public void setMoreTabCount(int moreTabCount)
throws IllegalStateException
showMoreTab is enabled.
moreTabCount - moreTabCount Default value is 5
IllegalStateException - this property cannot be changed after the component has been createdpublic int getMoreTabCount()
showMoreTab is enabled.
public void setMoreTabImage(String moreTabImage)
throws IllegalStateException
showMoreTab is enabled this property determines the
image to display on the "More" tab button.
moreTabImage - . See SCImgURL. Default value is "[SKINIMG]/iOS/more.png"
IllegalStateException - this property cannot be changed after the component has been createdpublic String getMoreTabImage()
showMoreTab is enabled this property determines the
image to display on the "More" tab button.
SCImgURL
public void setMoreTabPaneDefaults(Canvas moreTabPaneDefaults)
throws IllegalStateException
Currently constructs a VLayout with a NavigationBar and TableView.
moreTabPaneDefaults - moreTabPaneDefaults Default value is null
IllegalStateException - this property cannot be changed after the component has been createdpublic Canvas getMoreTabPaneDefaults()
Currently constructs a VLayout with a NavigationBar and TableView.
public void setMoreTabPaneProperties(Canvas moreTabPaneProperties)
throws IllegalStateException
moreTabPaneProperties - moreTabPaneProperties Default value is null
IllegalStateException - this property cannot be changed after the component has been createdpublic Canvas getMoreTabPaneProperties()
public void setMoreTabProperties(Tab moreTabProperties)
throws IllegalStateException
moreTabProperties - moreTabProperties Default value is null
IllegalStateException - this property cannot be changed after the component has been createdpublic Tab getMoreTabProperties()
public void setMoreTabTitle(String moreTabTitle)
throws IllegalStateException
moreTabTitle - . See String. Default value is "More"
IllegalStateException - this property cannot be changed after the component has been createdpublic String getMoreTabTitle()
Stringpublic void setPaneContainerClassName(String paneContainerClassName)
paneContainerClassName - . See CSSStyleName. Default value is nullpublic String getPaneContainerClassName()
CSSStyleNamepublic void setPaneContainerOverflow(Overflow paneContainerOverflow)
For other values and their meaning, see Overflow
If this method is called after the component has been drawn/initialized:
Update paneContainerOverflow after creation.
Note : This is an advanced setting
paneContainerOverflow - new overflow setting. Default value is Canvas.AUTOpublic Overflow getPaneContainerOverflow()
For other values and their meaning, see Overflow
public void setPaneMargin(int paneMargin)
throws IllegalStateException
Note that this property may be specified on a per-tab basis via
paneMargin.
paneMargin - paneMargin Default value is 0
IllegalStateException - this property cannot be changed after the component has been createdpublic int getPaneMargin()
Note that this property may be specified on a per-tab basis via
paneMargin.
public void setPickerButtonHSrc(String pickerButtonHSrc)
throws IllegalStateException
showTabPicker is true, and symmetricPickerButton is set to true, this property
governs the base URL for the picker button image, when displayed in a horizontal tab-bar [IE tabBarPosition is set to "top" or
"bottom"]. Note that if symmetricPickerButton is false, the pickerButtonSrc property will be used instead.
This base
URL will have a suffix of "Down" appended when the user holds the mouse down over the button, and
"Disabled" if the tabset as a whole is disabled.
pickerButtonHSrc - . See SCImgURL. Default value is "[SKIN]hpicker.gif"
IllegalStateException - this property cannot be changed after the component has been createdsetSymmetricPickerButton(java.lang.Boolean)public String getPickerButtonHSrc()
showTabPicker is true, and symmetricPickerButton is set to true, this property
governs the base URL for the picker button image, when displayed in a horizontal tab-bar [IE tabBarPosition is set to "top" or
"bottom"]. Note that if symmetricPickerButton is false, the pickerButtonSrc property will be used instead.
This base
URL will have a suffix of "Down" appended when the user holds the mouse down over the button, and
"Disabled" if the tabset as a whole is disabled.
SCImgURLgetSymmetricPickerButton()
public void setPickerButtonSize(int pickerButtonSize)
throws IllegalStateException
showTabPicker is true, this property governs the size
of tab-picker button. Applied as the width of buttons if the tabBar is horizontal, or the height if tabBar is vertical.
Note that the other dimension is determined by this.tabBarThickness
pickerButtonSize - pickerButtonSize Default value is 16
IllegalStateException - this property cannot be changed after the component has been createdpublic int getPickerButtonSize()
showTabPicker is true, this property governs the size
of tab-picker button. Applied as the width of buttons if the tabBar is horizontal, or the height if tabBar is vertical.
Note that the other dimension is determined by this.tabBarThickness
public void setPickerButtonSrc(String pickerButtonSrc)
throws IllegalStateException
showTabPicker is true, this property governs the base
URL for the picker button image, when symmetricPickerButton is set to false Note that if symmetricPickerButton is true, the pickerButtonHSrc and pickerButtonVSrc properties will be used instead.
To get the path to the image to display, this base URL will be modified as follows:
"Down" or "Disabled" will be appended.tabBarPosition for this tabSet will be appended.
pickerButtonSrc - . See SCImgURL. Default value is "[SKIN]/picker.gif"
IllegalStateException - this property cannot be changed after the component has been createdsetSymmetricPickerButton(java.lang.Boolean)public String getPickerButtonSrc()
showTabPicker is true, this property governs the base
URL for the picker button image, when symmetricPickerButton is set to false Note that if symmetricPickerButton is true, the pickerButtonHSrc and pickerButtonVSrc properties will be used instead.
To get the path to the image to display, this base URL will be modified as follows:
"Down" or "Disabled" will be appended.tabBarPosition for this tabSet will be appended.
SCImgURLgetSymmetricPickerButton()
public void setPickerButtonVSrc(String pickerButtonVSrc)
throws IllegalStateException
showTabPicker is true, and symmetricPickerButton is set to true, this property
governs the base URL for the picker button image, when displayed in a verricaL tab-bar [IE tabBarPosition is set to "LEFT" or
"right"]. Note that if symmetricPickerButton is false, the pickerButtonSrc property will be used instead.
This base
URL will have a suffix of "Down" appended when the user holds the mouse down over the button, and
"Disabled" if the tabset as a whole is disabled.
pickerButtonVSrc - . See SCImgURL. Default value is "[SKIN]vpicker.gif"
IllegalStateException - this property cannot be changed after the component has been createdsetSymmetricPickerButton(java.lang.Boolean)public String getPickerButtonVSrc()
showTabPicker is true, and symmetricPickerButton is set to true, this property
governs the base URL for the picker button image, when displayed in a verricaL tab-bar [IE tabBarPosition is set to "LEFT" or
"right"]. Note that if symmetricPickerButton is false, the pickerButtonSrc property will be used instead.
This base
URL will have a suffix of "Down" appended when the user holds the mouse down over the button, and
"Disabled" if the tabset as a whole is disabled.
SCImgURLgetSymmetricPickerButton()
public void setScrollerButtonSize(int scrollerButtonSize)
throws IllegalStateException
showTabScroller is true, this property governs the
size of scroller buttons. Applied as the width of buttons if the tabBar is horizontal, or the height if tabBar is
vertical. Note that the other dimension is determined by this.tabBarThickness
scrollerButtonSize - scrollerButtonSize Default value is 16
IllegalStateException - this property cannot be changed after the component has been createdpublic int getScrollerButtonSize()
showTabScroller is true, this property governs the
size of scroller buttons. Applied as the width of buttons if the tabBar is horizontal, or the height if tabBar is
vertical. Note that the other dimension is determined by this.tabBarThickness
public void setScrollerHSrc(String scrollerHSrc)
throws IllegalStateException
tab scroller buttons, and
symmetricScroller is true, this property governs the
base URL for the tab bar back and forward scroller button images for horizontal tab bars [IE for tab sets with tabBarPosition set to "top" or "bottom"]. Note that if
symmetricScroller is false, scrollerSrc will be used instead.
To get the path to the image to display, this base URL will be modified as follows:
"Down" or "Disabled" will be appended."forward" or
"back" will be appended for the forward or backward scrolling button."[SKIN]hscroll.gif", the image displayed for the back-scroller button on a tabSet
with tabBarPosition set to "top" and symmetricScroller set to true would be one of
"[SKIN]hscroll_back.gif", "[SKIN]hscroll_Down_back.gif", and
"[SKIN]hscroll_Disabled_back.gif". Note that for best results the media should be sized to match the
scroller button sizes, determined by tabBarThickness
and scrollerButtonSize.
scrollerHSrc - . See SCImgURL. Default value is "[SKIN]hscroll.gif"
IllegalStateException - this property cannot be changed after the component has been createdsetSymmetricScroller(java.lang.Boolean)public String getScrollerHSrc()
tab scroller buttons, and
symmetricScroller is true, this property governs the
base URL for the tab bar back and forward scroller button images for horizontal tab bars [IE for tab sets with tabBarPosition set to "top" or "bottom"]. Note that if
symmetricScroller is false, scrollerSrc will be used instead.
To get the path to the image to display, this base URL will be modified as follows:
"Down" or "Disabled" will be appended."forward" or
"back" will be appended for the forward or backward scrolling button."[SKIN]hscroll.gif", the image displayed for the back-scroller button on a tabSet
with tabBarPosition set to "top" and symmetricScroller set to true would be one of
"[SKIN]hscroll_back.gif", "[SKIN]hscroll_Down_back.gif", and
"[SKIN]hscroll_Disabled_back.gif". Note that for best results the media should be sized to match the
scroller button sizes, determined by tabBarThickness
and scrollerButtonSize.
SCImgURLgetSymmetricScroller()
public void setScrollerSrc(String scrollerSrc)
throws IllegalStateException
tab scroller buttons, and
symmetricScroller is false, this property governs
the base URL for the tab bar back and forward scroller button images. Note that if symmetricScroller is true, scrollerHSrc and scrollerVSrc will be used instead.
To get the path to the image to display, this base URL will be modified as follows:
"Down" or "Disabled" will be appended.tabBarPosition for this tabSet will be appended."forward" or "back" will be appended for the forward or backward scrolling
button."[SKIN]scroll.gif", the image displayed for
the back-scroller button on a tabSet with tabBarPosition set to "top" and symmetricScroller
set to false would be one of "[SKIN]scroll_top_back.gif", "[SKIN]scroll_Down_top_back.gif",
and "[SKIN]scroll_Disabled_top_back.gif". Note that for best results the media should be sized to match
the scroller button sizes, determined by tabBarThickness and scrollerButtonSize.
scrollerSrc - . See SCImgURL. Default value is "[SKIN]/scroll.gif"
IllegalStateException - this property cannot be changed after the component has been createdsetSymmetricScroller(java.lang.Boolean)public String getScrollerSrc()
tab scroller buttons, and
symmetricScroller is false, this property governs
the base URL for the tab bar back and forward scroller button images. Note that if symmetricScroller is true, scrollerHSrc and scrollerVSrc will be used instead.
To get the path to the image to display, this base URL will be modified as follows:
"Down" or "Disabled" will be appended.tabBarPosition for this tabSet will be appended."forward" or "back" will be appended for the forward or backward scrolling
button."[SKIN]scroll.gif", the image displayed for
the back-scroller button on a tabSet with tabBarPosition set to "top" and symmetricScroller
set to false would be one of "[SKIN]scroll_top_back.gif", "[SKIN]scroll_Down_top_back.gif",
and "[SKIN]scroll_Disabled_top_back.gif". Note that for best results the media should be sized to match
the scroller button sizes, determined by tabBarThickness and scrollerButtonSize.
SCImgURLgetSymmetricScroller()
public void setScrollerVSrc(String scrollerVSrc)
throws IllegalStateException
tab scroller buttons, and
symmetricScroller is true, this property governs the
base URL for the tab bar back and forward scroller button images for vertical tab bars [IE for tab sets with tabBarPosition set to "left" or "right"]. Note that if
symmetricScroller is false, scrollerSrc will be used instead.
To get the path to the image to display, this base URL will be modified as follows:
"Down" or "Disabled" will be appended."forward" or
"back" will be appended for the forward or backward scrolling button."[SKIN]vscroll.gif", the image displayed for the back-scroller button on a tabSet
with tabBarPosition set to "left" and symmetricScroller set to true would be one of
"[SKIN]vscroll_back.gif", "[SKIN]vscroll_Down_back.gif", and
"[SKIN]vscroll_Disabled_back.gif". Note that for best results the media should be sized to match the
scroller button sizes, determined by tabBarThickness
and scrollerButtonSize.
scrollerVSrc - . See SCImgURL. Default value is "[SKIN]vscroll.gif"
IllegalStateException - this property cannot be changed after the component has been createdsetSymmetricScroller(java.lang.Boolean)public String getScrollerVSrc()
tab scroller buttons, and
symmetricScroller is true, this property governs the
base URL for the tab bar back and forward scroller button images for vertical tab bars [IE for tab sets with tabBarPosition set to "left" or "right"]. Note that if
symmetricScroller is false, scrollerSrc will be used instead.
To get the path to the image to display, this base URL will be modified as follows:
"Down" or "Disabled" will be appended."forward" or
"back" will be appended for the forward or backward scrolling button."[SKIN]vscroll.gif", the image displayed for the back-scroller button on a tabSet
with tabBarPosition set to "left" and symmetricScroller set to true would be one of
"[SKIN]vscroll_back.gif", "[SKIN]vscroll_Down_back.gif", and
"[SKIN]vscroll_Disabled_back.gif". Note that for best results the media should be sized to match the
scroller button sizes, determined by tabBarThickness
and scrollerButtonSize.
SCImgURLgetSymmetricScroller()
public void setShowMoreTab(Boolean showMoreTab)
throws IllegalStateException
moreTabCount be shown on a "more"
tab? This setting is used to emulate an iPhone-style tab bar "more" button.
showMoreTab - showMoreTab Default value is null
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getShowMoreTab()
moreTabCount be shown on a "more"
tab? This setting is used to emulate an iPhone-style tab bar "more" button.
public void setShowPaneContainerEdges(Boolean showPaneContainerEdges)
edges.
Note : This is an advanced setting
showPaneContainerEdges - showPaneContainerEdges Default value is nullpublic Boolean getShowPaneContainerEdges()
edges.
public void setShowPartialEdges(Boolean showPartialEdges)
throws IllegalStateException
edges, setting
this attribute to true will set the paneContainer to show customEdges for the three sides opposing the tabBarPosition.
Note : This is an advanced setting
showPartialEdges - showPartialEdges Default value is false
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getShowPartialEdges()
edges, setting
this attribute to true will set the paneContainer to show customEdges for the three sides opposing the tabBarPosition.
public void setShowTabPicker(Boolean showTabPicker)
throws IllegalStateException
showTabPicker - showTabPicker Default value is true
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getShowTabPicker()
public void setShowTabScroller(Boolean showTabScroller)
throws IllegalStateException
showTabScroller - showTabScroller Default value is true
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getShowTabScroller()
public void setSimpleTabBaseStyle(String simpleTabBaseStyle)
simpleTabBaseStyle - . See CSSStyleName. Default value is "tabButton"public String getSimpleTabBaseStyle()
CSSStyleName
public void setSkinImgDir(String skinImgDir)
throws IllegalStateException
skinDir.
setSkinImgDir in class CanvasskinImgDir - . See String. Default value is "images/TabSet/"
IllegalStateException - this property cannot be changed after the component has been createdImages overview and related methodspublic String getSkinImgDir()
skinDir.
getSkinImgDir in class CanvasStringImages overview and related methods
public void setSymmetricEdges(Boolean symmetricEdges)
throws IllegalStateException
show edges for the
paneContainer, this property determines whether the same edge media will be used regardless of the tab bar position, or
whether different media should be used (necessary if the edge appearance is not symmetrical on all sides). If this
property is set to false the paneContainer edge image URLs will be prefixed with the tabBarPosition of the tabSet - for
example "[SKIN]edge_top_T.gif" rather than just "[SKIN]edge_T.gif".
When
symmetricEdges is false, custom edge sizes for the pane container may be specified via topEdgeSizes et al, and custom edge offsets via topEdgeOffsets et al.
symmetricEdges - symmetricEdges Default value is true
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getSymmetricEdges()
show edges for the
paneContainer, this property determines whether the same edge media will be used regardless of the tab bar position, or
whether different media should be used (necessary if the edge appearance is not symmetrical on all sides). If this
property is set to false the paneContainer edge image URLs will be prefixed with the tabBarPosition of the tabSet - for
example "[SKIN]edge_top_T.gif" rather than just "[SKIN]edge_T.gif".
When
symmetricEdges is false, custom edge sizes for the pane container may be specified via topEdgeSizes et al, and custom edge offsets via topEdgeOffsets et al.
public void setSymmetricPickerButton(Boolean symmetricPickerButton)
throws IllegalStateException
tab picker button, this
property determines whether the pickerButtonHSrc and
pickerButtonVSrc media will be used for vertical and
horizontal tab-bar picker buttons, or whether separate media should be used for each possible tabBarPosition based on the pickerButtonSrc property for this tabSet.
symmetricPickerButton - symmetricPickerButton Default value is true
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getSymmetricPickerButton()
tab picker button, this
property determines whether the pickerButtonHSrc and
pickerButtonVSrc media will be used for vertical and
horizontal tab-bar picker buttons, or whether separate media should be used for each possible tabBarPosition based on the pickerButtonSrc property for this tabSet.
public void setSymmetricScroller(Boolean symmetricScroller)
throws IllegalStateException
tab scroller buttons, this
property determines whether the scrollerHSrc and scrollerVSrc media will be used for vertical and horizontal
tab-bar scroller buttons, or whether separate media should be used for each possible tabBarPosition based on the scrollerSrc property for this tabSet.
symmetricScroller - symmetricScroller Default value is true
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getSymmetricScroller()
tab scroller buttons, this
property determines whether the scrollerHSrc and scrollerVSrc media will be used for vertical and horizontal
tab-bar scroller buttons, or whether separate media should be used for each possible tabBarPosition based on the scrollerSrc property for this tabSet.
public void setTabBarAlign(Side tabBarAlign)
throws IllegalStateException
If the position of the tabBar is "top" or "bottom", then alignment must be "left" or
"right" and defaults to "left", or "right" if the browser is in RTL mode.
If the position of the tabBar is "left" or "right", then the alignment must be "top" or "bottom" and defaults to "top".
tabBarAlign - tabBarAlign Default value is see below
IllegalStateException - this property cannot be changed after the component has been createdpublic Side getTabBarAlign()
If the position of the tabBar is "top" or "bottom", then alignment must be "left" or
"right" and defaults to "left", or "right" if the browser is in RTL mode.
If the position of the tabBar is "left" or "right", then the alignment must be "top" or "bottom" and defaults to "top".
public void setTabBarPosition(Side tabBarPosition)
throws IllegalStateException
tabBarPosition - tabBarPosition Default value is Canvas.TOP
IllegalStateException - this property cannot be changed after the component has been createdpublic Side getTabBarPosition()
public void setTabBarThickness(int tabBarThickness)
tabBarThickness - tabBarThickness Default value is 21public int getTabBarThickness()
public void setTitleEditorLeftOffset(Integer titleEditorLeftOffset)
titleEditorLeftOffset - titleEditorLeftOffset Default value is nullsetTitleEditorRightOffset(java.lang.Integer),
setTitleEditorTopOffset(java.lang.Integer)public Integer getTitleEditorLeftOffset()
getTitleEditorRightOffset(),
getTitleEditorTopOffset()
public void setTitleEditorProperties(TextItem titleEditorProperties)
throws IllegalStateException
titleEditor. This is the
text item we use to edit tab titles in this tabSet.
titleEditorProperties - titleEditorProperties Default value is null
IllegalStateException - this property cannot be changed after the component has been createdcom.smartgwt.client.widgets.tab.TabSet#setTitleEditor,
setCanEditTabTitles(java.lang.Boolean)public TextItem getTitleEditorProperties()
titleEditor. This is the
text item we use to edit tab titles in this tabSet.
com.smartgwt.client.widgets.tab.TabSet#getTitleEditor,
getCanEditTabTitles()public void setTitleEditorRightOffset(Integer titleEditorRightOffset)
titleEditorRightOffset - titleEditorRightOffset Default value is nullsetTitleEditorLeftOffset(java.lang.Integer),
setTitleEditorTopOffset(java.lang.Integer)public Integer getTitleEditorRightOffset()
getTitleEditorLeftOffset(),
getTitleEditorTopOffset()public void setTitleEditorTopOffset(Integer titleEditorTopOffset)
Note: The height of the editor is an attribute of the editor
itself, and can be set by specifying a "height" property in titleEditorDefaults.
titleEditorTopOffset - titleEditorTopOffset Default value is nullsetTitleEditorLeftOffset(java.lang.Integer),
setTitleEditorRightOffset(java.lang.Integer)public Integer getTitleEditorTopOffset()
Note: The height of the editor is an attribute of the editor
itself, and can be set by specifying a "height" property in titleEditorDefaults.
getTitleEditorLeftOffset(),
getTitleEditorRightOffset()
public void setUseSimpleTabs(Boolean useSimpleTabs)
throws IllegalStateException
ImgTab tabs? If set to true tabs will instances of Button, styled according to the simpleTabBaseStyle.
Note : This is an advanced setting
useSimpleTabs - useSimpleTabs Default value is false
IllegalStateException - this property cannot be changed after the component has been createdpublic Boolean getUseSimpleTabs()
ImgTab tabs? If set to true tabs will instances of Button, styled according to the simpleTabBaseStyle.
public void cancelTabTitleEditing()
canEditTabTitles), dismiss the editor and discard the edit value entered by the user.
public int getSelectedTabNumber()
public HandlerRegistration addCloseClickHandler(CloseClickHandler handler)
When canCloseTabs is set, this notification method fired
when the user clicks the "close" icon for a tab. Call TabCloseClickEvent.cancel() from within CloseClickHandler.onCloseClick(com.smartgwt.client.widgets.events.CloseClickEvent) to cancel default behavior of removing the tab from the
TabSet
addCloseClickHandler in interface HasCloseClickHandlershandler - the closeClick handler
HandlerRegistration used to remove this handlerpublic void saveTabTitle()
canEditTabTitles), save the edited tab title and hide the editor.
public void scrollBack()
public void scrollForward()
public HandlerRegistration addTabContextMenuHandler(TabContextMenuHandler handler)
Notification fired when the user right-clicks on a tab. Event may be cancelled by returning false
addTabContextMenuHandler in interface HasTabContextMenuHandlershandler - the tabContextMenu handler
HandlerRegistration used to remove this handlerpublic HandlerRegistration addTabDeselectedHandler(TabDeselectedHandler handler)
Notification fired when a tab is deselected.
addTabDeselectedHandler in interface HasTabDeselectedHandlershandler - the tabDeselected handler
HandlerRegistration used to remove this handlerpublic Tab tabForPane(Canvas pane)
pane - pane to show
public HandlerRegistration addTabIconClickHandler(TabIconClickHandler handler)
Method fired when the user clicks the icon for a tab, as specified via icon.
Default behavior will fire icon.click() if
specified, with two parameters tab (a pointer to the tab object and tabSet a pointer to the
tabSet instance.
addTabIconClickHandler in interface HasTabIconClickHandlershandler - the tabIconClick handler
HandlerRegistration used to remove this handlerpublic HandlerRegistration addTabSelectedHandler(TabSelectedHandler handler)
Notification fired when a tab is selected. Note that this will only fire if this tabSet is drawn. If a tab is selected
before TabSet.draw() is called, the tabSelected() notification will fire on
draw()
addTabSelectedHandler in interface HasTabSelectedHandlershandler - the tabSelected handler
HandlerRegistration used to remove this handlerpublic HandlerRegistration addTabTitleChangedHandler(TabTitleChangedHandler handler)
This notification method fired when the user changes the title of a tab in this TabSet. This can happen either through
user interaction with the UI if canEditTabTitles is
set, or programmatically if application code calls editTabTitle.
Call TabTitleChangedEvent.cancel() from within TabTitleChangedHandler#onTabTitleChanged from this method to cancel the change.
addTabTitleChangedHandler in interface HasTabTitleChangedHandlershandler - the tabTitleChanged handler
HandlerRegistration used to remove this handlerpublic static void setDefaultProperties(TabSet tabSetProperties)
Note: This method is intended for setting default attributes only and will effect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead.
tabSetProperties - properties that should be used as new defaults when instances of this class are createdpublic void setSelectedTab(int selectedTab)
selectedTab - selectedTab Default value is 0public void setTabs(Tab... tabs)
public void setPaneContainerProperties(Canvas paneContainerProperties)
paneContainerProperties - the pane container properties
IllegalStateException - this property cannot be changed after the component has been createdpublic void selectTab(int tabIndex)
tabIndex - the tab indexpublic void selectTab(String ID)
ID - the tab IDpublic void selectTab(Tab tab)
tab - the tab
public void setTabTitle(int tabIndex,
String title)
tabIndex - the tab indextitle - new title
public void setTabTitle(String ID,
String title)
ID - the tab IDtitle - new title
public void setTabTitle(Tab tab,
String title)
tab - the tabtitle - new title
public void setTabIcon(int tabIndex,
String iconURL)
tabIndex - the tab indexiconURL - new icon
public void setTabIcon(String ID,
String iconURL)
ID - the tab IDiconURL - new icon
public void setTabIcon(Tab tab,
String iconURL)
tab - the tabiconURL - new iconpublic void enableTab(int tabIndex)
tabIndex - the tab indexpublic void enableTab(String ID)
ID - the tab idpublic void enableTab(Tab tab)
tab - the tab
public void updateTab(int tabIndex,
Canvas pane)
tabIndex - the tab indexpane - the new pane for the tab
public void updateTab(Tab tab,
Canvas pane)
tab - the tabpane - the new pane for the tabpublic void disableTab(int tabIndex)
tabIndex - the tab indexpublic void disableTab(String ID)
ID - the tab idpublic void disableTab(Tab tab)
tab - the tabpublic void removeTab(int tabIndex)
The pane associated with the removed tab is automatically destroyed when you call this method.
To avoid this, call updateTab(int, com.smartgwt.client.widgets.Canvas) with null as the new
pane immediately before removing the tab.
tabIndex - the tab indexpublic void removeTab(String ID)
The pane associated with the removed tab is automatically destroyed when you call this method.
To avoid this, call updateTab(int, com.smartgwt.client.widgets.Canvas) with null as the new
pane immediately before removing the tab.
ID - the tabIDpublic void removeTab(Tab tab)
The pane associated with the removed tab is automatically destroyed when you call this method.
To avoid this, call updateTab(int, com.smartgwt.client.widgets.Canvas) with null as the new
pane immediately before removing the tab.
tab - the tabpublic void removeTabs(int[] tabIndexes)
tabIndexes - the tab indexespublic void removeTabs(String[] ids)
ids - the tabIDspublic Tab getSelectedTab()
public StatefulCanvas getTabCanvas(int tabIndex)
getUseSimpleTabs().
If this property is false, the returned canvas will be a ImgTab
instance. If true the canvas will be a com.smartgwt.client.widgets.tab.Button instance.
Note that you can make use of ImgTab APIs by using the getJsObj() and create()
APIs to "cast" to the appropriate type - for example:ImgTab liveTab = ImgTab.create(myTabSet.getTabCanvas(2).getJsObj());
Note that live Tab instances are not available until BaseWidget.draw().
Note that this is an advanced method. The returned Tab is considered an internal component of
the TabSet. In order to maximize forward compatibility, wherever possible manipulate tabs
through TabSet APIs such as a setTabTitle(int, java.lang.String) instead of
modifying them directly.
tab -
public StatefulCanvas getTabCanvas(String ID)
getUseSimpleTabs().
If this property is false, the returned canvas will be a ImgTab
instance. If true the canvas will be a com.smartgwt.client.widgets.tab.Button instance.
Note that you can make use of ImgTab APIs by using the getJsObj() and create()
APIs to "cast" to the appropriate type - for example:ImgTab liveTab = ImgTab.create(myTabSet.getTabCanvas(2).getJsObj());
Note that live Tab instances are not available until BaseWidget.draw().
Note that this is an advanced method. The returned Tab is considered an internal component of
the TabSet. In order to maximize forward compatibility, wherever possible manipulate tabs
through TabSet APIs such as a setTabTitle(int, java.lang.String) instead of
modifying them directly.
tab -
public Tab getTab(int tabIndex)
index - of tab to retrieve
public Tab getTab(String ID)
ID - of tab to retrieve
public int getTabNumber(String ID)
ID - the tab ID
public void addTab(Tab tab)
tab - new tab
public void addTab(Tab tab,
int position)
tab - new tabposition - the position where tab should be addedpublic int getNumTabs()
public void setTitleEditEvent(TabTitleEditEvent titleEditEvent)
titleEditEvent - titleEditEvent Default value is "doubleClick"setCanEditTabTitles(java.lang.Boolean),
Tab.setCanEditTitle(java.lang.Boolean)public TabTitleEditEvent getTitleEditEvent()
getCanEditTabTitles(),
Tab.getCanEditTitle()public void editTabTitle(String tab)
canEditTabTitles or canEditTitle.
tab - The tab whose title should be edited (may be specified by ID or index)public void editTabTitle(int tab)
canEditTabTitles or canEditTitle.
tab - The tab whose title should be edited (may be specified by ID or index)public Tab[] getTabs()
public void setTabBarControls(Object... tabBarControls)
throws IllegalStateException
"tabScroller" and "tabPicker". These show the standard
controls to scroll to clipped tabs, or pick them directly from a menu, and show up only if showTabScroller or showTabPicker is true and there is not enough space
available to show all the tabs in the tab-bar. Additional controls can be included by adding any widget to this array. Controls will show up in the order in which they are specified. For example, the following code would add a button in the tabBar area, while preserving the normal behavior of the tabScroller and tabPicker:
isc.TabSet.create({ width:300, tabs : [ { title: "Tab one" } ], tabBarControls : [
isc.ImgButton.create({ src:"[SKINIMG]/actions/add.png", width:16, height:16,
layoutAlign:"center" }), "tabScroller", "tabPicker" ] });
Note : This is an advanced setting
tabBarControls - tabBarControls Default value is ["tabScroller", "tabPicker"]
IllegalStateException - this property cannot be changed after the component has been createdTabBarControls
public void setTabBarProperties(TabBar tabBarProperties)
throws IllegalStateException
tabBar
tabBarProperties - tabBarProperties Default value is null
IllegalStateException - this property cannot be changed after the component has been created
public void setTabPane(int tabIndex,
Canvas pane)
pane to an existing tab in this tabSet
tabIndex - Tab to updatepane - new Pane for the tab. pass null to drop existing pane
public void setTabPane(String tabID,
Canvas pane)
pane to an existing tab in this tabSet
tabID - Tab to updatepane - new Pane for the tab. pass null to drop existing panepublic static void preloadImages()
public com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.widgets.tab.TabSetLogicalStructure s)
public com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
getLogicalStructure in interface LogicalStructuregetLogicalStructure in class Canvas
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||