java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JMenuItem
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.editing_tools.BSHscriptMenuEntry
All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, MenuElement, SwingConstants

public class BSHscriptMenuEntry
extends JMenuItem
This class provides the menu entries for the BeanShell-Script Menu Items. This modified Menu Items provide the additional methods for storing the beanshell commando file name.
Author:
klukas To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments
See Also:
Serialized Form
  • Constructor Details

    • BSHscriptMenuEntry

      public BSHscriptMenuEntry​(String title, String commandFile, boolean nodeCommand)
      Creates a new ScriptMenuEntry object.
      Parameters:
      title - Label text for the menu item
      commandFile - The name of the beanshell command file
  • Method Details

    • getCmdFile

      public String getCmdFile()
      Returns the name of the beanshell commando file for this menuitem.
      Returns:
      DOCUMENT ME!
    • getCmdFileSrc

      public String getCmdFileSrc()
    • getText

      public String getText()
      Overrides:
      getText in class AbstractButton
    • isIndividualNodeCommand

      public boolean isIndividualNodeCommand()
    • executeScript

      public static void executeScript​(BSHinfo info, String title)
    • execute

      public void execute()
    • isNodeCommand

      public static String isNodeCommand​(String firstLine)
      Parameters:
      firstLine -
      Returns:
      Modified firstLine (if it is a node command), otherwise return NULL