org.universAAL.ui.gui.swing.bluesteelLAF
Class InputFieldLAF

Package class diagram package InputFieldLAF
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.InputFieldModel
              extended by org.universAAL.ui.gui.swing.bluesteelLAF.InputFieldLAF
All Implemented Interfaces:
ActionListener, EventListener, CaretListener, ChangeListener

public class InputFieldLAF
extends InputFieldModel

Author:
pabril

Field Summary
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.Model
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
 
Constructor Summary
InputFieldLAF(InputField control, Renderer render)
          Constructor
 
Method Summary
 void actionPerformed(ActionEvent e)
          
 JComponent getNewComponent()
          the representation for InputField can either be a JCheckBox if the FormControl.getValue() is a boolean type a JTextField if the FormControl.getValue() is a String and not secret a JPasswordField if the FormControl.getValue() is String and it is secret a ??
 void update()
          Updating the InputField
 void updateAsMissing()
          Update the JComponent or the label to notiffy the the user Input is missing.
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.InputFieldModel
caretUpdate, isValid, stateChanged
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.InputModel
getAlertString, isMandatory, isOfType
 
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

InputFieldLAF

public InputFieldLAF(InputField control,
                     Renderer render)
Constructor

Parameters:
control - the InputField which to model.
Method Detail

update

public void update()
Updating the InputField

Overrides:
update in class InputFieldModel

getNewComponent

public JComponent getNewComponent()
the representation for InputField can either be

Overrides:
getNewComponent in class InputFieldModel
Returns:
a JComponent initialised with the model's information,

updateAsMissing

public void updateAsMissing()
Description copied from class: InputModel
Update the JComponent or the label to notiffy the the user Input is missing.

Specified by:
updateAsMissing in class InputModel

actionPerformed

public void actionPerformed(ActionEvent e)

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class InputFieldModel


Copyright © 2014 universAAL Consortium. All Rights Reserved.