Oracle JEWT API Reference
Release 4.2.24.0.0
B12199-01

oracle.bali.ewt.wizard.dWizard
Interface WizardSequence

All Known Implementing Classes:
SequenceSeries, NullSequence, ArraySequence, DynamicSequence

public interface WizardSequence

The WizardSequence interface provides the abstraction that the DWizard class uses to navigate among wizard pages. Several default implementations are provided. In general, clients won't use a single WizardSequence implementation, but compose several sequences together (for example, by using the SequenceSeries class) into a larger whole.

Clients that need to pick a sequence dynamically at runtime may find the DynamicSequence class useful.

WizardSequences cannot be shared among multiple running wizards, but they can be shared among multiple wizards as long as no two will be running (i.e., visible) at the same time. WizardSequences can even be used more than once in a single wizard.

See Also:
DWizard, ArraySequence, NullSequence, SequenceSeries, DynamicSequence

Method Summary
 WizardPage getCurrentPage()
          Returns the current page of the wizard sequence.
 WizardPage getNextPage()
          Returns the page immediately after the current page, or null if there are no more pages.
 int getPageCount()
          Returns the number of pages in this sequence.
 WizardPage getPreviousPage()
          Returns the page immediately before the current page, or null if there are no more pages.
 void goBackwards()
          Moves the sequence back to its previous page.
 void goForward()
          Advances the sequence to its next page.
 void goToFirstPage()
          Returns the sequence to its first page.
 void goToLastPage()
          Returns the sequence to its last page
 

Method Detail

goToFirstPage

public void goToFirstPage()
Returns the sequence to its first page.

goToLastPage

public void goToLastPage()
Returns the sequence to its last page

goForward

public void goForward()
Advances the sequence to its next page.
Throws:
java.util.NoSuchElementException - if there are no more pages

goBackwards

public void goBackwards()
Moves the sequence back to its previous page.
Throws:
java.util.NoSuchElementException - if there are no more pages

getNextPage

public WizardPage getNextPage()
Returns the page immediately after the current page, or null if there are no more pages.

getPreviousPage

public WizardPage getPreviousPage()
Returns the page immediately before the current page, or null if there are no more pages.

getCurrentPage

public WizardPage getCurrentPage()
Returns the current page of the wizard sequence.

getPageCount

public int getPageCount()
Returns the number of pages in this sequence.

Oracle JEWT 4.2.24

Copyright © [xxxx],2003, Oracle. All Rights Reserved.