Class MenuItemInfo

java.lang.Object
pamViewFX.fxNodes.utilsFX.MenuItemInfo

public class MenuItemInfo extends Object
Holds info allowing a swing menu item to be converted to JavaFX nodes.
  • Constructor Details

    • MenuItemInfo

      public MenuItemInfo(JMenuItem jMenuItem)
      Constructor
  • Method Details

    • getSubMenuList

      public ArrayList<MenuItemInfo> getSubMenuList()
      Returns:
      the subMenuList
    • setSubMenuList

      public void setSubMenuList(ArrayList<MenuItemInfo> subMenuList)
      Parameters:
      subMenuList - the subMenuList to set
    • getLabel

      public String getLabel()
      Returns:
      the label
    • setLabel

      public void setLabel(String label)
      Parameters:
      label - the label to set
    • getIcon

      public javafx.scene.Node getIcon()
      Returns:
      the icon
    • setIcon

      public void setIcon(javafx.scene.Node icon)
      Parameters:
      icon - the icon to set
    • getActionListener

      public javafx.event.EventHandler<javafx.event.ActionEvent> getActionListener()
      Returns:
      the actionListener
    • setActionListener

      public void setActionListener(javafx.event.EventHandler<javafx.event.ActionEvent> actionListener)
      Parameters:
      actionListener - the actionListener to set