
public class ProgressBarCell extends ResizeCell<Double>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProgressBarCell.ProgressBarAppearance |
static class |
ProgressBarCell.ProgressBarAppearanceOptions |
height, width| Constructor and Description |
|---|
ProgressBarCell() |
ProgressBarCell(ProgressBarCell.ProgressBarAppearance appearance) |
| Modifier and Type | Method and Description |
|---|---|
ProgressBarCell.ProgressBarAppearance |
getAppearance()
Returns the progress bar appearance.
|
int |
getIncrement()
Returns the bar's increment value.
|
String |
getProgressText()
Returns the progress text.
|
void |
render(Context context,
Double value,
SafeHtmlBuilder sb) |
void |
reset(Context context,
XElement parent)
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 |
setProgressText(String text)
Sets the progress text to be displayed in the progress bar.
|
void |
updateProgress(Context context,
XElement parent,
double value,
String text)
Updates the progress bar value, and optionally its text.
|
getHeight, getWidth, redrawOnResize, setHeight, setSize, setSize, setWidthaddCellGestureAdapter, addHandler, createHandlerManager, fireCancellableEvent, fireCancellableEvent, fireEvent, fireEvent, getCellGestureAdapter, getCellGestureAdapterCount, isDisableEvents, onBrowserEvent, onTouch, removeCellGestureAdapter, setDisableEventspublic ProgressBarCell()
public ProgressBarCell(ProgressBarCell.ProgressBarAppearance appearance)
public ProgressBarCell.ProgressBarAppearance getAppearance()
public int getIncrement()
public String getProgressText()
public void render(Context context,
Double value,
SafeHtmlBuilder sb)
public void reset(Context context,
XElement parent)
context - the cell contextparent - the parent elementpublic void setIncrement(int increment)
increment - the new incrementpublic void setProgressText(String text)
text - the progress textpublic void updateProgress(Context context,
XElement parent,
double value,
String text)
reset(Context, com.sencha.gxt.core.client.dom.XElement) to
clear and/or hide the control.context - the cell contextparent - the parent elementvalue - a value between 0 and 1 (e.g., .5, defaults to 0)text - the string to display in the progress text element or nullCopyright © 2018. All rights reserved.