public final class MenuItemUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
configureCheckMenuItem(CheckMenuItem menuItem,
FXToggleAction action,
int iconSize)
Configures a
CheckMenuItem with the specified toggle action. |
static void |
configureMenuItem(MenuItem menuItem,
FXAction action,
int iconSize)
Configures a
MenuItem with the specified action. |
static void |
configureRadioMenuItem(RadioMenuItem menuItem,
FXToggleAction action,
int iconSize)
Configures a
RadioMenuItem with the specified toggle action. |
public static void configureMenuItem(MenuItem menuItem, FXAction action, int iconSize)
MenuItem
with the specified action.menuItem
- the menu item to configreaction
- the actioniconSize
- the icon sizepublic static void configureRadioMenuItem(RadioMenuItem menuItem, FXToggleAction action, int iconSize)
RadioMenuItem
with the specified toggle action.menuItem
- the menu item to configreaction
- the actioniconSize
- the icon sizepublic static void configureCheckMenuItem(CheckMenuItem menuItem, FXToggleAction action, int iconSize)
CheckMenuItem
with the specified toggle action.menuItem
- the menu item to configreaction
- the actioniconSize
- the icon sizeCopyright © 2012–2017 Drombler. All rights reserved.