Package pamViewFX.fxNodes.utilsFX
Class MenuItemInfo
java.lang.Object
pamViewFX.fxNodes.utilsFX.MenuItemInfo
Holds info allowing a swing menu item to be converted to JavaFX nodes.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.event.EventHandler<javafx.event.ActionEvent>
javafx.scene.Node
getIcon()
getLabel()
void
setActionListener
(javafx.event.EventHandler<javafx.event.ActionEvent> actionListener) void
setIcon
(javafx.scene.Node icon) void
void
setSubMenuList
(ArrayList<MenuItemInfo> subMenuList)
-
Constructor Details
-
MenuItemInfo
Constructor
-
-
Method Details
-
getSubMenuList
- Returns:
- the subMenuList
-
setSubMenuList
- Parameters:
subMenuList
- the subMenuList to set
-
getLabel
- Returns:
- the label
-
setLabel
- 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
-