public final class ProgressHandleFactory extends Object
ProgressHandle
.Modifier and Type | Method | Description |
---|---|---|
static JLabel |
createDetailLabelComponent(org.netbeans.api.progress.ProgressHandle handle) |
Get the detail messages component for use in custom dialogs, the task won't
show in the progress bar anymore.
|
static org.netbeans.api.progress.ProgressHandle |
createHandle(String displayName) |
Deprecated.
Use
ProgressHandle.createHandle(java.lang.String) |
static org.netbeans.api.progress.ProgressHandle |
createHandle(String displayName,
Action linkOutput) |
Create a progress ui handle for a long lasting task.
|
static org.netbeans.api.progress.ProgressHandle |
createHandle(String displayName,
org.openide.util.Cancellable allowToCancel) |
Deprecated.
Use
ProgressHandle.createHandle(java.lang.String, org.openide.util.Cancellable) . |
static org.netbeans.api.progress.ProgressHandle |
createHandle(String displayName,
org.openide.util.Cancellable allowToCancel,
Action linkOutput) |
Create a progress ui handle for a long lasting task.
|
static JLabel |
createMainLabelComponent(org.netbeans.api.progress.ProgressHandle 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.ProgressHandle 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.ProgressHandle |
createSystemHandle(String displayName) |
Create a handle for a long lasting task that is not triggered by explicit user action.
|
static org.netbeans.api.progress.ProgressHandle |
createSystemHandle(String displayName,
org.openide.util.Cancellable allowToCancel) |
Create a cancelable handle for a task that is not triggered by explicit user action.
|
static org.netbeans.api.progress.ProgressHandle |
createSystemHandle(String displayName,
org.openide.util.Cancellable allowToCancel,
Action linkOutput) |
Create a progress ui handle for a task that is not triggered by explicit user action.
|
public static org.netbeans.api.progress.ProgressHandle createHandle(String displayName)
ProgressHandle.createHandle(java.lang.String)
displayName
- to be shown in the progress UIProgressHandle
, initialized but not started.public static org.netbeans.api.progress.ProgressHandle createHandle(String displayName, org.openide.util.Cancellable allowToCancel)
ProgressHandle.createHandle(java.lang.String, org.openide.util.Cancellable)
.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.displayName
- to be shown in the progress UIProgressHandle
, initialized but not started.public static org.netbeans.api.progress.ProgressHandle createHandle(String displayName, Action linkOutput)
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.ProgressHandle createHandle(String displayName, org.openide.util.Cancellable allowToCancel, Action linkOutput)
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.ProgressHandle handle)
public static JLabel createMainLabelComponent(org.netbeans.api.progress.ProgressHandle handle)
ProgressHandle.setDisplayName()
methodpublic static JLabel createDetailLabelComponent(org.netbeans.api.progress.ProgressHandle handle)
ProgressHandle.progress(String)
method.public static org.netbeans.api.progress.ProgressHandle createSystemHandle(String displayName)
displayName
- to be shown in the progress UIProgressHandle
, initialized but not started.public static org.netbeans.api.progress.ProgressHandle createSystemHandle(String displayName, org.openide.util.Cancellable allowToCancel)
displayName
- to be shown in the progress UIallowToCancel
- either null, if the task cannot be cancelled or
an instance of Cancellable
that will be called when user
triggers cancel of the task.ProgressHandle
, initialized but not started.public static org.netbeans.api.progress.ProgressHandle createSystemHandle(String displayName, org.openide.util.Cancellable allowToCancel, Action linkOutput)
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.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.