Module jEdit

Class EnhancedDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
AddModeDialog, BufferOptions, CloseDialog, ContextAddDialog, ErrorListDialog, FilePropertiesDialog, FilesChangedDialog, FontSelectorDialog, OptionsDialog, PasteFromListDialog, PasteSpecialDialog, PrintPreview, SearchDialog, SelectLineRange, StyleEditor, TabbedOptionDialog, TextAreaDialog, TipOfTheDay, VFSFileChooserDialog

public abstract class EnhancedDialog extends JDialog
Dialog that handles OK/Cancel for you A dialog box that handles window closing, the ENTER key and the ESCAPE key for you. All you have to do is implement ok() (called when Enter is pressed) and cancel() (called when Escape is pressed, or window is closed).
Version:
$Id: EnhancedDialog.java 25058 2020-03-28 19:33:14Z kpouer $
Author:
Slava Pestov
See Also:
  • Field Details

    • keyHandler

      protected org.gjt.sp.jedit.gui.EnhancedDialog.KeyHandler keyHandler
    • enterEnabled

      protected boolean enterEnabled
  • Constructor Details

    • EnhancedDialog

      protected EnhancedDialog(Frame parent, String title, boolean modal)
    • EnhancedDialog

      protected EnhancedDialog(View parent, String title, boolean modal)
    • EnhancedDialog

      protected EnhancedDialog(Dialog parent, String title, boolean modal)
  • Method Details

    • getEnterEnabled

      public boolean getEnterEnabled()
    • setEnterEnabled

      public void setEnterEnabled(boolean enterEnabled)
    • ok

      public abstract void ok()
    • cancel

      public abstract void cancel()