|
org.netbeans.api.progress/1 1.9.0 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.progress.aggregate.AggregateProgressFactory
public final class 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 JLabel |
createDetailLabelComponent(AggregateProgressHandle handle)
Get the detail messages component for use in custom dialogs, the task won't show in the progress bar anymore.The text of the label is changed by calls to contributors' progress(String) methods. |
static AggregateProgressHandle |
createHandle(String displayName,
ProgressContributor[] contributors,
Cancellable allowToCancel,
Action linkOutput)
Create an aggregating progress ui handle for a long lasting task. |
static JLabel |
createMainLabelComponent(AggregateProgressHandle handle)
Get the task title component for use in custom dialogs, the task won't show in the progress bar anymore. |
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)
public static JLabel createMainLabelComponent(AggregateProgressHandle handle)
setDisplayName()
method.
public static JLabel createDetailLabelComponent(AggregateProgressHandle handle)
progress(String)
methods.
|
org.netbeans.api.progress/1 1.9.0 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |