public class AutoProgressBar extends ProgressBar
auto()
and let the progress bar run indefinitely, only
clearing it once the operation is complete. You can optionally have the
progress bar wait for a specific amount of time and then clear itself.
Automatic mode is most appropriate for timed operations or asynchronous
operations in which you have no need for indicating intermediate progress.UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
Editor.Ignore, Editor.Path
DEBUG_ID_PREFIX
Constructor and Description |
---|
AutoProgressBar()
Creates a new progress bar with the default automatic progress bar cell.
|
AutoProgressBar(AutoProgressBarCell cell)
Creates a new progress bar with the specified automatic progress bar cell.
|
Modifier and Type | Method and Description |
---|---|
void |
auto()
Initiates an auto-updating progress bar using the current duration,
increment, and interval.
|
AutoProgressBarCell |
getCell()
Get the
Cell wrapped by this widget. |
int |
getDuration()
Returns the duration.
|
int |
getInterval()
Returns the bar's interval value.
|
boolean |
isRunning()
Returns true if the progress bar is currently in a
auto() operation. |
void |
setDuration(int duration)
The length of time in milliseconds that the progress bar should run before
resetting itself (defaults to DEFAULT, in which case it will run
indefinitely until reset is called).
|
void |
setInterval(int interval)
Sets the length of time in milliseconds between each progress update
(defaults to 300 ms).
|
getIncrement, reset, setIncrement, updateProgress, updateText
addValueChangeHandler, getElement, getKeyProvider, getValue, onBrowserEvent, redraw, setValue, setValue, setValue
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disable, disableEvents, enable, enableEvents, fireEvent, focus, getData, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
fireEvent
public AutoProgressBar()
public AutoProgressBar(AutoProgressBarCell cell)
cell
- the automatic progress bar cellpublic void auto()
public AutoProgressBarCell getCell()
CellComponent
Cell
wrapped by this widget.getCell
in class ProgressBar
Cell
being wrappedpublic int getDuration()
public int getInterval()
public boolean isRunning()
auto()
operation.public void setDuration(int duration)
duration
- the duration in millisecondspublic void setInterval(int interval)
interval
- the interval to setCopyright © 2015. All rights reserved.