java.lang.Object
com.inductiveautomation.factorypmi.application.script.MenuNode
All Implemented Interfaces:
TreeNode

public class MenuNode extends Object implements TreeNode
  • Constructor Details

    • MenuNode

      public MenuNode()
    • MenuNode

      public MenuNode(String name)
    • MenuNode

      public MenuNode(MenuNode toCopy)
  • Method Details

    • insertChild

      public void insertChild(int index, MenuNode child)
    • removeChild

      public MenuNode removeChild(int index)
    • getChildren

      public List<MenuNode> getChildren()
    • setChildren

      public void setChildren(List<MenuNode> children)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getIconPath

      public String getIconPath()
    • setIconPath

      public void setIconPath(String iconPath)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getScript

      public String getScript()
    • setScript

      public void setScript(String script)
    • getMnemonic

      public String getMnemonic()
    • setMnemonic

      public void setMnemonic(String mnemonic)
    • getAccelerator

      public KeystrokeKey getAccelerator()
    • setAccelerator

      public void setAccelerator(KeystrokeKey accelerator)
    • isLeaf

      public boolean isLeaf()
      Specified by:
      isLeaf in interface TreeNode
    • getChildAt

      public TreeNode getChildAt(int index)
      Specified by:
      getChildAt in interface TreeNode
    • getChildCount

      public int getChildCount()
      Specified by:
      getChildCount in interface TreeNode
    • getParent

      public TreeNode getParent()
      Specified by:
      getParent in interface TreeNode
    • getIndex

      public int getIndex(TreeNode child)
      Specified by:
      getIndex in interface TreeNode
    • getAllowsChildren

      public boolean getAllowsChildren()
      Specified by:
      getAllowsChildren in interface TreeNode
    • children

      public Enumeration children()
      Specified by:
      children in interface TreeNode