public interface ProgressListener<_Source> extends BaseEventListener<_Source>
Modifier and Type | Method and Description |
---|---|
void |
addValue(long addValue)
New value to be added to the current value for a progress.
|
void |
init(java.lang.String text,
boolean enableCancel,
boolean isIndeterminate)
Usually called when a long running operation starts.
|
boolean |
isCanceled()
Return
true in case the user selected to cancel the running progress, false otherwise. |
void |
setMaxValue(long maxValue)
New maximum value for a progress.
|
void |
setText(java.lang.String text)
Server requests to update the UI text.
|
void |
setValue(long currentValue)
New current value for a progress.
|
void init(java.lang.String text, boolean enableCancel, boolean isIndeterminate)
text
- initial text for the progress dialogenableCancel
- true
if the operation supports cancel, false
otherwiseisIndeterminate
- true
if the operation is unable to give progress informationvoid setText(java.lang.String text)
text
- new text to showvoid setMaxValue(long maxValue)
maxValue
- new maximum value for a progressvoid setValue(long currentValue)
currentValue
- new current value for a progressvoid addValue(long addValue)
addValue
- value to be added to the current valueboolean isCanceled()
true
in case the user selected to cancel the running progress, false
otherwise.true
in case the user selected to cancel the running progress, false
otherwisewww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.