|
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.AbstractPageEditor
A partial implementation of the PageEditor
interface. This class implements
cancelEditing as doing nothing and stopEditing
as returning true. If these implementations are
acceptable, subclasses need only implement getEditorComponent.
As a convenience, this class provides validatePage,
which validates the page
and displays a message box if the page is invalid. Subclasses wishing
to make use of this behavior should invoke validatePage in
stopEditing.
| Constructor Summary | |
AbstractPageEditor()
|
|
| Method Summary | |
void |
cancelEditing()
Cancels the editing. |
boolean |
stopEditing()
Stops and validates the editing. |
protected boolean |
validatePage(Page page,
java.awt.Component component)
Validates the specified page and brings up an error message centered on component if the page is invalid. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface sos.wizard.PageEditor |
getEditorComponent |
| Constructor Detail |
public AbstractPageEditor()
| Method Detail |
public void cancelEditing()
PageEditor
cancelEditing in interface PageEditorPageEditor.stopEditing()public boolean stopEditing()
PageEditortrue if the
editing is successfully stopped.
stopEditing in interface PageEditortrue if the editing is successfully stoppedPageEditor.cancelEditing()
protected boolean validatePage(Page page,
java.awt.Component component)
component if the page is invalid.
This is a convenience method for subclasses wishing this
behavior in stopEditing.
page - page to be validatedcomponent - component to serve as the parent of the error
message dialog
true if this page is validstopEditing()
|
Side of Software Wizard Library 1.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||