FreeHEP API
Version current

org.freehep.swing.wizard
Interface HasNextPages


public interface HasNextPages

A WizardPage that implements this interface will have one or more subsequent pages. When a page that implements this interface is showing in a WizardDialog, the "Next" button will be enabled. A sensible wizard page would implement this interface, or the Finishable interface, or both. If you implement neither then neither the "Next" nor "Finish" button will enable on the wizard, and you page will be a "dead end".

Author:
Jonas Gifford
See Also:
WizardPage, WizardDialog, Finishable
Source Code:
HasNextPages.java

Method Summary
 WizardPage getNext()
          This method is called when the user clicks on the "Next" button.
 WizardPage[] getNextWizardPages()
          Returns an array of all possible next pages.
 

Method Detail

getNext

public WizardPage getNext()
This method is called when the user clicks on the "Next" button. You must return a page that was in the array returned by getNextWizardPages.

Returns:
a WizardPage that was included in the array returned by getNextWizardPages

getNextWizardPages

public WizardPage[] getNextWizardPages()
Returns an array of all possible next pages. There could, of course, be just one element in this array. This method will be called before the wizard shows on the screen. The wizard needs to know all of the possible pages so that it can size itself to fit them all.

Returns:
an array of all possible subsequent pages

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.