/** * Should we visibly change state when the canvas receives focus? If {@link * com.smartgwt.client.widgets.StatefulCanvas#getShowFocusedAsOver showFocusedAsOver} is <code>true</code>, the * <b><code>"over"</code></b> will be used to indicate focus. Otherwise a separate <b><code>"focused"</code></b> state will * be used. * * @param showFocused showFocused Default value is false * @see com.smartgwt.client.docs.State State overview and related methods */ public void setShowFocused(Boolean showFocused) { setAttribute("showFocused", showFocused, true); }
/** * Should we visibly change state when the mouse goes over this object? * * @param showRollOver showRollOver Default value is false * @see com.smartgwt.client.docs.State State overview and related methods */ public void setShowRollOver(Boolean showRollOver) { setAttribute("showRollOver", showRollOver, true); }
/** * Constructor class name for this widgets {@link com.smartgwt.client.widgets.StatefulCanvas#getOverCanvas overCanvas} * <p><b>Note : </b> This is an advanced setting</p> * * @param overCanvasConstructor overCanvasConstructor Default value is "Canvas" */ public void setOverCanvasConstructor(String overCanvasConstructor) { setAttribute("overCanvasConstructor", overCanvasConstructor, true); }
/** * The text title to display in this button. * Set the title. * * @param title new title. Default value is varies * @see com.smartgwt.client.docs.Basics Basics overview and related methods */ public void setTitle(String title) { setAttribute("title", title, true); }
/** * 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>. * Changes the orientation of the icon relative to the text of the button. * * @param iconOrientation The new orientation of the icon relative to the text of the button.. Default value is "left" * @throws IllegalStateException this property cannot be changed after the component has been created * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public void setIconOrientation(String iconOrientation) throws IllegalStateException { setAttribute("iconOrientation", iconOrientation, false); }
/** * Should we visibly change state when disabled? * * @param showDisabled showDisabled Default value is true * @see com.smartgwt.client.docs.State State overview and related methods */ public void setShowDisabled(Boolean showDisabled) { setAttribute("showDisabled", showDisabled, true); }
/** * When this property is set to true, this widget will create and show the {@link * com.smartgwt.client.widgets.StatefulCanvas#getOverCanvas overCanvas} on user rollover. * <p><b>Note : </b> This is an advanced setting</p> * * @param showOverCanvas showOverCanvas Default value is false */ public void setShowOverCanvas(Boolean showOverCanvas) { setAttribute("showOverCanvas", showOverCanvas, true); }
/** * Height in pixels of the icon image. <P> If unset, defaults to <code>iconSize</code> * * @param iconHeight iconHeight Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public void setIconHeight(Integer iconHeight) throws IllegalStateException { setAttribute("iconHeight", iconHeight, false); }
/** * Size in pixels of the icon image. <P> The <code>iconWidth</code> and <code>iconHeight</code> properties can be used to * configure width and height separately. * * @param iconSize iconSize Default value is 16 * @throws IllegalStateException this property cannot be changed after the component has been created * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public void setIconSize(int iconSize) throws IllegalStateException { setAttribute("iconSize", iconSize, false); }
/** * Width in pixels of the icon image. <P> If unset, defaults to <code>iconSize</code> * * @param iconWidth iconWidth Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public void setIconWidth(Integer iconWidth) throws IllegalStateException { setAttribute("iconWidth", iconWidth, false); }
/** * String identifier for this canvas's mutually exclusive selection group. * <p><b>Note : </b> This is an advanced setting</p> * * @param radioGroup radioGroup Default value is null * @see com.smartgwt.client.docs.State State overview and related methods */ public void setRadioGroup(String radioGroup) { setAttribute("radioGroup", radioGroup, true); }
/** * Whether this widget needs to redraw to reflect state change * <p><b>Note : </b> This is an advanced setting</p> * * @param redrawOnStateChange redrawOnStateChange Default value is false * @see com.smartgwt.client.docs.State State overview and related methods */ public void setRedrawOnStateChange(Boolean redrawOnStateChange) { setAttribute("redrawOnStateChange", redrawOnStateChange, true); }
/** * If using an icon for this button, whether to switch the icon image if the button becomes disabled. * * @param showDisabledIcon showDisabledIcon Default value is true * @throws IllegalStateException this property cannot be changed after the component has been created * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public void setShowDisabledIcon(Boolean showDisabledIcon) throws IllegalStateException { setAttribute("showDisabledIcon", showDisabledIcon, false); }
/** * If using an icon for this button, whether to switch the icon image on mouse rollover. * * @param showRollOverIcon showRollOverIcon Default value is false * @throws IllegalStateException this property cannot be changed after the component has been created * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public void setShowRollOverIcon(Boolean showRollOverIcon) throws IllegalStateException { setAttribute("showRollOverIcon", showRollOverIcon, false); }
/** * 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. * Change the icon being shown next to the title text. * * @param icon URL of new icon. Default value is null * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public void setIcon(String icon) { setAttribute("icon", icon, true); }
/** * If {@link com.smartgwt.client.widgets.StatefulCanvas#getShowFocused showFocused} is true for this widget, should the * <code>"over"</code> state be used to indicate the widget as focused. If set to false, a separate <code>"focused"</code> * state will be used. * * @param showFocusedAsOver showFocusedAsOver Default value is true * @see com.smartgwt.client.docs.State State overview and related methods */ public void setShowFocusedAsOver(Boolean showFocusedAsOver) { setAttribute("showFocusedAsOver", showFocusedAsOver, true); }
/** * If using an icon for this button, whether to switch the icon image when the button receives focus. <P> If {@link * com.smartgwt.client.widgets.StatefulCanvas#getShowFocusedAsOver showFocusedAsOver} is true, the <code>"Over"</code> icon * will be displayed when the canvas has focus, otherwise a separate <code>"Focused"</code> icon will be displayed * * @param showFocusedIcon showFocusedIcon Default value is false * @throws IllegalStateException this property cannot be changed after the component has been created * @see com.smartgwt.client.docs.ButtonIcon ButtonIcon overview and related methods */ public void setShowFocusedIcon(Boolean showFocusedIcon) throws IllegalStateException { setAttribute("showFocusedIcon", showFocusedIcon, false); }
/** * Vertical alignment of this component's title. * * @param valign valign Default value is Canvas.CENTER * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setValign(VerticalAlignment valign) { setAttribute("valign", valign.getValue(), true); }
/** * Horizontal alignment of this component's title. * * @param align align Default value is Canvas.CENTER * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setAlign(Alignment align) { setAttribute("align", align.getValue(), true); }
/** * Behavior on state changes -- BUTTON, RADIO or CHECKBOX * Update the 'actionType' for this canvas (radio / checkbox / button) If the canvas is currently selected, and the passed in actionType is 'button' this method will deselect the canvas. * * @param actionType actionType Default value is "button" * @see com.smartgwt.client.docs.State State overview and related methods */ public void setActionType(SelectionType actionType) { setAttribute("actionType", actionType.getValue(), true); }