Class FileScriptingPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ScriptExecutionListener, TitleUpdatedListener
Direct Known Subclasses:
GroovyPanel, JythonPanel

public abstract class FileScriptingPanel extends ScriptingPanel implements ScriptExecutionListener
Supports loading/saving of files.
Version:
$Revision: 15104 $
Author:
fracpete (fracpete at waikato dot ac dot nz), Sun Microsystems Inc (see TextComponentDemo.java)
See Also:
  • Field Details

  • Constructor Details

    • FileScriptingPanel

      public FileScriptingPanel()
  • Method Details

    • scriptFinished

      public void scriptFinished(ScriptExecutionEvent e)
      Gets sent when a script finishes execution.
      Specified by:
      scriptFinished in interface ScriptExecutionListener
      Parameters:
      e - the event
    • getPlainTitle

      public abstract String getPlainTitle()
      Returns the title (without the filename).
      Returns:
      the plain title
    • getTitle

      public String getTitle()
      Returns the current title for the frame/dialog.
      Specified by:
      getTitle in class ScriptingPanel
      Returns:
      the title
    • getOutput

      public JTextPane getOutput()
      Returns the text area that is used for displaying output on stdout and stderr.
      Specified by:
      getOutput in class ScriptingPanel
      Returns:
      the JTextArea
    • getMenuBar

      public JMenuBar getMenuBar()
      Returns the menu bar to to be displayed in the frame.
      Specified by:
      getMenuBar in class ScriptingPanel
      Returns:
      the menu bar, null if not applicable
    • open

      public void open(File file)
      Opens the specified file.
      Parameters:
      file - the file to open