WizardDescriptor.Iterator<Data>public static class WizardDescriptor.ArrayIterator<Data> extends java.lang.Object implements WizardDescriptor.Iterator<Data>
Panels.| Constructor | Description |
|---|---|
ArrayIterator() |
|
ArrayIterator(java.util.List<WizardDescriptor.Panel<Data>> panels) |
Construct an iterator.
|
ArrayIterator(WizardDescriptor.Panel<Data>[] array) |
Construct an iterator.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l) |
Add a listener to changes of the current panel.
|
WizardDescriptor.Panel<Data> |
current() |
Get the current panel.
|
boolean |
hasNext() |
Test whether there is a next panel.
|
boolean |
hasPrevious() |
Test whether there is a previous panel.
|
protected WizardDescriptor.Panel<Data>[] |
initializePanels() |
Allows subclasses to initialize their arrays of panels when
constructed using default constructor.
|
java.lang.String |
name() |
Get the name of the current panel.
|
void |
nextPanel() |
Move to the next panel.
|
void |
previousPanel() |
Move to the previous panel.
|
void |
removeChangeListener(javax.swing.event.ChangeListener l) |
Remove a listener to changes of the current panel.
|
protected void |
reset() |
Resets this iterator to initial state.
|
public ArrayIterator()
public ArrayIterator(WizardDescriptor.Panel<Data>[] array)
array - the list of panels to usepublic ArrayIterator(java.util.List<WizardDescriptor.Panel<Data>> panels)
panels - the list of panels to useprotected WizardDescriptor.Panel<Data>[] initializePanels()
public WizardDescriptor.Panel<Data> current()
WizardDescriptor.Iteratorcurrent in interface WizardDescriptor.Iterator<Data>public java.lang.String name()
WizardDescriptor.Iteratorname in interface WizardDescriptor.Iterator<Data>public boolean hasNext()
WizardDescriptor.IteratorhasNext in interface WizardDescriptor.Iterator<Data>true if sopublic boolean hasPrevious()
WizardDescriptor.IteratorhasPrevious in interface WizardDescriptor.Iterator<Data>true if sopublic void nextPanel()
WizardDescriptor.IteratornextPanel in interface WizardDescriptor.Iterator<Data>public void previousPanel()
WizardDescriptor.IteratorpreviousPanel in interface WizardDescriptor.Iterator<Data>public void addChangeListener(javax.swing.event.ChangeListener l)
WizardDescriptor.IteratoraddChangeListener in interface WizardDescriptor.Iterator<Data>l - the listener to addpublic void removeChangeListener(javax.swing.event.ChangeListener l)
WizardDescriptor.IteratorremoveChangeListener in interface WizardDescriptor.Iterator<Data>l - the listener to removeprotected void reset()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.