| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Creates and provides access to previously created progress indicators.
Each progress indicator is represented by the IdeProgress instance.
At the moment of creation, a progress indicator gets an ID specified by the programmer.
This ID can be used later for obtaining a specific progress indicator by getProgress method.
This interface provides two methods for creating and starting a progress indicator. The difference
is that it is possible to specify a delay before showing a progress indicator after it has been started.
If a process is finished before this amount of time, then progress indicator will not be shown at all.
| Method Summary | |
IdeProgress | getProgress(Object transaction)Returns IdeProgress for the specified ID. |
java.awt.Component | getUIComponent()Returns AWT component that represents this progress indicator. |
IdeProgress | start(Object transaction, boolean cancelable, int total, String messageFormat)Creates and starts a progress indicator. |
IdeProgress | start(Object transaction, boolean cancelable, int total, String messageFormat, int delay)Creates and starts a delayed progress indicator. |
| Method Detail |
public IdeProgress getProgress(Object transaction)
IdeProgress for the specified ID.Object identifierpublic java.awt.Component getUIComponent()
public IdeProgress start(Object transaction, boolean cancelable, int total, String messageFormat)
Object ID for a new progress indicatorboolean flag. If true then the Cancel button will be shown at the bottom of
int number of steps in a processString in the java.text.MessageFormat's format to be displayed
Objects supplied for it is:For example,
[0] = Integer. Contains the current step of a process. Can be set via
IdeProgress.setCount method.
[1] = Integer. Contains the total number of steps in a process.
[2] = String. Contains a description of the current step. Can be set via
IdeProgress.setStep method.
[3] = Double. Contains the current_step/total_of_steps value. Very useful for displaing as a percentage
of completion.
IdeProgress progress = progressIndicator.start("myID", true, 300, "Current step: {0, number, integer}. Total steps: {1, number, integer}. Name of the current step: {2}. {3, number, percent} completed");
"myID", with the 300 steps, with
If messageFormat string is null, then you
will have to explicitly specify the current progress message via IdeProgress.setStep
method. Note that you won't be able to use MessageFormat's format.
IdeProgresspublic IdeProgress start(Object transaction, boolean cancelable, int total, String messageFormat, int delay)
Object ID for a new progress indicatortrue then the Cancel button will be shown at the bottom of the
java.text.MessageFormat's format for displaing
Objects supplied for it is:For example,
[0] = Integer. Contains the current step of a process. Can be set via
IdeProgress.setCount method.
[1] = Integer. Contains the total of steps in a process.
[2] = String. Contains a description of the current step. Can be set via
IdeProgress.setStep method.
[3] = Double. Contains the current_step/total_of_steps value. Very useful for displaing as a percentage
of completion.
IdeProgress progress = progressIndicator.start("myID", true, 300, "Current step: {0, number, integer}. Total steps: {1, number, integer}. Name of the current step: {2}. {3, number, percent} completed", 1000);
"myID", with the 300 steps, with
If messageFormat string is null, then you will have to explicitly specify
the current progress message via IdeProgress.setStep method. Note that you won't be able
to use MessageFormat's format.
IdeProgress
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||