List of usage examples for javafx.scene.control RadioMenuItem RadioMenuItem
public RadioMenuItem()
From source file:org.drombler.fx.core.action.impl.FXToggleMenuItemFactory.java
@Override public MenuItem createToggleMenuItem(ToggleMenuEntryDescriptor toggleMenuEntryDescriptor, FXToggleAction action, int iconSize) { if (StringUtils.isNotEmpty(toggleMenuEntryDescriptor.getToggleGroupId())) { RadioMenuItem menuItem = new RadioMenuItem(); MenuItemUtils.configureRadioMenuItem(menuItem, action, iconSize); toggleGroupManager.configureToggle(menuItem, toggleMenuEntryDescriptor.getToggleGroupId()); return menuItem; } else {/*from ww w. j av a2 s . c om*/ CheckMenuItem menuItem = new CheckMenuItem(); MenuItemUtils.configureCheckMenuItem(menuItem, action, iconSize); return menuItem; } }