java.lang.Object
org.jhotdraw8.application.action.Actions
Actions.
- Author:
- Werner Randelshofer
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidbindButton(@NonNull javafx.scene.control.Button control, @NonNull Action action) Binds a button to an actionstatic voidbindMenuItem(@NonNull javafx.scene.control.MenuItem control, @NonNull Action action) Binds a menu control to an actionstatic voidbindMenuItem(@NonNull javafx.scene.control.MenuItem control, @NonNull Action action, boolean bindLabel) Binds a menu control to an action
-
Method Details
-
bindButton
Binds a button to an action- Parameters:
control- The menu controlaction- 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 controlaction- 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 controlaction- The actionbindLabel- whether the the text of the menu item should be bound to the label of the action
-