Class SectionEditorDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public abstract class SectionEditorDialog extends JDialog
A JDialog used to edit a Section item.

The Dialog should not directly change the model, it should just return the proposed changes. The calling application will update the model if OK and manage the undo/redo aspects.

See Also:
  • Method Details

    • getDefault

      public static SectionEditorDialog getDefault()
      Search the global lookup for an instance.
      Returns:
      Can be null if no instance found.
    • preset

      public abstract void preset(CLI_Section item, char key)
      Preset the dialog to edit a CLI_Section.
      Parameters:
      item - CLI_Section
      key - If not 0, means user has typed key to initiate the dialog.
    • exitedOk

      public abstract boolean exitedOk()
      Returns:
      True if dialog was exited OK, false if dialog operation was cancelled.
    • getNewData

      public abstract Section getNewData()
      The returned CLI_Section data.
      Returns:
      Non null only if exitedOk() was true.