/** * 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. * * @param icon icon Default value is null * @param iconSize the icon size * @see <a href="http://www.smartclient.com/smartgwt/showcase/#layout_tabs_orientation" target="examples">Orientation Example</a> */ public void setIcon(String icon, int iconSize) { setIcon(icon); setIconSize(iconSize); }
/** * 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. * * @param icon icon Default value is null * @param iconWidth the icon width * @param iconHeight the icon height * @see <a href="http://www.smartclient.com/smartgwt/showcase/#layout_tabs_orientation" target="examples">Orientation Example</a> */ public void setIcon(String icon, int iconWidth, int iconHeight) { setIcon(icon); setIconWidth(iconWidth); setIconHeight(iconHeight); }
public Tab(String title, String icon) { setTitle(title); setIcon(icon); setID(com.smartgwt.client.util.SC.generateID(getClass().getName())); }