public final class ProgressHandleFactory
extends java.lang.Object
ProgressHandle.| Modifier and Type | Method | Description |
|---|---|---|
static javax.swing.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(java.lang.String displayName) |
Deprecated.
Use
ProgressHandle.createHandle(java.lang.String) |
static org.netbeans.api.progress.ProgressHandle |
createHandle(java.lang.String displayName,
javax.swing.Action linkOutput) |
Create a progress ui handle for a long lasting task.
|
static org.netbeans.api.progress.ProgressHandle |
createHandle(java.lang.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(java.lang.String displayName,
org.openide.util.Cancellable allowToCancel,
javax.swing.Action linkOutput) |
Create a progress ui handle for a long lasting task.
|
static javax.swing.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 javax.swing.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(java.lang.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(java.lang.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(java.lang.String displayName,
org.openide.util.Cancellable allowToCancel,
javax.swing.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(java.lang.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(java.lang.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(java.lang.String displayName,
javax.swing.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(java.lang.String displayName,
org.openide.util.Cancellable allowToCancel,
javax.swing.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 javax.swing.JComponent createProgressComponent(org.netbeans.api.progress.ProgressHandle handle)
public static javax.swing.JLabel createMainLabelComponent(org.netbeans.api.progress.ProgressHandle handle)
ProgressHandle.setDisplayName() methodpublic static javax.swing.JLabel createDetailLabelComponent(org.netbeans.api.progress.ProgressHandle handle)
ProgressHandle.progress(String) method.public static org.netbeans.api.progress.ProgressHandle createSystemHandle(java.lang.String displayName)
displayName - to be shown in the progress UIProgressHandle, initialized but not started.public static org.netbeans.api.progress.ProgressHandle createSystemHandle(java.lang.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(java.lang.String displayName,
org.openide.util.Cancellable allowToCancel,
javax.swing.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.