Example usage for javafx.scene.control RadioMenuItem RadioMenuItem

List of usage examples for javafx.scene.control RadioMenuItem RadioMenuItem

Introduction

In this page you can find the example usage for javafx.scene.control RadioMenuItem RadioMenuItem.

Prototype

public RadioMenuItem() 

Source Link

Document

Constructs a RadioMenuItem with no display text.

Usage

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;
    }
}