/** * 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"); }
/** * 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 '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); }
/** * <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"); }
/** * Cursor to display if this Splitbar is to be used for horizontal resize of widgets. * * * @return Cursor */ public Cursor getHResizeCursor() { return EnumUtil.getEnum(Cursor.values(), getAttribute("hResizeCursor")); }
public static Splitbar getOrCreateRef(JavaScriptObject jsObj) { if(jsObj == null) return null; BaseWidget obj = BaseWidget.getRef(jsObj); if(obj != null) { return (Splitbar) obj; } else { return new Splitbar(jsObj); } }
/** * If {@link com.smartgwt.client.widgets.Splitbar#getShowGrip showGrip} is true, this property determines whether the grip * image displayed should show the <code>"Closed"</code> state when the {@link * com.smartgwt.client.widgets.Splitbar#getTarget target} is hidden. * * * @return Boolean */ public Boolean getShowClosedGrip() { return getAttributeAsBoolean("showClosedGrip"); }
/** * Splitbars' cursors are set at init time based on whether they are to be used for vertical or horizontal resize. To * customize the cursor for this class, modify {@link com.smartgwt.client.widgets.Splitbar#getVResizeCursor vResizeCursor} * or {@link com.smartgwt.client.widgets.Splitbar#getHResizeCursor hResizeCursor} rather than this property. * * * @return Cursor */ public Cursor getCursor() { return EnumUtil.getEnum(Cursor.values(), getAttribute("cursor")); }
/** * Should we show a "grip" image floating above the center of this widget? * <p><b>Note : </b> This is an advanced setting</p> * * @param showGrip showGrip Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setShowGrip(Boolean showGrip) throws IllegalStateException { setAttribute("showGrip", showGrip, false); }
/** * 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"); }
/** * 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"); }
/** * Cursor to display if this Splitbar is to be used for vertical resize of widgets. * * * @return Cursor */ public Cursor getVResizeCursor() { return EnumUtil.getEnum(Cursor.values(), getAttribute("vResizeCursor")); }
/** * 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); }
/** * 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"); }
/** * 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"); }
/** * <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); }
/** * 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"); }
/** * 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"); }
/** * 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); }
/** * Should we show a "grip" image floating above the center of this widget? * * * @return Boolean */ public Boolean getShowGrip() { return getAttributeAsBoolean("showGrip"); }