|
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 | +--sos.wizard.OptionPageEditor
An editor of an OptionPage
. This editor renders
an option page's message in a panel with a BoxLayout
in the
page direction. It treats a message in a way similar to how
javax.swing.JOptionPane
treats messages.
It renders an Icon
as a JLabel
, a Component
as itself, and all other objects as a JTextPane
whose
contents are the result of invoking String.valueOf
on the object.
It treats arrays recursively.
If the page is invalid when stopEditing
is called, the editor
displays an error message dialog.
Constructor Summary | |
OptionPageEditor()
|
Method Summary | |
java.awt.Component |
getEditorComponent(javax.swing.JComponent c,
Page page)
Starts editing the specified component's page and returns the component that will do the rendering. |
boolean |
stopEditing()
Stops and validates the editing. |
Methods inherited from class sos.wizard.AbstractPageEditor |
cancelEditing, validatePage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OptionPageEditor()
Method Detail |
public java.awt.Component getEditorComponent(javax.swing.JComponent c, Page page)
PageEditor
c
- component containing page
page
- page to be edited
public boolean stopEditing()
PageEditor
true
if the
editing is successfully stopped.
stopEditing
in interface PageEditor
stopEditing
in class AbstractPageEditor
true
if the editing is successfully stoppedPageEditor.cancelEditing()
|
Side of Software Wizard Library 1.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |