/** * Length of the progressbar in pixels. This is effectively height for a vertical progressbar, or width for a horizontal * progressbar. <P> This property must be set instead of setting <code>width</code> or <code>height</code>. * Sets the length of the progressbar to newLength. This is the width of a horizontal progressbar, or the height of a vertical progressbar. * * @param length the new length of the progressbar. Default value is 100 * @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 setLength(int length) throws IllegalStateException { setAttribute("length", length, false); }
/** * Number from 0 to 100, inclusive, for the percentage to be displayed graphically in this progressbar. * Sets percentDone to newPercent. * * @param percentDone percent to show as done (0-100). Default value is 0 * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setPercentDone(int percentDone) { setAttribute("percentDone", percentDone, true); }
/** * The base file name for the progressbar image. * * @param src src Default value is "[SKIN]progressbar.gif" * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setSrc(String src) { setAttribute("src", src, true); }
/** * Thickness of the progressbar in pixels. This is effectively width for a vertical progressbar, or height for a horizontal * progressbar. <P> This property must be set instead of setting <code>width</code> or <code>height</code>. * Sets the breadth of the progressbar to newLength. This is the height of a horizontal progressbar, or the width of a vertical progressbar. * * @param breadth the new breadth of the progressbar. Default value is 20 * @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 setBreadth(int breadth) throws IllegalStateException { setAttribute("breadth", breadth, false); }
/** * Indicates whether this is a vertical or horizontal progressbar. * * @param vertical vertical Default value is false * @see com.smartgwt.client.docs.Appearance Appearance overview and related methods */ public void setVertical(Boolean vertical) { setAttribute("vertical", vertical, true); }