java.lang.Object
org.jhotdraw8.application.action.Actions

public class Actions extends Object
Actions.
Author:
Werner Randelshofer
  • Method Details

    • bindButton

      public static void bindButton(javafx.scene.control.Button control, Action action)
      Binds a button to an action
      Parameters:
      control - The menu control
      action - The action
    • bindMenuItem

      public static void bindMenuItem(javafx.scene.control.MenuItem control, Action action)
      Binds a menu control to an action
      Parameters:
      control - The menu control
      action - The action
    • bindMenuItem

      public static void bindMenuItem(javafx.scene.control.MenuItem control, Action action, boolean bindLabel)
      Binds a menu control to an action
      Parameters:
      control - The menu control
      action - The action
      bindLabel - whether the the text of the menu item should be bound to the label of the action