public class ActionUtil
extends java.lang.Object
| ?????? |
|---|
ActionUtil() |
| ?????? | ????? |
|---|---|
static void |
defineItemAction(javafx.scene.control.MenuItem menuItem,
java.lang.Runnable action)
Adds a event handler to the given menu.
|
static void |
defineNodeAction(javafx.scene.Node node,
java.lang.Runnable action)
Adds a event handler to the given node.
|
public static void defineNodeAction(javafx.scene.Node node,
java.lang.Runnable action)
node - The node that should trigger the actionaction - the actionpublic static void defineItemAction(javafx.scene.control.MenuItem menuItem,
java.lang.Runnable action)
menuItem - The menu item that should trigger the actionaction - the action