Side of Software
Wizard Library 1.6

sos.wizard
Class OptionPageEditor

java.lang.Object
  |
  +--sos.wizard.AbstractPageEditor
        |
        +--sos.wizard.OptionPageEditor
All Implemented Interfaces:
PageEditor

public class OptionPageEditor
extends AbstractPageEditor

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.

Since:
1.0

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

OptionPageEditor

public OptionPageEditor()
Method Detail

getEditorComponent

public java.awt.Component getEditorComponent(javax.swing.JComponent c,
                                             Page page)
Description copied from interface: PageEditor
Starts editing the specified component's page and returns the component that will do the rendering.

Parameters:
c - component containing page
page - page to be edited
Returns:
the component that will do the rendering

stopEditing

public boolean stopEditing()
Description copied from interface: PageEditor
Stops and validates the editing. Returns true if the editing is successfully stopped.

Specified by:
stopEditing in interface PageEditor
Overrides:
stopEditing in class AbstractPageEditor
Returns:
true if the editing is successfully stopped
See Also:
PageEditor.cancelEditing()

Side of Software
Wizard Library 1.6

Copyright 2004-07 Side of Software (SOS). All rights reserved.