net.javaprog.ui.wizard
Class DefaultWizardModel.DummyStep

java.lang.Object
  extended by 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, CANCEL_PROPERTY, FINISH_PROPERTY, NEXT_PROPERTY
 
Constructor Summary
DefaultWizardModel.DummyStep()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          Does nothing.
 boolean canCancel()
          Returns true.
 boolean canFinish()
          Returns false.
 boolean canGoBack()
          Returns true.
 boolean canGoNext()
          Returns true.
 JComponent getComponent()
          Returns null.
 String getDescription()
          Returns an empty string.
 String getName()
          Returns "...
 void prepareRendering()
          Does nothing.
 void removePropertyChangeListener(PropertyChangeListener l)
          Does nothing.
 
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

canFinish

public boolean canFinish()
Returns false.

Specified by:
canFinish in interface Step

canGoBack

public boolean canGoBack()
Returns true.

Specified by:
canGoBack in interface Step

canGoNext

public boolean canGoNext()
Returns true.

Specified by:
canGoNext in interface Step

canCancel

public boolean canCancel()
Returns true.

Specified by:
canCancel in interface Step
Since:
0.1.4

getComponent

public JComponent getComponent()
Returns null. The step actually never gets displayed and therefore does not need a component.

Specified by:
getComponent in interface Step

getDescription

public String getDescription()
Returns an empty string. The step actually never gets displayed and therefore does not need a description.

Specified by:
getDescription in interface Step

getName

public String getName()
Returns "..." to be displayed in the step list.

Specified by:
getName in interface Step

prepareRendering

public void prepareRendering()
Does nothing.

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

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Does nothing.

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

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Does nothing.

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