Module jEdit

Class OptionsDialog

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, TreeSelectionListener, RootPaneContainer, WindowConstants
Direct Known Subclasses:
GlobalOptions, PluginOptions

public abstract class OptionsDialog extends EnhancedDialog implements ActionListener, TreeSelectionListener
An abstract options dialog box.
Version:
$Id: OptionsDialog.java 24464 2016-07-19 14:47:33Z ezust $
Author:
Slava Pestov
See Also:
  • Field Details

    • paneTree

      protected JTree paneTree
    • currentPane

      protected OptionPane currentPane
  • Constructor Details

    • OptionsDialog

      protected OptionsDialog(Frame frame, String name, String pane)
      Parameters:
      frame - - the parent frame for dialogs created
      name - the name of an option pane - it must have a .title and .code property defined in order to instantiate.
      pane - the initial pane to show when this is created.
    • OptionsDialog

      protected OptionsDialog(Dialog dialog, String name, String pane)
  • Method Details

    • addOptionGroup

      public void addOptionGroup(OptionGroup group)
    • addOptionPane

      public void addOptionPane(OptionPane pane)
    • ok

      public void ok()
      Specified by:
      ok in class EnhancedDialog
    • cancel

      public void cancel()
      Specified by:
      cancel in class EnhancedDialog
    • ok

      public void ok(boolean dispose)
    • dispose

      public void dispose()
      Overrides:
      dispose in class Window
    • actionPerformed

      public void actionPerformed(ActionEvent evt)
      Specified by:
      actionPerformed in interface ActionListener
    • valueChanged

      public void valueChanged(TreeSelectionEvent evt)
      Specified by:
      valueChanged in interface TreeSelectionListener
    • createOptionTreeModel

      protected abstract OptionsDialog.OptionTreeModel createOptionTreeModel()
      Creates the tree model that goes on the left of the option pane, loading all the items that are needed.
      Returns:
      OptionTreeModel for binary compatibility of plugins (e.g. SideKick)
    • getDefaultGroup

      protected abstract OptionGroup getDefaultGroup()
    • init

      protected void init(String name, String pane)
      Parameters:
      name - the name of this pane
      pane - - a sub-pane name to select (?) Could someone please write better docs for this function? Creates buttons, adds listeners, and makes the pane visible. This method is called automatically from the constructor, and also calls init on each of the optionPanes?
      Since:
      jEdit 4.3pre9 (was private before)