|
Oracle JEWT 4.2.10 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.bali.ewt.wizard.dWizard.DynamicSequence
DynamicSequences provide a simple framework for changing a sequence in a DWizard at runtime.
Clients of this class must subclass it to implement chooseSequence(). This implementation can check the current state of the wizard and return one sequence or another. Subclasses should also add listeners (e.g., ItemListeners on checkboxes) to track this state, and call rechooseSequence() whenever the state changes.
When calling rechooseSequence(), clients should also call DWizard.enableButtons() if any of the sequences returned could be a NullSequence. This makes sure that the wizard's navigation buttons are properly enabled or disabled.
Clients of this class may find the NullSequence class useful for representing an empty sequence. For example, if you want to allow the user to skip over a set of optional pages, implement chooseSequence() to return either the real sequence or NullSequence.getWizardSequence()
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.
DWizard
,
ArraySequence
,
NullSequence
,
SequenceSeries
Constructor Summary | |
DynamicSequence()
Creates a DynamicSequence |
Method Summary | |
protected abstract WizardSequence |
chooseSequence()
Chooses a sequence. |
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 |
protected void |
rechooseSequence()
Call this method to force the DynamicSequence to re-choose its sequence. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DynamicSequence()
Method Detail |
public void goToFirstPage()
goToFirstPage
in interface WizardSequence
public void goToLastPage()
goToLastPage
in interface WizardSequence
public void goForward()
goForward
in interface WizardSequence
java.util.NoSuchElementException
- if there are
no more pagespublic void goBackwards()
goBackwards
in interface WizardSequence
java.util.NoSuchElementException
- if there are
no more pagespublic WizardPage getNextPage()
getNextPage
in interface WizardSequence
public WizardPage getPreviousPage()
getPreviousPage
in interface WizardSequence
public WizardPage getCurrentPage()
getCurrentPage
in interface WizardSequence
public int getPageCount()
getPageCount
in interface WizardSequence
protected void rechooseSequence()
DWizard
,
chooseSequence()
protected abstract WizardSequence chooseSequence()
rechooseSequence()
|
Oracle JEWT 4.2.10 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |