/** * If this property is true, a click on the Splitbar will collapse its {@link * com.smartgwt.client.widgets.Splitbar#getTarget target}, hiding it and shifting the Splitbar and other members of the * layout across to fill the newly available space. If the target is already hidden a click will expand it again (showing * it at it's normal size). * * * @return Boolean */ public Boolean getCanCollapse() { return getAttributeAsBoolean("canCollapse"); }
/** * Default src to display when {@link com.smartgwt.client.widgets.ImgSplitbar#getVertical vertical} is false, and {@link * com.smartgwt.client.widgets.ImgSplitbar#getSrc src} is unset. * * * @return String * @see com.smartgwt.client.widgets.ImgSplitbar#getSrc */ public String getHSrc() { return getAttributeAsString("hSrc"); }
/** * Default src to display when {@link com.smartgwt.client.widgets.ImgSplitbar#getVertical vertical} is true, and {@link * com.smartgwt.client.widgets.ImgSplitbar#getSrc src} is unset. * * @param vSrc vSrc Default value is [SKIN]vgrip.png * @throws IllegalStateException this property cannot be changed after the component has been created * @see com.smartgwt.client.widgets.ImgSplitbar#setSrc */ public void setVSrc(String vSrc) throws IllegalStateException { setAttribute("vSrc", vSrc, false); }
/** * Is this split bar vertically orientated?<br> When a <code>Splitbar</code> is created by a layout to be the resizeBar for * some member of the layout, the <code>vertical</code> property will be set to <code>true</code> if the layout is * horizontal, meaning this resizeBar will be taller than it is wide, and will allow horizontal resizing of the member. * * <b>Note :</b> This method should be called only after the widget has been rendered. * * @return Boolean * @throws IllegalStateException if widget has not yet been rendered. */ public Boolean getVertical() throws IllegalStateException { errorIfNotCreated("vertical"); return getAttributeAsBoolean("vertical"); }
public static ImgSplitbar getOrCreateRef(JavaScriptObject jsObj) { if(jsObj == null) return null; BaseWidget obj = BaseWidget.getRef(jsObj); if(obj != null) { return (ImgSplitbar) obj; } else { return new ImgSplitbar(jsObj); } }
/** * If this property is true, a click on the Splitbar will collapse its {@link * com.smartgwt.client.widgets.Splitbar#getTarget target}, hiding it and shifting the Splitbar and other members of the * layout across to fill the newly available space. If the target is already hidden a click will expand it again (showing * it at it's normal size). * * @param canCollapse canCollapse Default value is true */ public void setCanCollapse(Boolean canCollapse) { setAttribute("canCollapse", canCollapse, true); }
/** * Default src to display when {@link com.smartgwt.client.widgets.ImgSplitbar#getVertical vertical} is true, and {@link * com.smartgwt.client.widgets.ImgSplitbar#getSrc src} is unset. * * * @return String * @see com.smartgwt.client.widgets.ImgSplitbar#getSrc */ public String getVSrc() { return getAttributeAsString("vSrc"); }
/** * <code>canDrag</code> set to true to allow dragging of the split bar. Dragging the Splitbar will resize it's {@link * com.smartgwt.client.widgets.Splitbar#getTarget target} * * * @return Boolean */ public Boolean getCanDrag() { return getAttributeAsBoolean("canDrag"); }
/** * <code>canDrag</code> set to true to allow dragging of the split bar. Dragging the Splitbar will resize it's {@link * com.smartgwt.client.widgets.Splitbar#getTarget target} * * @param canDrag canDrag Default value is true */ public void setCanDrag(Boolean canDrag) { setAttribute("canDrag", canDrag, true); }
/** * Default directory for skin images (those defined by the class), relative to the Page-wide {@link * com.smartgwt.client.util.Page#getSkinDir skinDir}. * * * @return String * @see com.smartgwt.client.docs.Images Images overview and related methods */ public String getSkinImgDir() { return getAttributeAsString("skinImgDir"); }
/** * Default src to display when {@link com.smartgwt.client.widgets.ImgSplitbar#getVertical vertical} is false, and {@link * com.smartgwt.client.widgets.ImgSplitbar#getSrc src} is unset. * * @param hSrc hSrc Default value is [SKIN]hgrip.png * @throws IllegalStateException this property cannot be changed after the component has been created * @see com.smartgwt.client.widgets.ImgSplitbar#setSrc */ public void setHSrc(String hSrc) throws IllegalStateException { setAttribute("hSrc", hSrc, false); }
/** * 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 */ public String getSrc() { return getAttributeAsString("src"); }
/** * Default directory for skin images (those defined by the class), relative to the Page-wide {@link * com.smartgwt.client.util.Page#getSkinDir skinDir}. * * @param skinImgDir skinImgDir Default value is "images/SplitBar/" * @throws IllegalStateException this property cannot be changed after the component has been created * @see com.smartgwt.client.docs.Images Images overview and related methods */ public void setSkinImgDir(String skinImgDir) throws IllegalStateException { setAttribute("skinImgDir", skinImgDir, false); }
/** * 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>. * * @param src src Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setSrc(String src) throws IllegalStateException { setAttribute("src", src, false); }