/** * 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"); }
/** * 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"); }
/** * String identifier for this canvas's mutually exclusive selection group. * * * @return String * @see com.smartgwt.client.docs.State State overview and related methods */ public String getRadioGroup() { return getAttributeAsString("radioGroup"); }
/** * 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"); }
/** * Specifies a skinImgDir to apply to the label containing the title of this StretchImgButton. May be null in which case * <code>this.skinImgDir</code> will be applied to the label as well. <P> Note that icons displayed in the title may make * use of the skin img dir set here * * * @return String */ public String getLabelSkinImgDir() { return getAttributeAsString("labelSkinImgDir"); }
/** * CSS style applied to the title text only. Defaults to {@link com.smartgwt.client.widgets.StretchImgButton#getBaseStyle * baseStyle} when unset. <P> With a separate <code>titleStyle</code> and {@link * com.smartgwt.client.widgets.StretchImgButton#getBaseStyle baseStyle} set, you can provide a backgroundColor via * <code>baseStyle</code> that will allow translucent .png media to be "tinted" by the underlying background color, so that * a single set of media can provide range of color options. In this usage, the <code>titleStyle</code> should generally * not specify a background color as this would block out the media that appears behind the title. * * * @return String */ public String getTitleStyle() { return getAttributeAsString("titleStyle"); }
/** * 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.StretchImgButton#isSelected selected} and the mouse cursor is over this * component, the style "buttonSelectedOver" will be used. * * * @return String */ public String getBaseStyle() { return getAttributeAsString("baseStyle"); }
/** * Base URL for the image. By default, StretchImgButtons consist of three image parts: A start image (displayed at the top * or left), a scalable central image and an end image displayed at the bottom or right. <P> The images displayed in the * stretchImgButton are derived from this property in the following way: <P> <ul> <li> When the button is in its standard * state the suffixes "_start", "_end" and "_stretch" are applied to the src (before the file extension), so by * default the images displayed will be "button_start.gif" (sized to be <code>this.capSize</code> by the * specified width of the stretchImgButton), "button_stretch.gif" (stretched to the necessary width) and * "button_end.gif" (sized the same as the start image). <li> As the button's state changes, the images will have * suffixes appended <b>before</b> the "_start" / "_end" / "_stretch" to represent the button state. Possible states * are "Down", "Over", "Selected" "Focused" and "Disabled". Note that "Selected" and "Focused" are compound states * which may be applied in addition to "Down" etc. </ul> For example the center piece of a selected stretchImgButton with * the mouse hovering over it might have the URL: <code>"button_Selected_Down_stretch.gif"</code>. <P> Media should be * present for each possible state of the _start, _end and _stretch images. * * * @return String */ public String getSrc() { return getAttributeAsString("src"); }