Interface WizardDescriptor.Iterator<Data>
- All Known Subinterfaces:
WizardDescriptor.AsynchronousInstantiatingIterator<Data>, WizardDescriptor.BackgroundInstantiatingIterator<Data>, WizardDescriptor.InstantiatingIterator<Data>, WizardDescriptor.ProgressInstantiatingIterator<Data>
- All Known Implementing Classes:
WizardDescriptor.ArrayIterator
- Enclosing class:
WizardDescriptor
public static interface WizardDescriptor.Iterator<Data>
Iterator on the sequence of panels.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a listener to changes of the current panel.current()Get the current panel.booleanhasNext()Test whether there is a next panel.booleanTest whether there is a previous panel.name()Get the name of the current panel.voidMove to the next panel.voidMove to the previous panel.voidRemove a listener to changes of the current panel.
-
Method Details
-
current
-
name
-
hasNext
boolean hasNext()Test whether there is a next panel.- Returns:
trueif so
-
hasPrevious
boolean hasPrevious()Test whether there is a previous panel.- Returns:
trueif so
-
nextPanel
void nextPanel()Move to the next panel. I.e. increment its index, need not actually change any GUI itself.- Throws:
NoSuchElementException- if the panel does not exist
-
previousPanel
void previousPanel()Move to the previous panel. I.e. decrement its index, need not actually change any GUI itself.- Throws:
NoSuchElementException- if the panel does not exist
-
addChangeListener
Add a listener to changes of the current panel. The listener is notified when the possibility to move forward/backward changes.- Parameters:
l- the listener to add
-
removeChangeListener
Remove a listener to changes of the current panel.- Parameters:
l- the listener to remove
-