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 WizardDescriptor.InstantiatingIterator
initialize, uninitializeMethods inherited from interface 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:
instantiatein interfaceWizardDescriptor.AsynchronousInstantiatingIterator<Data>- Specified by:
instantiatein interfaceWizardDescriptor.InstantiatingIterator<Data>- Returns:
- a set of objects created (the exact type is at the discretion of the caller)
- Throws:
IOException- when instantiate fails
-