public final class ProgressTrackerControl2 extends java.lang.Object implements ProgressTracker, java.awt.event.ActionListener
ProgressTracker interface. It uses new
Progress API.| Constructor and Description |
|---|
ProgressTrackerControl2() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addTask(ProgressTrackedTask task)
Adds a
ProgressTrackedTask to the set of tasks whose progress
is displayed in the IDE's status bar. |
void |
addTask(ProgressTrackedTask task,
java.lang.String threadName)
Adds a
ProgressTrackedTask to the set of tasks whose progress
is displayed in the IDE's status bar. |
java.lang.Thread |
getThread(ProgressTrackedTask task)
Gets the
Thread used to run the given task. |
public void addTask(ProgressTrackedTask task)
ProgressTrackerProgressTrackedTask to the set of tasks whose progress
is displayed in the IDE's status bar. The ProgressTracker
will create a Thread for the task, start the thread, and
remove the task when the thread is completed.addTask in interface ProgressTrackerpublic void addTask(ProgressTrackedTask task, java.lang.String threadName)
ProgressTrackerProgressTrackedTask to the set of tasks whose progress
is displayed in the IDE's status bar. The ProgressTracker
will create a Thread with the give name for the task, start the
thread, and remove the task when the thread is completed.addTask in interface ProgressTrackerpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic java.lang.Thread getThread(ProgressTrackedTask task)
ProgressTrackerThread used to run the given task.getThread in interface ProgressTracker