|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.spi.wizard.DeferredWizardResult
public abstract class DeferredWizardResult
Object which can be returned from
WizardPage.WizardResultProducer.finish()
or WizardPanelProvider.finish()
. A DeferredWizardResult does
not immediately calculate its result; it is used for cases where some
time consuming work needs to be performed to compute the result (such as
creating files on disk), and a progress bar should be shown until the work
is completed.
ResultProgressHandle
Field Summary | |
---|---|
protected boolean |
useBusy
|
Constructor Summary | |
---|---|
DeferredWizardResult()
Creates a new instance of DeferredWizardResult which cannot be aborted. |
|
DeferredWizardResult(boolean canAbort)
Creates a new instance of DeferredWizardResult which may or may not be able to be aborted. |
Method Summary | |
---|---|
void |
abort()
Abort computation of the result. |
boolean |
canAbort()
If true, the background thread can be aborted. |
boolean |
isUseBusy()
|
void |
setUseBusy(boolean useBusy)
Indicate "busy" icon is to be used instead of a progress bar. |
abstract void |
start(java.util.Map settings,
ResultProgressHandle progress)
Begin computing the result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean useBusy
Constructor Detail |
---|
public DeferredWizardResult()
public DeferredWizardResult(boolean canAbort)
Method Detail |
---|
public abstract void start(java.util.Map settings, ResultProgressHandle progress)
settings
- The settings gathered over the course of the wizardprogress
- A handle which can be used to affect the progress bar.public boolean canAbort()
public void abort()
start() has been called, and before
finished()
has been called on the ResultProgressHandler
that is passed to start()
, for example, if the user clicks
the close button on the dialog showing the wizard while the result is
being computed.
public boolean isUseBusy()
public void setUseBusy(boolean useBusy)
useBusy
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |