Package hec.script

Class AbstractScriptButtonFrame

All Implemented Interfaces:
ConfigChangeListener, ScriptEventListener, ScriptConstants, ComponentListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, Modifiable

public abstract class AbstractScriptButtonFrame extends RmaJFrame implements ScriptConstants, ConfigChangeListener, ScriptEventListener
See Also:
  • Field Details

    • _activeButton

      protected JButton _activeButton
  • Constructor Details

    • AbstractScriptButtonFrame

      public AbstractScriptButtonFrame(Frame parent)
    • AbstractScriptButtonFrame

      public AbstractScriptButtonFrame(Frame parent, String groupName)
  • Method Details

    • runScript

      protected boolean runScript(ScriptIdentifier id)
    • addNotify

      public void addNotify()
      Overrides:
      addNotify in class Frame
    • newScript

      protected abstract void newScript()
      display the editor dialog to create a new script
    • addScriptMenu

      protected void addScriptMenu()
    • editScript

      protected abstract void editScript()
      display the editor for the currently selected scriptButton
    • setVisible

      public void setVisible(boolean b)
      Overrides:
      setVisible in class RmaJFrame
    • updateScriptButtons

      public void updateScriptButtons()
      reconfigure the buttons on the frame
    • getScriptableName

      protected abstract String getScriptableName()
    • getScriptManager

      protected abstract ScriptManager getScriptManager()
    • getGroupName

      protected String getGroupName()
    • configFileChanged

      public void configFileChanged(ConfigFileChangeEvent event)
      Specified by:
      configFileChanged in interface ConfigChangeListener
    • scriptInfo

      protected void scriptInfo()
      debug method that prints the scriptIdentifier info to System.out
    • scheduleJob

      public void scheduleJob(boolean fromButton)
    • jobStatus

      public void jobStatus()
    • isNetworked

      protected abstract boolean isNetworked()
    • scriptEventPerformed

      public void scriptEventPerformed(ScriptEvent se)
      Specified by:
      scriptEventPerformed in interface ScriptEventListener
    • setActiveButton

      public void setActiveButton(JButton button)
    • getActiveButton

      public JButton getActiveButton()