net.javaprog.ui.wizard
Class DefaultWizardModel.DummyStep

java.lang.Object
  |
  +--net.javaprog.ui.wizard.DefaultWizardModel.DummyStep
All Implemented Interfaces:
Step
Enclosing class:
DefaultWizardModel

public static class DefaultWizardModel.DummyStep
extends Object
implements Step

Step implementation used in dynamic wizard models. This step will be automatically added to your wizard model to show that it is dynamic.


Field Summary
 
Fields inherited from interface net.javaprog.ui.wizard.Step
BACK_PROPERTY, FINISH_PROPERTY, NEXT_PROPERTY
 
Constructor Summary
DefaultWizardModel.DummyStep()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          Adds a listener for the back, next and finish properties.
 boolean canFinish()
          Returns whether the finish action is enabled.
 boolean canGoBack()
          Returns whether the back action is enabled.
 boolean canGoNext()
          Returns whether the next action is enabled.
 JComponent getComponent()
          Returns the step's component that will be displayed in the wizard.
 String getDescription()
          Returns a descriptive string for this step that might be displayed in the StepDescriptionRenderer.
 String getName()
          Returns the step's name that might be displayed in the StepDescriptionRenderer and in the StepListRenderer.
 void prepareRendering()
          Is called just before the component will be displayed.
 void removePropertyChangeListener(PropertyChangeListener l)
          Removes a previously added listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWizardModel.DummyStep

public DefaultWizardModel.DummyStep()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Description copied from interface: Step
Adds a listener for the back, next and finish properties.

Specified by:
addPropertyChangeListener in interface Step

canFinish

public boolean canFinish()
Description copied from interface: Step
Returns whether the finish action is enabled.

Specified by:
canFinish in interface Step

canGoBack

public boolean canGoBack()
Description copied from interface: Step
Returns whether the back action is enabled.

Specified by:
canGoBack in interface Step

canGoNext

public boolean canGoNext()
Description copied from interface: Step
Returns whether the next action is enabled.

Specified by:
canGoNext in interface Step

getComponent

public JComponent getComponent()
Description copied from interface: Step
Returns the step's component that will be displayed in the wizard. You should cache this return value in your implementation to avoid performance bottlenecks.

Specified by:
getComponent in interface Step

getDescription

public String getDescription()
Description copied from interface: Step
Returns a descriptive string for this step that might be displayed in the StepDescriptionRenderer.

Specified by:
getDescription in interface Step

getName

public String getName()
Description copied from interface: Step
Returns the step's name that might be displayed in the StepDescriptionRenderer and in the StepListRenderer.

Specified by:
getName in interface Step

prepareRendering

public void prepareRendering()
Description copied from interface: Step
Is called just before the component will be displayed. This enables the step to adjust certain values according to the value of other steps.

Specified by:
prepareRendering in interface Step
See Also:
Step.getComponent()

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Description copied from interface: Step
Removes a previously added listener.

Specified by:
removePropertyChangeListener in interface Step
See Also:
Step.addPropertyChangeListener(PropertyChangeListener)