站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

WizardDescriptor.ArrayIterator (Dialogs API) - NetBeans API Javadoc (Current Development Version)

org.openide.dialogs 7.4

org.openide
Class WizardDescriptor.ArrayIterator<Data>

java.lang.Object
  extended by org.openide.WizardDescriptor.ArrayIterator<Data>
All Implemented Interfaces:
WizardDescriptor.Iterator<Data>
Enclosing class:
WizardDescriptor

public static class WizardDescriptor.ArrayIterator<Data>
extends Object
implements WizardDescriptor.Iterator<Data>

Special iterator that works on an array of Panels.


Constructor Summary
WizardDescriptor.ArrayIterator()
           
WizardDescriptor.ArrayIterator(WizardDescriptor.Panel<Data>[] array)
          Construct an iterator.
 
Method Summary
 void addChangeListener(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.
 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(ChangeListener l)
          Remove a listener to changes of the current panel.
protected  void reset()
          Resets this iterator to initial state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WizardDescriptor.ArrayIterator

public WizardDescriptor.ArrayIterator()

WizardDescriptor.ArrayIterator

public WizardDescriptor.ArrayIterator(WizardDescriptor.Panel<Data>[] array)
Construct an iterator.

Parameters:
array - the list of panels to use
Method Detail

initializePanels

protected WizardDescriptor.Panel<Data>[] initializePanels()
Allows subclasses to initialize their arrays of panels when constructed using default constructor. (for example during deserialization. Default implementation returns empty array.


current

public WizardDescriptor.Panel<Data> current()
Description copied from interface: WizardDescriptor.Iterator
Get the current panel.

Specified by:
current in interface WizardDescriptor.Iterator<Data>
Returns:
the panel

name

public String name()
Description copied from interface: WizardDescriptor.Iterator
Get the name of the current panel.

Specified by:
name in interface WizardDescriptor.Iterator<Data>
Returns:
the name

hasNext

public boolean hasNext()
Description copied from interface: WizardDescriptor.Iterator
Test whether there is a next panel.

Specified by:
hasNext in interface WizardDescriptor.Iterator<Data>
Returns:
true if so

hasPrevious

public boolean hasPrevious()
Description copied from interface: WizardDescriptor.Iterator
Test whether there is a previous panel.

Specified by:
hasPrevious in interface WizardDescriptor.Iterator<Data>
Returns:
true if so

nextPanel

public void nextPanel()
Description copied from interface: WizardDescriptor.Iterator
Move to the next panel. I.e. increment its index, need not actually change any GUI itself.

Specified by:
nextPanel in interface WizardDescriptor.Iterator<Data>

previousPanel

public void previousPanel()
Description copied from interface: WizardDescriptor.Iterator
Move to the previous panel. I.e. decrement its index, need not actually change any GUI itself.

Specified by:
previousPanel in interface WizardDescriptor.Iterator<Data>

addChangeListener

public void addChangeListener(ChangeListener l)
Description copied from interface: WizardDescriptor.Iterator
Add a listener to changes of the current panel. The listener is notified when the possibility to move forward/backward changes.

Specified by:
addChangeListener in interface WizardDescriptor.Iterator<Data>
Parameters:
l - the listener to add

removeChangeListener

public void removeChangeListener(ChangeListener l)
Description copied from interface: WizardDescriptor.Iterator
Remove a listener to changes of the current panel.

Specified by:
removeChangeListener in interface WizardDescriptor.Iterator<Data>
Parameters:
l - the listener to remove

reset

protected void reset()
Resets this iterator to initial state. Called by subclasses when they need re-initialization of the iterator.


org.openide.dialogs 7.4

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.