public class AutoProgressBarCell extends ProgressBarCell
ProgressBarCell.ProgressBarAppearance, ProgressBarCell.ProgressBarAppearanceOptions
Modifier and Type | Field and Description |
---|---|
protected int |
duration |
protected int |
i |
protected int |
interval |
protected boolean |
running |
protected Timer |
timer |
appearance, increment, progressText
height, width
cellGestureAdapters, disableEvents, handlerManager
Constructor and Description |
---|
AutoProgressBarCell() |
AutoProgressBarCell(ProgressBarCell.ProgressBarAppearance appearance) |
Modifier and Type | Method and Description |
---|---|
void |
auto(Context context,
XElement parent)
Initiates an auto-updating progress bar using the current duration,
increment, and interval.
|
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(Context, com.sencha.gxt.core.client.dom.XElement) operation. |
void |
reset(Context context,
XElement parent)
Resets the progress bar value to 0 and text to empty string.
|
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).
|
getAppearance, getIncrement, getProgressText, render, setIncrement, setProgressText, updateProgress
getHeight, getWidth, redrawOnResize, setHeight, setSize, setSize, setWidth
addCellGestureAdapter, addHandler, createHandlerManager, fireCancellableEvent, fireCancellableEvent, fireEvent, fireEvent, getCellGestureAdapter, getCellGestureAdapterCount, isDisableEvents, onBrowserEvent, onTouch, removeCellGestureAdapter, setConsumedEventsInternal, setDisableEvents
protected Timer timer
protected boolean running
protected int i
protected int duration
protected int interval
public AutoProgressBarCell()
public AutoProgressBarCell(ProgressBarCell.ProgressBarAppearance appearance)
public void auto(Context context, XElement parent)
context
- the cell contextparent
- the parent elementpublic int getDuration()
public int getInterval()
public boolean isRunning()
auto(Context, com.sencha.gxt.core.client.dom.XElement)
operation.public void reset(Context context, XElement parent)
ProgressBarCell
reset
in class ProgressBarCell
context
- the cell contextparent
- the parent elementpublic void setDuration(int duration)
duration
- the duration in millisecondspublic void setInterval(int interval)
interval
- the interval to setCopyright © 2018. All rights reserved.