public final class AggregateProgressFactory extends BasicAggregateProgressFactory
ProgressHandleFactory
Modifier and Type | Method and Description |
---|---|
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)
|
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 AggregateProgressHandle |
createSystemHandle(String displayName,
ProgressContributor[] contributors,
Cancellable allowToCancel,
Action linkOutput)
|
createHandle, createProgressContributor, doCreateHandle, getProgressHandle
@Deprecated 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 UIProgressHandle
, initialized but not started.@Deprecated 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 UIProgressHandle
, 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.