org.universAAL.ui.handler.gui.swing.model.FormControl
Class Select1Model
java.lang.Object
org.universAAL.ui.handler.gui.swing.model.Model
org.universAAL.ui.handler.gui.swing.model.FormControl.InputModel
org.universAAL.ui.handler.gui.swing.model.FormControl.SelectModel
org.universAAL.ui.handler.gui.swing.model.FormControl.Select1Model
- All Implemented Interfaces:
- ActionListener, EventListener, ListSelectionListener
- Direct Known Subclasses:
- Select1LAF, Select1LAF, Select1LAF, Select1RadiobuttonModel
public abstract class Select1Model
- extends SelectModel
- implements ActionListener
- Author:
- amedrano
- See Also:
Select1
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.SelectModel |
selected |
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.Model |
correspondsTo, getComponent, getLabelModel, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, needsLabel, needsPostNewLine, needsPreNewLine |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Select1Model
public Select1Model(Select1 control,
Renderer render)
- constructor.
- Parameters:
control
- the FormControl
which this model represents.
getNewComponent
public JComponent getNewComponent()
- generate the
JComponent
that displays this FormControl
's
information.
- Overrides:
getNewComponent
in class SelectModel
- Returns:
- either a
JTree
or a JComboBox
update
public void update()
- Update the
JComponent
- Overrides:
update
in class SelectModel
isValid
public boolean isValid()
- Test if the
JComponent
information provided by the user is valid
according to the FormControl
's definition.
- Overrides:
isValid
in class SelectModel
- Returns:
- true if the data has passed every restriction
actionPerformed
public void actionPerformed(ActionEvent e)
-
- Specified by:
actionPerformed
in interface ActionListener
Copyright © 2014 universAAL Consortium. All Rights Reserved.