/** * Should we show a "grip" image floating above the center of this widget? * * * @return Boolean */ public Boolean getShowGrip() { return getAttributeAsBoolean("showGrip"); }
/** * If the default items are used, capSize is the size in pixels of the first and last images in this stretchImg. * * * @return int * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public int getCapSize() { return getAttributeAsInt("capSize"); }
/** * If specified this css class will be applied to the individual item images within this StretchImg. May be overridden by * specifying item-specific base styles to each object in the {@link com.smartgwt.client.widgets.StretchImg#getItems items * array}. This base style will have standard stateful suffixes appended to indicate the state of this component (as * described in {@link com.smartgwt.client.widgets.StatefulCanvas#getBaseStyle baseStyle}). * * * @return String */ public String getItemBaseStyle() { return getAttributeAsString("itemBaseStyle"); }
/** * If specified this css class will be applied to the individual item images within this StretchImg. May be overridden by * specifying item-specific base styles to each object in the {@link com.smartgwt.client.widgets.StretchImg#getItems items * array}. This base style will have standard stateful suffixes appended to indicate the state of this component (as * described in {@link com.smartgwt.client.widgets.StatefulCanvas#getBaseStyle baseStyle}). * * @param itemBaseStyle itemBaseStyle Default value is null */ public void setItemBaseStyle(String itemBaseStyle) { setAttribute("itemBaseStyle", itemBaseStyle, true); }
public static StretchImg getOrCreateRef(JavaScriptObject jsObj) { if(jsObj == null) return null; BaseWidget obj = BaseWidget.getRef(jsObj); if(obj != null) { return (StretchImg) obj; } else { return new StretchImg(jsObj); } }
/** * Indicates whether the image should be tiled/cropped, stretched, or centered when the size of this widget does * not match the size of the image. See ImageStyle for details. * * * @return ImageStyle * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public ImageStyle getImageType() { return EnumUtil.getEnum(ImageStyle.values(), getAttribute("imageType")); }
/** * If {@link com.smartgwt.client.widgets.StretchImg#getShowGrip showGrip} is true, this property determines whether to show * the 'Down' state on the grip image when the user mousedown's on this widget. Has no effect if {@link * com.smartgwt.client.widgets.StatefulCanvas#getShowDown showDown} is false. * <p><b>Note : </b> This is an advanced setting</p> * * @param showDownGrip showDownGrip Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setShowDownGrip(Boolean showDownGrip) throws IllegalStateException { setAttribute("showDownGrip", showDownGrip, false); }
/** * Base URL for the image if {@link com.smartgwt.client.widgets.StretchImg#getVertical vertical} is false and {@link * com.smartgwt.client.widgets.StretchImg#getSrc src} is unset. * * @param hSrc hSrc Default value is null * @see com.smartgwt.client.widgets.StretchImg#setSrc * @see com.smartgwt.client.widgets.StretchImg#setVSrc * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setHSrc(String hSrc) { setAttribute("hSrc", hSrc, true); }
/** * Suffix used the 'grip' image if {@link com.smartgwt.client.widgets.StretchImg#getShowGrip showGrip} is true. * * * @return String */ public String getGripImgSuffix() { return getAttributeAsString("gripImgSuffix"); }
/** * If {@link com.smartgwt.client.widgets.StretchImg#getShowGrip showGrip} is true, this property determines whether to show * the 'Over' state on the grip image when the user rolls over on this widget. Has no effect if {@link * com.smartgwt.client.widgets.StatefulCanvas#getShowRollOver showRollOver} is false. * * * @return Boolean */ public Boolean getShowRollOverGrip() { return getAttributeAsBoolean("showRollOverGrip"); }
/** * If {@link com.smartgwt.client.widgets.StretchImg#getShowGrip showGrip} is true, this property determines whether to show * the 'Over' state on the grip image when the user rolls over on this widget. Has no effect if {@link * com.smartgwt.client.widgets.StatefulCanvas#getShowRollOver showRollOver} is false. * <p><b>Note : </b> This is an advanced setting</p> * * @param showRollOverGrip showRollOverGrip Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setShowRollOverGrip(Boolean showRollOverGrip) throws IllegalStateException { setAttribute("showRollOverGrip", showRollOverGrip, false); }
/** * Base URL for the image if {@link com.smartgwt.client.widgets.StretchImg#getVertical vertical} is true and {@link * com.smartgwt.client.widgets.StretchImg#getSrc src} is unset. * * * @return String * @see com.smartgwt.client.widgets.StretchImg#getSrc * @see com.smartgwt.client.widgets.StretchImg#getVSrc * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public String getVSrc() { return getAttributeAsString("vSrc"); }
/** * If {@link com.smartgwt.client.widgets.StretchImg#getShowGrip showGrip} is true, this property determines whether to show * the 'Down' state on the grip image when the user mousedown's on this widget. Has no effect if {@link * com.smartgwt.client.widgets.StatefulCanvas#getShowDown showDown} is false. * * * @return Boolean */ public Boolean getShowDownGrip() { return getAttributeAsBoolean("showDownGrip"); }
/** * Indicates whether the list of images is drawn vertically from top to bottom (true), or horizontally from left to right * (false). * * @param vertical vertical Default value is true * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setVertical(Boolean vertical) { setAttribute("vertical", vertical, true); }
/** * Base URL for the image if {@link com.smartgwt.client.widgets.StretchImg#getVertical vertical} is false and {@link * com.smartgwt.client.widgets.StretchImg#getSrc src} is unset. * * * @return String * @see com.smartgwt.client.widgets.StretchImg#getSrc * @see com.smartgwt.client.widgets.StretchImg#getVSrc * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public String getHSrc() { return getAttributeAsString("hSrc"); }
/** * Indicates whether the list of images is drawn vertically from top to bottom (true), or horizontally from left to right * (false). * * * @return Boolean * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public Boolean getVertical() { return getAttributeAsBoolean("vertical"); }
/** * If the default items are used, capSize is the size in pixels of the first and last images in this stretchImg. * * @param capSize capSize Default value is 2 * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setCapSize(int capSize) { setAttribute("capSize", capSize, true); }
/** * The base URL for the image. <P> As with {@link com.smartgwt.client.widgets.Img#getSrc src}, the {@link * com.smartgwt.client.types.State} of the component is added to this URL. Then, the image segment name as specified by * {@link com.smartgwt.client.widgets.StretchImg#getItems items} is added. <P> For example, for a stretchImg in "Over" * state with a <code>src</code> of "button.png" and a segment name of "stretch", the resulting URL would be * "button_Over_stretch.png". * * * @return String * @see com.smartgwt.client.widgets.StretchImg#getHSrc * @see com.smartgwt.client.widgets.StretchImg#getVSrc * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public String getSrc() { return getAttributeAsString("src"); }
/** * Determines whether any specified {@link com.smartgwt.client.widgets.StatefulCanvas#getTitle title} will be displayed * for this component.<br> Applies to Image-based components only, where the title will be rendered out in a label floating * over the component * * * @return Boolean */ public Boolean getShowTitle() { return getAttributeAsBoolean("showTitle"); }
/** * Suffix used the 'grip' image if {@link com.smartgwt.client.widgets.StretchImg#getShowGrip showGrip} is true. * <p><b>Note : </b> This is an advanced setting</p> * * @param gripImgSuffix gripImgSuffix Default value is "grip" * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setGripImgSuffix(String gripImgSuffix) throws IllegalStateException { setAttribute("gripImgSuffix", gripImgSuffix, false); }