public abstract class SelectModel extends InputModel implements ListSelectionListener
Modifier and Type | Class and Description |
---|---|
protected class |
SelectModel.SelectionTreeModel
|
Modifier and Type | Field and Description |
---|---|
protected ArrayList |
selected
the selected items
|
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
Constructor and Description |
---|
SelectModel(Select control,
Renderer render)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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. |
protected void |
setSelected() |
void |
update()
Update the selections
|
void |
valueChanged(ListSelectionEvent e) |
getAlertString, isMandatory, isOfType, updateAsMissing
correspondsTo, getComponent, getLabelModel, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, needsLabel, needsPostNewLine, needsPreNewLine
protected ArrayList selected
public SelectModel(Select control, Renderer render)
control
- the FormControl
which to model.public JComponent getNewComponent()
JComponent
that displays this FormControl
's
information.getNewComponent
in class Model
JList
or a JTree
protected void setSelected()
public boolean isValid()
JComponent
information provided by the user is valid
according to the FormControl
's definition.public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
Copyright © 2018 universAAL Consortium. All rights reserved.