org.universAAL.ui.handler.gui.swing.model.FormControl
Class Select1Model

Package class diagram package Select1Model
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.model.Model
      extended by org.universAAL.ui.handler.gui.swing.model.FormControl.InputModel
          extended by org.universAAL.ui.handler.gui.swing.model.FormControl.SelectModel
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.SelectModel
SelectModel.SelectionTreeModel
 
Field Summary
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.SelectModel
selected
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.Model
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
 
Constructor Summary
Select1Model(Select1 control, Renderer render)
          constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          
 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
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.SelectModel
setSelected, valueChanged
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.InputModel
getAlertString, isMandatory, isOfType, updateAsMissing
 
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
 

Constructor Detail

Select1Model

public Select1Model(Select1 control,
                    Renderer render)
constructor.

Parameters:
control - the FormControl which this model represents.
Method Detail

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.