/** * Specifies the title of the this tab. * * @return String */ public String getTitle() { if(tabSet == null || !tabSet.isDrawn()) { return getAttributeAsString("title"); } else { return tabSet.getTab(getID()).getAttributeAsString("title"); } }
/** * 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); }
/** * Properties to apply to the "more" tab created by this TabSet. * * * @return Tab */ public Tab getMoreTabProperties() { return Tab.getOrCreateRef(getAttributeAsJavaScriptObject("moreTabProperties")); }
/** * Specifies the title of the this tab. To change the title after the TabSet has been created, call {@link * com.smartgwt.client.widgets.tab.TabSet#setTabTitle TabSet.setTabTitle}. * * @param title title Default value is null */ public void setTitle(String title) { if(tabSet == null || !tabSet.isDrawn()) { setAttribute("title", title); } else { tabSet.setTabTitle(this, title); } }
/** * 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); }
/** * This property defines the number tab buttons that should be shown before automatically adding a "more" button to handle * the remaining tabs. This property is only used when {@link com.smartgwt.client.widgets.tab.TabSet#getShowMoreTab * showMoreTab} is enabled. * * * @return int */ public int getMoreTabCount() { return getAttributeAsInt("moreTabCount"); }
/** * How big are the end pieces by default * * @param capSize capSize Default value is 2 * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setCapSize(int capSize) { setAttribute("capSize", capSize, true); }
/** * Default src for the close icon for tabs to display if {@link com.smartgwt.client.widgets.tab.TabSet#getCanCloseTabs * canCloseTabs} is true. * * * @return String */ public String getCloseTabIcon() { return getAttributeAsString("closeTabIcon"); }
/** * You can specify an explicit width for the tab using this property. Note that tabs automatically size to make room for * the full title, but if you want to e.g. specify a uniform width for all tabs in a TabSet, this property enables you to * do so. * * * @return int */ public int getWidth() { return getAttributeAsInt("width"); }
/** * * * * @return String */ public String getBaseStyle() { return getAttributeAsString("baseStyle"); }
/** * Should we visibly change state when the mouse goes over this tab * * * @return Boolean */ public Boolean getShowRollOver() { return getAttributeAsBoolean("showRollOver"); }
/** * CSS style used for the paneContainer. * * @param paneContainerClassName paneContainerClassName Default value is null */ public void setPaneContainerClassName(String paneContainerClassName) { setAttribute("paneContainerClassName", paneContainerClassName, 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} * * * @return int */ public int getPickerButtonSize() { return getAttributeAsInt("pickerButtonSize"); }
/** * Base path for the images. <B>Note</B> that when used within a TabSet, the {@link * com.smartgwt.client.widgets.tab.TabSet#getTabBarPosition tabBarPosition} is appended as an additional path segment, * yielding "images/Tab/top/" et al. * * @param skinImgDir skinImgDir Default value is "images/Tab/" */ public void setSkinImgDir(String skinImgDir) { setAttribute("skinImgDir", skinImgDir, 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 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); }