ti.chimera.service
Interface Prompt.Progress

Enclosing interface:
Prompt

public static interface Prompt.Progress

An object implementing this interface is returned by Prompt.showProgress(java.lang.String) in order to allow the client code to programatically update or dismiss the progress.


Method Summary
 void dispose()
          Indicate that the progress has completed, and the progress dialog or message should no longer be displayed.
 int getValue()
          Get the current progress value.
 void setRange(int min, int max)
          Update the range of this display.
 void setValue(int val)
          Update the progress.
 

Method Detail

setRange

public void setRange(int min,
                     int max)
Update the range of this display. The value (see setValue(int)) must be between min and max inclusive.

Parameters:
min - the min
max - the max

setValue

public void setValue(int val)
Update the progress. The val should be between the min and max (inclusive) specified in setRange(int, int). It is an error to call this if setRange(int, int) has not been called.

Parameters:
val - the new value

getValue

public int getValue()
Get the current progress value.

Returns:
the current value

dispose

public void dispose()
Indicate that the progress has completed, and the progress dialog or message should no longer be displayed.