com.japisoft.framework.wizard
Class DefaultWizardStepModel

java.lang.Object
  extended bycom.japisoft.framework.wizard.DefaultWizardStepModel
All Implemented Interfaces:
WizardStepModel

public class DefaultWizardStepModel
extends java.lang.Object
implements WizardStepModel

Simple model for the set of wizardstep

Author:
(c) 2003 JAPISOFT
See Also:
WizardStep

Constructor Summary
DefaultWizardStepModel(JWizard wizard)
           
 
Method Summary
 void addWizardStep(WizardStep step)
          Add a new wizard step
 WizardStep getWizardByName(java.lang.String name)
           
 WizardStep getWizardStep(int index)
           
 int getWizardStepCount()
           
 int getWizardStepIndex(WizardStep step)
           
 void insertWizardStep(int index, WizardStep step)
          Insert a wizard step
 void removeWizardStep(WizardStep step)
          Remove a wizard step
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWizardStepModel

public DefaultWizardStepModel(JWizard wizard)
Method Detail

getWizardStepIndex

public int getWizardStepIndex(WizardStep step)
Specified by:
getWizardStepIndex in interface WizardStepModel
Returns:
an index starting from 0 for this wizard step

addWizardStep

public void addWizardStep(WizardStep step)
Description copied from interface: WizardStepModel
Add a new wizard step

Specified by:
addWizardStep in interface WizardStepModel

insertWizardStep

public void insertWizardStep(int index,
                             WizardStep step)
Description copied from interface: WizardStepModel
Insert a wizard step

Specified by:
insertWizardStep in interface WizardStepModel

removeWizardStep

public void removeWizardStep(WizardStep step)
Description copied from interface: WizardStepModel
Remove a wizard step

Specified by:
removeWizardStep in interface WizardStepModel

getWizardByName

public WizardStep getWizardByName(java.lang.String name)
Specified by:
getWizardByName in interface WizardStepModel
Returns:
a wizard by its name

getWizardStep

public WizardStep getWizardStep(int index)
Specified by:
getWizardStep in interface WizardStepModel
Returns:
a wizard step at this index from 0 to the maximum size - 1

getWizardStepCount

public int getWizardStepCount()
Specified by:
getWizardStepCount in interface WizardStepModel
Returns:
the number of wizard step