|
Side of Software Wizard Library 1.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--sos.wizard.AbstractModel
|
+--sos.wizard.AbstractPage
A partial implementation of the Page interface. It
handles the mapping of keys to values and the registration of
property change listeners. Subclasses need only implement
isComplete. This class assumes that it is always valid. Subclasses
with different validation requirements should also implement
validate.
Page| Field Summary |
| Fields inherited from interface sos.wizard.Page |
COMPLETE_PROPERTY, NAME_PROPERTY |
| Constructor Summary | |
AbstractPage()
Creates a new instance of AbstractPage with no name. |
|
AbstractPage(java.lang.Object name)
Creates a new instance of AbstractPage with the specified name. |
|
| Method Summary | |
java.lang.Object |
getValue(java.lang.String key)
Returns the value associated with the specified key, or null if this page does not contain the key. |
java.lang.Object |
putValue(java.lang.String key,
java.lang.Object value)
Associates value with key. |
void |
validate()
Checks if this page has acceptable values. |
| Methods inherited from class sos.wizard.AbstractModel |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface sos.wizard.Page |
isComplete |
| Methods inherited from interface sos.wizard.Model |
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Constructor Detail |
public AbstractPage()
AbstractPage with no name.
public AbstractPage(java.lang.Object name)
AbstractPage with the specified name.
name - this page's name| Method Detail |
public java.lang.Object getValue(java.lang.String key)
Pagenull if this page does not contain the key.
getValue in interface Pagekey - a string that identifies the stored object
key, or
null if no such object existsPage.putValue(java.lang.String, java.lang.Object)
public java.lang.Object putValue(java.lang.String key,
java.lang.Object value)
Pagevalue with key.
putValue in interface Pagekey - a string that identifies the objectvalue - the object to be associated with key
key,
or null if no such object existedPage.getValue(java.lang.String)
public void validate()
throws InvalidPageException
PageInvalidPageException with an appropriate
localized message.
validate in interface PageInvalidPageException - if this page is not valid
|
Side of Software Wizard Library 1.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||