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

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

    • bindButton

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

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

      public static void bindMenuItem(@NonNull javafx.scene.control.MenuItem control, @NonNull 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