public final class AggregateProgressFactory
extends org.netbeans.api.progress.aggregate.BasicAggregateProgressFactory
ProgressHandleFactory
Modifier and Type | Method | Description |
---|---|---|
static JLabel |
createDetailLabelComponent(org.netbeans.api.progress.aggregate.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 org.netbeans.api.progress.aggregate.AggregateProgressHandle |
createHandle(String displayName,
org.netbeans.api.progress.aggregate.ProgressContributor[] contributors,
org.openide.util.Cancellable allowToCancel,
Action linkOutput) |
Create an aggregating progress ui handle for a long lasting task.
|
static JLabel |
createMainLabelComponent(org.netbeans.api.progress.aggregate.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(org.netbeans.api.progress.aggregate.AggregateProgressHandle handle) |
Get the progress bar component for use in custom dialogs, the task won't
show in the progress bar anymore.
|
static org.netbeans.api.progress.aggregate.AggregateProgressHandle |
createSystemHandle(String displayName,
org.netbeans.api.progress.aggregate.ProgressContributor[] contributors,
org.openide.util.Cancellable allowToCancel,
Action linkOutput) |
Create an aggregating progress ui handle for a long lasting task.
|
public static org.netbeans.api.progress.aggregate.AggregateProgressHandle createHandle(String displayName, org.netbeans.api.progress.aggregate.ProgressContributor[] contributors, org.openide.util.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 org.netbeans.api.progress.aggregate.AggregateProgressHandle createSystemHandle(String displayName, org.netbeans.api.progress.aggregate.ProgressContributor[] contributors, org.openide.util.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(org.netbeans.api.progress.aggregate.AggregateProgressHandle handle)
public static JLabel createMainLabelComponent(org.netbeans.api.progress.aggregate.AggregateProgressHandle handle)
setDisplayName()
method.public static JLabel createDetailLabelComponent(org.netbeans.api.progress.aggregate.AggregateProgressHandle handle)
progress(String)
methods.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.