Oracle JEWT API Reference
Release 4.2.24.0.0
B12199-01

oracle.bali.ewt.wizard.dWizard
Class ArraySequence

java.lang.Object
  |
  +--oracle.bali.ewt.wizard.dWizard.ArraySequence
All Implemented Interfaces:
WizardSequence

public class ArraySequence
extends java.lang.Object
implements WizardSequence

Implements a sequence of an array of wizard pages. In general, clients should use one ArraySequence for each group of pages, and compose those sequences together with SequenceSeries objects.

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.

See Also:
DWizard, SequenceSeries

Constructor Summary
ArraySequence(WizardPage[] pages)
          Creates a new array sequence.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArraySequence

public ArraySequence(WizardPage[] pages)
Creates a new array sequence. Stores a copy of the page array.
Throws:
java.lang.IllegalArgumentException - if the pages array is null or empty
Method Detail

goToFirstPage

public void goToFirstPage()
Returns the sequence to its first page.
Specified by:
goToFirstPage in interface WizardSequence

goToLastPage

public void goToLastPage()
Returns the sequence to its last page
Specified by:
goToLastPage in interface WizardSequence

goForward

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

goBackwards

public void goBackwards()
Moves the sequence back to its previous page.
Specified by:
goBackwards in interface WizardSequence
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.
Specified by:
getNextPage in interface WizardSequence

getPreviousPage

public WizardPage getPreviousPage()
Returns the page immediately before the current page, or null if there are no more pages.
Specified by:
getPreviousPage in interface WizardSequence

getCurrentPage

public WizardPage getCurrentPage()
Returns the current page of the wizard sequence.
Specified by:
getCurrentPage in interface WizardSequence

getPageCount

public int getPageCount()
Returns the number of pages in this sequence.
Specified by:
getPageCount in interface WizardSequence

Oracle JEWT 4.2.24

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