/** * If true, the thumb's appearance changes when it's clicked on. * * * @return Boolean */ public Boolean getAllowThumbDownState() { return getAttributeAsBoolean("allowThumbDownState"); }
/** * The size of the square buttons (arrows) at the ends of this scrollbar. This overrides the width of a vertical scrollbar * or the height of a horizontal scrollbar to set the scrollbar's thickness. * * * @return int */ public int getBtnSize() { return getAttributeAsInt("btnSize"); }
/** * Where are the skin images for the Scrollbar. This is local to the {@link com.smartgwt.client.util.Page#getSkinDir * overall skin directory}. * * * @return String * @see com.smartgwt.client.docs.Images Images overview and related methods */ public String getSkinImgDir() { return getAttributeAsString("skinImgDir"); }
/** * The minimum pixel height of the track end segments (if enabled with showTrackEnds). * <p><b>Note : </b> This is an advanced setting</p> * * @param trackEndHeight trackEndHeight Default value is 12 * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setTrackEndHeight(int trackEndHeight) throws IllegalStateException { setAttribute("trackEndHeight", trackEndHeight, false); }
public static Scrollbar getOrCreateRef(JavaScriptObject jsObj) { if(jsObj == null) return null; BaseWidget obj = BaseWidget.getRef(jsObj); if(obj != null) { return (Scrollbar) obj; } else { return new Scrollbar(jsObj); } }
/** * If true, the thumb's appearance changes when it's clicked on. * <p><b>Note : </b> This is an advanced setting</p> * * @param allowThumbDownState allowThumbDownState Default value is false * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setAllowThumbDownState(Boolean allowThumbDownState) throws IllegalStateException { setAttribute("allowThumbDownState", allowThumbDownState, false); }
/** * Where are the skin images for the Scrollbar. This is local to the {@link com.smartgwt.client.util.Page#getSkinDir * overall skin directory}. * <p><b>Note : </b> This is an advanced setting</p> * * @param skinImgDir skinImgDir Default value is "images/Scrollbar/" * @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); }
/** * Number of pixels the thumb is allowed to overlap the buttons at the start of the track. Default prevents doubling of 1px * borders. Set higher to allow media that shows curved joins between the track button and ScrollThumb. * * * @return Integer */ public Integer getStartThumbOverlap() { return getAttributeAsInt("startThumbOverlap"); }
/** * If true, the thumb's appearance changes when the user rolls over it. * * * @return Boolean */ public Boolean getAllowThumbOverState() { return getAttributeAsBoolean("allowThumbOverState"); }
/** * URL for the corner image, a singular image that appears in the corner when both h and v scrollbars are showing. * * * @return String * @see com.smartgwt.client.docs.Images Images overview and related methods */ public String getCornerSrc() { return getAttributeAsString("cornerSrc"); }
/** * Number of pixels the thumb is allowed to overlap the buttons at the start of the track. Default prevents doubling of 1px * borders. Set higher to allow media that shows curved joins between the track button and ScrollThumb. * <p><b>Note : </b> This is an advanced setting</p> * * @param startThumbOverlap startThumbOverlap Default value is null * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setStartThumbOverlap(Integer startThumbOverlap) throws IllegalStateException { setAttribute("startThumbOverlap", startThumbOverlap, false); }
/** * The minimum pixel width of the track end segments (if enabled with showTrackEnds). * * * @return int */ public int getTrackEndWidth() { return getAttributeAsInt("trackEndWidth"); }
/** * If true, this scrollbar will automatically enable when the scrollTarget is scrollable (i.e., when the contents of the * scrollTarget exceed its clip size in the direction relevant to this scrollbar), and automatically disable when the * scrollTarget is not scrollable. Set this property to false for full manual control over a scrollbar's enabled state. * * * @return Boolean */ public Boolean getAutoEnable() { return getAttributeAsBoolean("autoEnable"); }
/** * Base URL for the images used for the vertical scrollbar track and end buttons. See {@link * com.smartgwt.client.widgets.Scrollbar#getHSrc hSrc} for usage. * * * @return String * @see com.smartgwt.client.docs.Images Images overview and related methods */ public String getVSrc() { return getAttributeAsString("vSrc"); }
/** * The minimum pixel width of the track end segments (if enabled with showTrackEnds). * <p><b>Note : </b> This is an advanced setting</p> * * @param trackEndWidth trackEndWidth Default value is 12 * @throws IllegalStateException this property cannot be changed after the component has been created */ public void setTrackEndWidth(int trackEndWidth) throws IllegalStateException { setAttribute("trackEndWidth", trackEndWidth, false); }
/** * Number of pixels the thumb is allowed to overlap the buttons at each end of the track. Default prevents doubling of 1px * borders. Set higher to allow media that shows curved joins between the track button and ScrollThumb. * * * @return int */ public int getThumbOverlap() { return getAttributeAsInt("thumbOverlap"); }
/** * If true, displays a corner piece at the bottom end of a vertical scrollbar, or the right end of a horizontal scrollbar. * This is typically set only when both horizontal and vertical scrollbars are displayed and about the same corner. * * * @return Boolean */ public Boolean getShowCorner() { return getAttributeAsBoolean("showCorner"); }
/** * Base URL for the images used for the horizontal scrollbar track and end buttons. <P> See {@link * com.smartgwt.client.widgets.StretchImg#getItems items} for a general explanation of how this base URL is transformed * into various pieces and states. <P> For a normal 3-segment track, the suffixes "_start", "_track" and "_end" are added * to this URL. The "start" and "end" images should appear to be buttons (the user can click on these segments to scroll * slowly). The "track" segment provides a background for the space in which the thumb can be dragged, and can also be * clicked on to scroll quickly. <P> For a 5-segment track ({@link com.smartgwt.client.widgets.Scrollbar#getShowTrackEnds * showTrackEnds}:true), the suffixes are "_start", "_track_start", "_track", "_track_end" and "_end". * * * @return String * @see com.smartgwt.client.docs.Images Images overview and related methods */ public String getHSrc() { return getAttributeAsString("hSrc"); }
/** * Base URL for the images used for the vertical scrollbar track and end buttons. See {@link * com.smartgwt.client.widgets.Scrollbar#getHSrc hSrc} for usage. * * @param vSrc vSrc Default value is "[SKIN]vscroll.gif" * @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 setVSrc(String vSrc) throws IllegalStateException { setAttribute("vSrc", vSrc, false); }
/** * Allows the size of the corner segment to be set independently of the {@link * com.smartgwt.client.widgets.Scrollbar#getBtnSize btnSize}. * * * @return Integer */ public Integer getCornerSize() { return getAttributeAsInt("cornerSize"); }