public abstract class SelectChecboxModel extends SelectModel implements ActionListener
SelectModel.SelectionTreeModel
selected
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
Constructor and Description |
---|
SelectChecboxModel(Select control,
Renderer render)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
protected Object |
getAssociatedValue(JComponent jc)
The associated value to the Label to the
JCheckBox . |
protected Label |
getLabelFromJComponent(JComponent jc)
Get the Label associated to the
JCheckBox . |
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 selections
|
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 SelectModel
JList
or a JTree
public void update()
update
in class SelectModel
protected Label getLabelFromJComponent(JComponent jc)
JCheckBox
.jc
- teh JCheckBox
.protected Object getAssociatedValue(JComponent jc)
JCheckBox
.jc
- the JCheckBox
.public boolean isValid()
JComponent
information provided by the user is valid
according to the FormControl
's definition.isValid
in class SelectModel
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
Copyright © 2018 universAAL Consortium. All rights reserved.