Package VASSAL.launch

Class EditorWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
ExtensionEditorWindow, ModuleEditorWindow

public abstract class EditorWindow extends JFrame
EditorWindow is the base class for the three top-level component editors :- ModuleEditorWindow, ExtensionEditorWindow, PluginEditorWindow
Author:
Brent Easton
See Also:
Serialized Form
  • Field Details

    • saveAction

      protected SaveAction saveAction
    • saveAsAction

      protected SaveAsAction saveAsAction
    • componentHelpItem

      protected JMenuItem componentHelpItem
    • helpWindow

      protected final HelpWindow helpWindow
    • tree

      protected ConfigureTree tree
    • moduleName

      protected String moduleName
    • extensionName

      protected String extensionName
    • toolBar

      protected final JToolBar toolBar
    • scrollPane

      protected final JScrollPane scrollPane
  • Constructor Details

    • EditorWindow

      protected EditorWindow()
  • Method Details

    • getEditorType

      public abstract String getEditorType()
    • findMenuProxy

      protected MenuProxy findMenuProxy(String name, MenuBarProxy mb)
    • save

      protected abstract void save()
    • saveAs

      protected abstract void saveAs()
    • close

      protected void close()
    • saver

      protected void saver(Runnable save)
    • treeStateChanged

      public void treeStateChanged(boolean changed)
      Called by the enclosed ConfigureTree or ExtensionTree when it's dirty state is changed. The implementing class should override this if they need to take action like changing menu availability.
      Parameters:
      changed - true if the tree is in a changed (dirty) state