|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.ProgressBar
public class ProgressBar
An updateable progress bar component. The progress bar supports two different modes: manual and automatic.
In manual mode, you are responsible for showing, updating (via
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.
In automatic mode, you simply call 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
asymchronous operations in which you have no need for indicating intermediate
progress.
| 入れ子クラス 概要 |
|---|
| クラス com.google.gwt.user.client.ui.UIObject から継承された 入れ子クラス/インターフェース |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field 概要 |
|---|
| クラス com.google.gwt.user.client.ui.UIObject から継承されたフィールド(Fields) |
|---|
DEBUG_ID_PREFIX |
| コンストラクタ 概要 | |
|---|---|
ProgressBar()
Creates a new progress bar. |
|
| メソッド 概要 | |
|---|---|
ProgressBar |
auto()
Initiates an auto-updating progress bar using the current duration, increment, and interval. |
int |
getDuration()
Returns the duration. |
int |
getIncrement()
Returns the bar's increment value. |
int |
getInterval()
Returns the bar's interval value. |
double |
getValue()
Returns the current value. |
boolean |
isRunning()
Returns true if the progress bar is currently in a auto() operation. |
ProgressBar |
reset()
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 |
setIncrement(int increment)
The number of progress update segments to display within the progress bar (defaults to 10). |
void |
setInterval(int interval)
Sets the length of time in milliseconds between each progress update (defaults to 300 ms). |
ProgressBar |
updateProgress(double value,
java.lang.String text)
Updates the progress bar value, and optionally its text. |
void |
updateText(java.lang.String text)
Updates the progress bar text. |
| クラス com.extjs.gxt.ui.client.widget.Component から継承されたメソッド |
|---|
addListener, addStyleName, addWidgetListener, disable, disableEvents, disableTextSelection, el, enable, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, getBaseStyle, getBorders, getData, getData, getElement, getId, getItemId, getModel, getState, getToolTip, hide, hideToolTip, isEnabled, isRendered, isVisible, onBrowserEvent, onComponentEvent, recalculate, removeAllListeners, removeFromParent, removeListener, removeStyleName, removeWidgetListener, render, render, saveState, setBorders, setData, setData, setElement, setEnabled, setEnableState, setHeight, setId, setIntStyleAttribute, setItemId, setPixelSize, setSize, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, setWidth, show, toString |
| クラス com.google.gwt.user.client.ui.Widget から継承されたメソッド |
|---|
getParent, isAttached |
| クラス com.google.gwt.user.client.ui.UIObject から継承されたメソッド |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタ 詳細 |
|---|
public ProgressBar()
| メソッド 詳細 |
|---|
public ProgressBar auto()
public int getIncrement()
public double getValue()
public boolean isRunning()
auto() operation.
public ProgressBar reset()
public void setIncrement(int increment)
increment - the new increment
public ProgressBar updateProgress(double value,
java.lang.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(java.lang.String text)
text - The string to display in the progress text elementpublic void setInterval(int interval)
interval - the interval to setpublic int getInterval()
public void setDuration(int duration)
duration - the duration in millisecondspublic int getDuration()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||