public abstract class Select1RadiobuttonModel extends Select1Model implements ActionListener
Select1
as a group of JRadioButton
s, better for
non-multilevel selects.SelectModel.SelectionTreeModel
selected
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
Constructor and Description |
---|
Select1RadiobuttonModel(Select1 control,
Renderer render)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
protected Object |
getAssociatedValue(JComponent jc)
Get the value associated to the Label for the
JRadioButton . |
protected Label |
getLabelFromJComponent(JComponent jc)
Get the associated Label for the
JRadioButton . |
JComponent |
getNewComponent()
generate the
JComponent that displays this FormControl 's
information. |
boolean |
isValid()
Test if the
JComponent information provided by the user is valid
according to the FormControl 's definition. |
void |
update()
Update the
JComponent |
setSelected, valueChanged
getAlertString, isMandatory, isOfType, updateAsMissing
correspondsTo, getComponent, getLabelModel, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, needsLabel, needsPostNewLine, needsPreNewLine
public JComponent getNewComponent()
JComponent
that displays this FormControl
's
information.getNewComponent
in class Select1Model
JTree
or a JComboBox
public void update()
JComponent
update
in class Select1Model
protected Object getAssociatedValue(JComponent jc)
JRadioButton
.jc
- the JRadioButton
protected Label getLabelFromJComponent(JComponent jc)
JRadioButton
.jc
- the JRadioButton
public boolean isValid()
JComponent
information provided by the user is valid
according to the FormControl
's definition.isValid
in class Select1Model
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class Select1Model
Copyright © 2018 universAAL Consortium. All rights reserved.