Interface WizardDescriptor.BackgroundInstantiatingIterator<Data>
- Type Parameters:
Data
- in practice this should beWizardDescriptor
- All Superinterfaces:
WizardDescriptor.AsynchronousInstantiatingIterator<Data>
,WizardDescriptor.InstantiatingIterator<Data>
,WizardDescriptor.Iterator<Data>
- Enclosing class:
WizardDescriptor
public static interface WizardDescriptor.BackgroundInstantiatingIterator<Data>
extends WizardDescriptor.AsynchronousInstantiatingIterator<Data>
Iterator for a wizard that will create new objects after the wizard has been closed.
Suitable for cases where the instantiation might be quite time consuming, has its own progress/cancellation UI,
or otherwise would be undesirable to run with the wizard dialog open.
- Since:
- org.openide.dialogs 7.22
-
Method Summary
Modifier and TypeMethodDescriptionCalled in a separate thread when the Finish button is clicked and the wizard is closed.Methods inherited from interface org.openide.WizardDescriptor.InstantiatingIterator
initialize, uninitialize
Methods inherited from interface org.openide.WizardDescriptor.Iterator
addChangeListener, current, hasNext, hasPrevious, name, nextPanel, previousPanel, removeChangeListener
-
Method Details
-
instantiate
Called in a separate thread when the Finish button is clicked and the wizard is closed.- Specified by:
instantiate
in interfaceWizardDescriptor.AsynchronousInstantiatingIterator<Data>
- Specified by:
instantiate
in interfaceWizardDescriptor.InstantiatingIterator<Data>
- Returns:
- a set of objects created (the exact type is at the discretion of the caller)
- Throws:
IOException
- when instantiate fails
-