Package com.sencha.gxt.cell.core.client
Class AutoProgressBarCell
- java.lang.Object
-
- com.google.gwt.cell.client.AbstractCell<C>
-
- com.sencha.gxt.cell.core.client.AbstractEventCell<C>
-
- com.sencha.gxt.cell.core.client.ResizeCell<Double>
-
- com.sencha.gxt.cell.core.client.ProgressBarCell
-
- com.sencha.gxt.cell.core.client.AutoProgressBarCell
-
- All Implemented Interfaces:
com.google.gwt.cell.client.Cell<Double>
,com.google.gwt.event.shared.HasHandlers
,ResizableCell
public class AutoProgressBarCell extends ProgressBarCell
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sencha.gxt.cell.core.client.ProgressBarCell
ProgressBarCell.ProgressBarAppearance, ProgressBarCell.ProgressBarAppearanceOptions
-
-
Constructor Summary
Constructors Constructor Description AutoProgressBarCell()
AutoProgressBarCell(ProgressBarCell.ProgressBarAppearance appearance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
auto(com.google.gwt.cell.client.Cell.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 aauto(com.google.gwt.cell.client.Cell.Context, com.sencha.gxt.core.client.dom.XElement)
operation.void
reset(com.google.gwt.cell.client.Cell.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).-
Methods inherited from class com.sencha.gxt.cell.core.client.ProgressBarCell
getAppearance, getIncrement, getProgressText, render, setIncrement, setProgressText, updateProgress
-
Methods inherited from class com.sencha.gxt.cell.core.client.ResizeCell
getHeight, getWidth, redrawOnResize, setHeight, setSize, setSize, setWidth
-
Methods inherited from class com.sencha.gxt.cell.core.client.AbstractEventCell
addCellGestureAdapter, addHandler, fireEvent, getCellGestureAdapter, getCellGestureAdapterCount, isDisableEvents, onBrowserEvent, removeCellGestureAdapter, setDisableEvents
-
-
-
-
Constructor Detail
-
AutoProgressBarCell
public AutoProgressBarCell()
-
AutoProgressBarCell
public AutoProgressBarCell(ProgressBarCell.ProgressBarAppearance appearance)
-
-
Method Detail
-
auto
public void auto(com.google.gwt.cell.client.Cell.Context context, XElement parent)
Initiates an auto-updating progress bar using the current duration, increment, and interval.- Parameters:
context
- the cell contextparent
- the parent element
-
getDuration
public int getDuration()
Returns the duration.- Returns:
- the duration
-
getInterval
public int getInterval()
Returns the bar's interval value.- Returns:
- the interval in milliseconds
-
isRunning
public boolean isRunning()
Returns true if the progress bar is currently in aauto(com.google.gwt.cell.client.Cell.Context, com.sencha.gxt.core.client.dom.XElement)
operation.- Returns:
- true if waiting, else false
-
reset
public void reset(com.google.gwt.cell.client.Cell.Context context, XElement parent)
Description copied from class:ProgressBarCell
Resets the progress bar value to 0 and text to empty string.- Overrides:
reset
in classProgressBarCell
- Parameters:
context
- the cell contextparent
- the parent element
-
setDuration
public 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)- Parameters:
duration
- the duration in milliseconds
-
setInterval
public void setInterval(int interval)
Sets the length of time in milliseconds between each progress update (defaults to 300 ms).- Parameters:
interval
- the interval to set
-
-