/** * Default src for the close icon for tabs to display if {@link com.smartgwt.client.widgets.tab.TabSet#getCanCloseTabs * canCloseTabs} is true. * * @param closeTabIcon closeTabIcon Default value is [SKIN]/TabSet/close.png * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setCloseTabIcon(String closeTabIcon) throws IllegalStateException { setAttribute("closeTabIcon", closeTabIcon, false); }
/** * CSS style used for the paneContainer. * * @param paneContainerClassName paneContainerClassName Default value is null */ public void setPaneContainerClassName(String paneContainerClassName) { setAttribute("paneContainerClassName", paneContainerClassName, true); }
/** * Should tabs exceeding {@link com.smartgwt.client.widgets.tab.TabSet#getMoreTabCount moreTabCount} be shown on a "more" * tab? <p> This setting is used to emulate an iPhone-style tab bar "more" button. * * @param showMoreTab showMoreTab Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setShowMoreTab(Boolean showMoreTab) throws IllegalStateException { setAttribute("showMoreTab", showMoreTab, false); }
/** * Thickness of tabBar, applies to either orientation (specifies height for horizontal, width for vertical orientation). * Note that overriding this value for TabSets that are skinned with images generally means providing new media for the * borders. * * @param tabBarThickness tabBarThickness Default value is 21 */ public void setTabBarThickness(int tabBarThickness) { setAttribute("tabBarThickness", tabBarThickness, true); }
/** * If {@link com.smartgwt.client.widgets.tab.TabSet#getShowTabPicker 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 {@link com.smartgwt.client.widgets.tab.TabSet#getTabBarThickness * this.tabBarThickness} * * @param pickerButtonSize pickerButtonSize Default value is 16 * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setPickerButtonSize(int pickerButtonSize) throws IllegalStateException { setAttribute("pickerButtonSize", pickerButtonSize, false); }
/** * If {@link com.smartgwt.client.widgets.tab.TabSet#getShowTabScroller 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 {@link * com.smartgwt.client.widgets.tab.TabSet#getTabBarThickness this.tabBarThickness} * * @param scrollerButtonSize scrollerButtonSize Default value is 16 * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setScrollerButtonSize(int scrollerButtonSize) throws IllegalStateException { setAttribute("scrollerButtonSize", scrollerButtonSize, false); }
/** * If the paneContainer for this tab set is showing {@link com.smartgwt.client.widgets.Canvas#getShowEdges edges}, setting * this attribute to <code>true</code> will set the paneContainer to show {@link * com.smartgwt.client.widgets.Canvas#getCustomEdges customEdges} for the three sides opposing the tabBarPosition. * <p><b>Note : </b> This is an advanced setting</p> * * @param showPartialEdges showPartialEdges Default value is false * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setShowPartialEdges(Boolean showPartialEdges) throws IllegalStateException { setAttribute("showPartialEdges", showPartialEdges, false); }
/** * 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? * * @param showTabScroller showTabScroller Default value is true * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setShowTabScroller(Boolean showTabScroller) throws IllegalStateException { setAttribute("showTabScroller", showTabScroller, false); }
/** * Whether {@link com.smartgwt.client.widgets.Canvas#destroy destroy()} should be called on {@link * com.smartgwt.client.widgets.tab.Tab#getPane pane} when it a tab is removed via {@link * com.smartgwt.client.widgets.tab.TabSet#removeTab TabSet.removeTab}}. <P> An application might set this to false in * order to re-use panes in different tabs or in different parts of the application. * * @param destroyPanes destroyPanes Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setDestroyPanes(Boolean destroyPanes) throws IllegalStateException { setAttribute("destroyPanes", destroyPanes, false); }
/** * Title for the "More" tab. * * @param moreTabTitle moreTabTitle Default value is "More" * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setMoreTabTitle(String moreTabTitle) throws IllegalStateException { setAttribute("moreTabTitle", moreTabTitle, false); }
/** * 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? * * @param showTabPicker showTabPicker Default value is true * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setShowTabPicker(Boolean showTabPicker) throws IllegalStateException { setAttribute("showTabPicker", showTabPicker, false); }
/** * Specifies the index of the initially selected tab. * * @param selectedTab selectedTab Default value is 0 */ public void setSelectedTab(int selectedTab) { setAttribute("selectedTab", selectedTab, true); }
/** * If true, users can edit the titles of tabs in this TabSet when the {@link * com.smartgwt.client.widgets.tab.TabSet#getTitleEditEvent titleEditEvent} fires. You can override this behavior per tab * with the {@link com.smartgwt.client.widgets.tab.Tab#getCanEditTitle canEditTitle} property. * * @param canEditTabTitles canEditTabTitles Default value is false */ public void setCanEditTabTitles(Boolean canEditTabTitles) { setAttribute("canEditTabTitles", canEditTabTitles, true); }
/** * Should the paneContainer for this tabset show {@link com.smartgwt.client.widgets.Canvas#getShowEdges edges}. * <p><b>Note : </b> This is an advanced setting</p> * * @param showPaneContainerEdges showPaneContainerEdges Default value is null */ public void setShowPaneContainerEdges(Boolean showPaneContainerEdges) { setAttribute("showPaneContainerEdges", showPaneContainerEdges, true); }
/** * Properties to apply to the "more" tab created by this TabSet. * * @param moreTabProperties moreTabProperties Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setMoreTabProperties(Tab moreTabProperties) throws IllegalStateException { setAttribute("moreTabProperties", moreTabProperties.getJsObj(), false); }
/** * Alignment of the tabBar. <P> If the position of the tabBar is "top" or "bottom", then alignment must be "left" or * "right" and defaults to "left". <P> If the position of the tabBar is "left" or "right", then the alignment must be "top" * or "bottom" and defaults to "top". * * @param tabBarAlign tabBarAlign Default value is see below * @throws IllegalStateException this property cannot be changed after the component has been created * @see <a href="http://www.smartclient.com/smartgwt/showcase/#layout_tabs_align" target="examples">Align Example</a> */ public void setTabBarAlign(Side tabBarAlign) throws IllegalStateException { setAttribute("tabBarAlign", tabBarAlign.getValue(), false); }
/** * The event that triggers title editing on this TabSet. * * @param titleEditEvent titleEditEvent Default value is "doubleClick" * @see com.smartgwt.client.widgets.tab.TabSet#setCanEditTabTitles * @see com.smartgwt.client.widgets.tab.Tab#setCanEditTitle */ public void setTitleEditEvent(TabTitleEditEvent titleEditEvent) { setAttribute("titleEditEvent", titleEditEvent.getValue(), true); }
/** * Default properties for the "more" tab's pane. <p> Currently constructs a VLayout with a {@link * com.smartgwt.client.widgets.layout.NavigationBar} and {@link com.smartgwt.client.widgets.tableview.TableView}. * * @param moreTabPaneDefaults moreTabPaneDefaults Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setMoreTabPaneDefaults(Canvas moreTabPaneDefaults) throws IllegalStateException { setAttribute("moreTabPaneDefaults", moreTabPaneDefaults == null ? null : moreTabPaneDefaults.getOrCreateJsObj(), false); }
/** * Specifies the overflow of the pane container (the component that holds the pane contents for all tabs). By default this * is set to "auto", meaning the pane container will automatically introduce scrolling when the pane contents exceed the * TabSet's specified size. <p> For other values and their meaning, see {@link com.smartgwt.client.types.Overflow} * Update {@link com.smartgwt.client.widgets.tab.TabSet#getPaneContainerOverflow paneContainerOverflow} after creation. * <p><b>Note : </b> This is an advanced setting</p> * * @param paneContainerOverflow new overflow setting. Default value is Canvas.AUTO */ public void setPaneContainerOverflow(Overflow paneContainerOverflow) { setAttribute("paneContainerOverflow", paneContainerOverflow.getValue(), true); }
/** * Properties to apply to the "more" tab's pane created by this TabSet. * * @param moreTabPaneProperties moreTabPaneProperties Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setMoreTabPaneProperties(Canvas moreTabPaneProperties) throws IllegalStateException { setAttribute("moreTabPaneProperties", moreTabPaneProperties == null ? null : moreTabPaneProperties.getOrCreateJsObj(), false); }