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

WizardDescriptor.Iterator (NetBeans APIs) - NetBeans API Javadoc 4.1.0


org.openide
Interface WizardDescriptor.Iterator

All Known Subinterfaces:
WizardDescriptor.InstantiatingIterator
All Known Implementing Classes:
WizardDescriptor.ArrayIterator
Enclosing interface:
WizardDescriptor

public static interface WizardDescriptor.Iterator

Iterator on the sequence of panels.

See Also:
WizardDescriptor.Panel

Method Summary
 void addChangeListener(ChangeListener l)
          Add a listener to changes of the current panel.
 WizardDescriptor.Panel current()
          Get the current panel.
 boolean hasNext()
          Test whether there is a next panel.
 boolean hasPrevious()
          Test whether there is a previous panel.
 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.
 

Method Detail

current

public WizardDescriptor.Panel current()
Get the current panel.

Returns:
the panel

name

public String name()
Get the name of the current panel.

Returns:
the name

hasNext

public boolean hasNext()
Test whether there is a next panel.

Returns:
true if so

hasPrevious

public boolean hasPrevious()
Test whether there is a previous panel.

Returns:
true if so

nextPanel

public 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

public 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

public void addChangeListener(ChangeListener l)
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

public void removeChangeListener(ChangeListener l)
Remove a listener to changes of the current panel.

Parameters:
l - the listener to remove


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