E - the generic enum typepublic class EnumRadioButtonGroupBean<E extends Enum<E>> extends Object
EnumRadioButtonGroupBean represents a model object that can be used with
JRadioButton's that are assosiated with an Enum.| Constructor and Description |
|---|
EnumRadioButtonGroupBean()
Instantiates a new
EnumRadioButtonGroupBean. |
EnumRadioButtonGroupBean(Map<E,JRadioButton> radioButtonMap,
de.alpharogroup.model.api.Model<E> selected)
Instantiates a new
EnumRadioButtonGroupBean. |
EnumRadioButtonGroupBean(de.alpharogroup.model.api.Model<E> selected)
Instantiates a new
EnumRadioButtonGroupBean. |
| Modifier and Type | Method and Description |
|---|---|
void |
associate(E enumValue,
JRadioButton radioButton)
Associate the given enum value with the given
JRadioButton. |
void |
associateMap(Map<E,JRadioButton> map)
Associate the given Map with the JRadioButton objects as values and
the enum values as keys and associates them.
|
de.alpharogroup.model.api.Model<E> |
getSelected()
Gets the selected.
|
E |
getSelectedEnum()
Gets the selected enum.
|
protected E |
getSelectedEnumFromRadioButtons()
Resolves the selected enum from the radio buttons.
|
E |
getValue()
Gets the value.
|
void |
setValue(E enumValue)
Sets the value.
|
public EnumRadioButtonGroupBean()
EnumRadioButtonGroupBean.public EnumRadioButtonGroupBean(Map<E,JRadioButton> radioButtonMap, de.alpharogroup.model.api.Model<E> selected)
EnumRadioButtonGroupBean.radioButtonMap - The map with the mapped JRadioButton objects.selected - the model where the selected enum is kept.public EnumRadioButtonGroupBean(de.alpharogroup.model.api.Model<E> selected)
EnumRadioButtonGroupBean.selected - the model where the selected enum is kept.public void associate(E enumValue, JRadioButton radioButton)
JRadioButton.enumValue - the enum valueradioButton - the radio buttonpublic void associateMap(Map<E,JRadioButton> map)
map - the mappublic de.alpharogroup.model.api.Model<E> getSelected()
public E getSelectedEnum()
protected E getSelectedEnumFromRadioButtons()
public E getValue()
public void setValue(E enumValue)
enumValue - the new enum value to setCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.