public class ProgressBar extends CellComponent<Double>
updateProgress(double, java.lang.String)) and clearing the progress bar as needed from your
own code. This method is most appropriate when you want to show progress
throughout an operation that has predictable points of interest at which you
can update the control.UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledEditor.Ignore, Editor.PathDEBUG_ID_PREFIX| Constructor and Description |
|---|
ProgressBar() |
ProgressBar(ProgressBarCell cell)
Creates a new progress bar.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIncrement()
Returns the bar's increment value.
|
void |
reset()
Resets the progress bar value to 0 and text to empty string.
|
void |
setIncrement(int increment)
The number of progress update segments to display within the progress bar
(defaults to 10).
|
void |
updateProgress(double value,
String text)
Updates the progress bar value, and optionally its text.
|
void |
updateText(String text)
Updates the progress bar text.
|
addValueChangeHandler, getCell, getKeyProvider, getValue, onBrowserEvent, redraw, setValue, setValue, setValueaddBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getElement, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getStateId, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, removeHandler, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmaskaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEventsequals, getClass, hashCode, notify, notifyAll, wait, wait, waitfireEventpublic ProgressBar()
public ProgressBar(ProgressBarCell cell)
public int getIncrement()
public void reset()
public void setIncrement(int increment)
increment - the new incrementpublic void updateProgress(double value,
String text)
reset() to
clear and/or hide the control.value - A value between 0 and 1 (e.g., .5, defaults to 0)text - The string to display in the progress text element or null.public void updateText(String text)
text - the text to displayCopyright © 2012. All Rights Reserved.