|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.api.progress.aggregate.AggregateProgressFactory
Factory for creation of aggregate progress indication handles and individual contributor instances.
For a more simple version of progress indication, see ProgressHandleFactory
Method Summary | |
static AggregateProgressHandle |
createHandle(String displayName,
ProgressContributor[] contributors,
Cancellable allowToCancel,
Action linkOutput)
Create an aggregating progress ui handle for a long lasting task. |
static JComponent |
createProgressComponent(AggregateProgressHandle handle)
Get the progress bar component for use in custom dialogs, the task won't show in the progress bar anymore. |
static ProgressContributor |
createProgressContributor(String trackingId)
|
static AggregateProgressHandle |
createSystemHandle(String displayName,
ProgressContributor[] contributors,
Cancellable allowToCancel,
Action linkOutput)
Create an aggregating progress ui handle for a long lasting task. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static AggregateProgressHandle createHandle(String displayName, ProgressContributor[] contributors, Cancellable allowToCancel, Action linkOutput)
contributors
- the initial set of progress indication contributors that are aggregated in the UI.allowToCancel
- either null, if the task cannot be cancelled or
an instance of Cancellable
that will be called when user
triggers cancel of the task.linkOutput
- an Action
instance that links the running task in the progress bar
to an output of the task. The action is assumed to open the apropriate component with the task's output.displayName
- to be shown in the progress UI
ProgressHandle
, initialized but not started.public static ProgressContributor createProgressContributor(String trackingId)
public static AggregateProgressHandle createSystemHandle(String displayName, ProgressContributor[] contributors, Cancellable allowToCancel, Action linkOutput)
contributors
- the initial set of progress indication contributors that are aggregated in the UI.allowToCancel
- either null, if the task cannot be cancelled or
an instance of Cancellable
that will be called when user
triggers cancel of the task.linkOutput
- an Action
instance that links the running task in the progress bar
to an output of the task. The action is assumed to open the apropriate component with the task's output.displayName
- to be shown in the progress UI
ProgressHandle
, initialized but not started.public static JComponent createProgressComponent(AggregateProgressHandle handle)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |