|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.javaprog.ui.wizard.AbstractStep
Provides a basic Step implementation. This class manages the PropertyChangeListeners and the caching of the step component.
| Field Summary | |
protected boolean |
canFinish
|
protected boolean |
canGoBack
|
protected boolean |
canGoNext
|
protected JComponent |
component
|
protected String |
description
|
protected EventListenerList |
listenerList
|
protected String |
name
|
| Fields inherited from interface net.javaprog.ui.wizard.Step |
BACK_PROPERTY, FINISH_PROPERTY, NEXT_PROPERTY |
| Constructor Summary | |
AbstractStep(String name,
String description)
Creates a new Step with the given name and description. |
|
| 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. |
protected abstract JComponent |
createComponent()
Subclasses must overwrite this method and return the step's component. |
protected void |
firePropertyChange(String prop,
Object oldValue,
Object newValue)
|
JComponent |
getComponent()
Returns the step's component. |
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 |
removePropertyChangeListener(PropertyChangeListener l)
Removes a previously added listener. |
protected void |
setCanFinish(boolean b)
|
protected void |
setCanGoBack(boolean b)
|
protected void |
setCanGoNext(boolean b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.javaprog.ui.wizard.Step |
prepareRendering |
| Field Detail |
protected boolean canFinish
protected boolean canGoBack
protected boolean canGoNext
protected JComponent component
protected String description
protected final EventListenerList listenerList
protected String name
| Constructor Detail |
public AbstractStep(String name,
String description)
| Method Detail |
public void addPropertyChangeListener(PropertyChangeListener l)
Step
addPropertyChangeListener in interface Steppublic boolean canFinish()
Step
canFinish in interface Steppublic boolean canGoBack()
Step
canGoBack in interface Steppublic boolean canGoNext()
Step
canGoNext in interface Stepprotected abstract JComponent createComponent()
protected void firePropertyChange(String prop,
Object oldValue,
Object newValue)
public JComponent getComponent()
getComponent in interface StepcreateComponent()public String getDescription()
Step
getDescription in interface Steppublic String getName()
Step
getName in interface Steppublic void removePropertyChangeListener(PropertyChangeListener l)
Step
removePropertyChangeListener in interface StepStep.addPropertyChangeListener(PropertyChangeListener)protected void setCanFinish(boolean b)
protected void setCanGoBack(boolean b)
protected void setCanGoNext(boolean b)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||