/** * Custom src for the close icon for this tab to display if it is closeable. See {@link * com.smartgwt.client.widgets.tab.Tab#getCanClose canClose} and {@link * com.smartgwt.client.widgets.tab.TabSet#getCanCloseTabs canCloseTabs}. * * * @return String */ public String getCloseIcon() { return getAttributeAsString("closeIcon"); }
/** * Specifies the prompt to be displayed when the mouse hovers over the tab. * * * @return String */ public String getPrompt() { return getAttributeAsString("prompt"); }
/** * If {@link com.smartgwt.client.widgets.tab.TabSet#getShowTabPicker showTabPicker} is true for this TabSet, if set this * property will determine the title of the picker menu item for this tab. If unset, {@link * com.smartgwt.client.widgets.tab.Tab#getTitle title} will be used instead * * * @return String * @see com.smartgwt.client.widgets.tab.TabSet#getShowTabPicker * @see com.smartgwt.client.widgets.tab.Tab#getTitle */ public String getPickerTitle() { return getAttributeAsString("pickerTitle"); }
/** * Optional ID for the tab, which can later be used to reference the tab. APIs requiring a reference to a tab will accept * the tabs ID [including {@link com.smartgwt.client.widgets.tab.TabSet#selectTab TabSet.selectTab}, {@link * com.smartgwt.client.widgets.tab.TabSet#updateTab TabSet.updateTab}, {@link * com.smartgwt.client.widgets.tab.TabSet#removeTab TabSet.removeTab}].<br> The ID will also be passed to the {@link * com.smartgwt.client.widgets.tab.TabSet#addTabSelectedHandler TabSet.tabSelected} and {@link * com.smartgwt.client.widgets.tab.TabSet#addTabDeselectedHandler TabSet.tabDeselected} handler functions, if specified. * <p> Note that if you provide an ID, it must be globally unique. * * * @return String */ public String getID() { return getAttributeAsString("ID"); }
/** * 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"); } }
/** * If specified, this tab will show an icon next to the tab title. Note that as with {@link * com.smartgwt.client.widgets.Button#getIcon icon}, the URL of a tabs icon will be updated to reflect disabled state.<br> * If desired a click handler may be assigned to the icon, which will be fired when the user clicks the tab. This method * takes a single parameter <code>tab</code>, a pointer to the tab object. * * * @return String * @see <a href="http://www.smartclient.com/smartgwt/showcase/#layout_tabs_orientation" target="examples">Orientation Example</a> */ public String getIcon() { if(tabSet == null || !tabSet.isDrawn()) { return getAttributeAsString("icon"); } else { return tabSet.getTab(getID()).getAttributeAsString("icon"); } }