Package hec.client

Class TextFileEditorDialog

All Implemented Interfaces:
TextEditor, ComponentListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, Modifiable

public class TextFileEditorDialog extends RmaJDialog implements TextEditor
See Also:
  • Constructor Details

    • TextFileEditorDialog

      public TextFileEditorDialog(Frame parent, boolean modal, Identifier id, boolean editable)
    • TextFileEditorDialog

      public TextFileEditorDialog(Dialog parent, boolean modal, Identifier id, boolean editable)
  • Method Details

    • buildControls

      protected void buildControls(Identifier id, boolean editable)
    • createTextEditorPanel

      protected TextEditorPanel createTextEditorPanel(Identifier id, boolean editable)
      create the TextEditorPanel used by the TextFileEditorDialog
      Parameters:
      id - the Identifier of the file to load
      editable - true to make the editor panel editable
      Returns:
      the new TextEditorPanel
    • reloadForm

      public boolean reloadForm()
      Specified by:
      reloadForm in interface TextEditor
    • fillForm

      public boolean fillForm(Identifier id)
      Specified by:
      fillForm in interface TextEditor
    • setEditorFont

      public void setEditorFont(Font f)
    • getEditorFont

      public Font getEditorFont()
    • getEditorPanel

      protected TextEditorPanel getEditorPanel()
      get the TextEditorPanel used by the TextFileEditorDialog
      Returns:
      the TextEditorPanel