|
juife v0.1a |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.juife.wizard.AbstractWizardModel
net.sf.juife.wizard.DefaultWizardModel
public class DefaultWizardModel
Default implementation of the WizardModel
interface.
Constructor Summary | |
---|---|
DefaultWizardModel()
Creates a new instance of DefaultWizardModel |
|
DefaultWizardModel(WizardPage[] pages)
Creates a new instance of DefaultWizardModel using the specified pages. |
Method Summary | |
---|---|
void |
addPage(WizardPage page)
Adds the specified wizard page to the end of the list. |
void |
addStep(java.lang.String step)
Adds a step that corresponds to one wizard page. |
void |
addStep(java.lang.String step,
int pageCount)
Adds a step to this model. |
WizardPage |
getCurrentPage()
Gets the current page. |
java.lang.String |
getCurrentStep()
Gets the current step in the wizard. |
java.lang.String[] |
getSteps()
Gets a String array providing the current list of steps. |
boolean |
hasLast()
Determines whether the last page is specified. |
boolean |
hasNext()
Determines whether there is a next page in this wizard. |
boolean |
hasPrevious()
Determines whether there is a previous page in this wizard. |
WizardPage |
last()
Moves to the last page in the wizard. |
WizardPage |
next()
Moves to the next page in the wizard. |
WizardPage |
previous()
Moves to the previous page in the wizard. |
void |
setLast()
Sets the last page of the wizard to be the last page of the model. |
void |
setLast(WizardPage page)
Sets the last page of the wizard. |
void |
setPages(WizardPage[] pages)
Sets the pages this wizard will use in the specified order. |
Methods inherited from class net.sf.juife.wizard.AbstractWizardModel |
---|
addActionListener, fireActionPerformed, removeActionListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultWizardModel()
DefaultWizardModel
public DefaultWizardModel(WizardPage[] pages)
DefaultWizardModel
using the specified pages.
pages
- A WizardPage
array providing
the pages this wizard will use arranged in order of appearance.Method Detail |
---|
public void addPage(WizardPage page)
page
- The non null
wizard page to be added.
java.lang.IllegalArgumentException
- If the page
is null
.public void setPages(WizardPage[] pages)
pages
- A WizardPage
array providing
the pages this wizard will use arranged in order of appearance.
java.lang.IllegalArgumentException
- If pages
contains
null
element.public void setLast()
java.lang.IllegalArgumentException
- If the model is empty.public void setLast(WizardPage page)
Note that the specified page must be added to the model before the invocation of this method.
page
- Specifies the last page of the wizard.
java.lang.IllegalArgumentException
- If the model does not contain the specified page.public boolean hasNext()
true
if there is a next page in this wizard,
false
otherwise.next()
public WizardPage next()
hasNext()
public boolean hasPrevious()
true
if there is a previous page in this wizard,
false
otherwise.previous()
public WizardPage previous()
hasPrevious()
public boolean hasLast()
true
if last page is specified,
false
otherwise.last
public WizardPage last()
hasLast()
public WizardPage getCurrentPage()
null
if there isn't current page yet.public java.lang.String[] getSteps()
String
array providing the current list of steps.
String
array providing the current list of steps or
null
if the list of steps is not available.public java.lang.String getCurrentStep()
null
if there is no current step.public void addStep(java.lang.String step)
step
- The step title.public void addStep(java.lang.String step, int pageCount)
step
- The step title.pageCount
- The number of pages this step corresponds to.
|
juife v0.1a |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005 Grigor Iliev. All rights reserved. |