/** * If this button is showing an icon should it appear to the left or right of the title? valid options are * <code>"left"</code> and <code>"right"</code>. * * * @return String * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public String getIconOrientation() { return getAttributeAsString("iconOrientation"); }
/** * Optional icon to be shown with the button title text. <P> Specify as the partial URL to an image, relative to the * imgDir of this component. * * * @return String * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public String getIcon() { return getAttributeAsString("icon"); }
/** * String identifier for this canvas's mutually exclusive selection group. * * * @return String * @see com.smartgwt.client.docs.State State overview and related methods * @see <a href="http://www.smartclient.com/smartgwt/showcase/#buttons_category_toggle" target="examples">Radio / Toggle Behavior Example</a> */ public String getRadioGroup() { return getAttributeAsString("radioGroup"); }
/** * The base filename for the image. <P> If <code>img.state</code> is set, it's value will be appended to the URL before the * file extension. <P> For example, given an <code>src</code> of "findIcon.gif" and a state of "Disabled", the resulting * image name would be "findIcon_Disabled.gif". Compound states such as "Selected", "Focused" and "Over" or "Down" will * have an intervening underscore, resulting in, for example, <code>"findIcon_Selected_Down.gif"</code>. * * * @return String * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods * @see <a href="http://www.smartclient.com/smartgwt/showcase/#grid_appearance_category" target="examples">Appearance Example</a> */ public String getSrc() { return getAttributeAsString("src"); }
/** * If this button is showing an icon should it be right or left aligned? * * * @return String * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public String getIconAlign() { return getAttributeAsString("iconAlign"); }
/** * The text title to display in this button. * * * @return Return the title - text/HTML drawn inside the component. <p> Default is to simply return this.title. * @see com.smartgwt.client.docs.Basics Basics overview and related methods */ public String getTitle() { return getAttributeAsString("title"); }
/** * Base CSS style. As the component changes state and/or is selected, suffixes will be added to the base style. <P> When * the component changes state (eg becomes disabled), a suffix will be appended to this style name, reflecting the * following states: "Over", "Down", or "Disabled". <P> If the widget is selected, the suffixes will be "Selected", * "SelectedOver", etc. <P> If the widget has focus and {@link com.smartgwt.client.widgets.StatefulCanvas#getShowFocused * showFocused} is true, and {@link com.smartgwt.client.widgets.StatefulCanvas#getShowFocusedAsOver showFocusedAsOver} is * false, the suffixes will be "Focused", "FocusedOver", etc, or if the widget is both selected and focused, * "SelectedFocused", "SelectedFocusedOver", etc. <P> For example, if <code>baseStyle</code> is set to "button", this * component is {@link com.smartgwt.client.widgets.ImgButton#isSelected selected} and the mouse cursor is over this * component, the style "buttonSelectedOver" will be used. * * * @return String */ public String getBaseStyle() { return getAttributeAsString("baseStyle"); }