|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.smartgwt.client.widgets.BaseWidget
com.smartgwt.client.widgets.Canvas
com.smartgwt.client.widgets.StatefulCanvas
com.smartgwt.client.widgets.StretchImg
com.smartgwt.client.widgets.Progressbar
public class Progressbar
The Progressbar widget class extends the StretchImg class to implement image-based progress bars (graphical bars whose lengths represent percentages, typically of task completion).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.widgets.BaseWidget |
|---|
config, configOnly, id, isElementSet, scClassName |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
Progressbar()
|
|
Progressbar(JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
HandlerRegistration |
addPercentChangedHandler(PercentChangedHandler handler)
Add a percentChanged handler. |
protected JavaScriptObject |
create()
|
int |
getBreadth()
Thickness of the progressbar in pixels. |
int |
getLength()
Length of the progressbar in pixels. |
static Progressbar |
getOrCreateRef(JavaScriptObject jsObj)
|
int |
getPercentDone()
Number from 0 to 100, inclusive, for the percentage to be displayed graphically in this progressbar. |
String |
getSrc()
The base file name for the progressbar image. |
Boolean |
getVertical()
Indicates whether this is a vertical or horizontal progressbar. |
void |
setBreadth(int breadth)
Thickness of the progressbar in pixels. |
static void |
setDefaultProperties(Progressbar progressbarProperties)
Class level method to set the default properties of this class. |
void |
setLength(int length)
Length of the progressbar in pixels. |
void |
setPercentDone(int percentDone)
Number from 0 to 100, inclusive, for the percentage to be displayed graphically in this progressbar. |
void |
setSrc(String src)
The base file name for the progressbar image. |
void |
setVertical(Boolean vertical)
Indicates whether this is a vertical or horizontal progressbar. |
| Methods inherited from class com.smartgwt.client.widgets.StretchImg |
|---|
getCapSize, getGripImgSuffix, getHSrc, getImageType, getItemBaseStyle, getShowDownGrip, getShowGrip, getShowRollOverGrip, getShowTitle, getVSrc, setCapSize, setDefaultProperties, setGripImgSuffix, setHSrc, setImageType, setItemBaseStyle, setShowDownGrip, setShowGrip, setShowRollOverGrip, setShowTitle, setState, setState, setVSrc |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setPixelSize, setSize, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public Progressbar()
public Progressbar(JavaScriptObject jsObj)
| Method Detail |
|---|
public static Progressbar getOrCreateRef(JavaScriptObject jsObj)
protected JavaScriptObject create()
create in class StretchImg
public void setBreadth(int breadth)
throws IllegalStateException
This property must be set instead of setting width or height.
Sets the breadth of the progressbar to newLength. This is the height of a horizontal progressbar, or the width of a vertical progressbar.
breadth - the new breadth of the progressbar. Default value is 20
IllegalStateException - this property cannot be changed after the component has been createdAppearance overview and related methodspublic int getBreadth()
This property must be set instead of setting width or height.
Appearance overview and related methods
public void setLength(int length)
throws IllegalStateException
This property must be set instead of setting width or height.
Sets the length of the progressbar to newLength. This is the width of a horizontal progressbar, or the height of a vertical progressbar.
length - the new length of the progressbar. Default value is 100
IllegalStateException - this property cannot be changed after the component has been createdAppearance overview and related methodspublic int getLength()
This property must be set instead of setting width or height.
Appearance overview and related methodspublic void setPercentDone(int percentDone)
percentDone - percent to show as done (0-100). Default value is 0Appearance overview and related methodspublic int getPercentDone()
Appearance overview and related methodspublic void setSrc(String src)
setSrc in class StretchImgsrc - src Default value is "[SKIN]progressbar.gif"Appearance overview and related methodspublic String getSrc()
getSrc in class StretchImgAppearance overview and related methodspublic void setVertical(Boolean vertical)
setVertical in class StretchImgvertical - vertical Default value is falseAppearance overview and related methodspublic Boolean getVertical()
getVertical in class StretchImgAppearance overview and related methodspublic HandlerRegistration addPercentChangedHandler(PercentChangedHandler handler)
This method is called when the percentDone value changes. Observe this method to be notified upon a change to the percentDone value.
addPercentChangedHandler in interface HasPercentChangedHandlershandler - the percentChanged handler
HandlerRegistration used to remove this handlerpublic static void setDefaultProperties(Progressbar progressbarProperties)
progressbarProperties - properties that should be used as new defaults when instances of this class are created
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||