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

Package class diagram package InputModel
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.model.Model
      extended by org.universAAL.ui.handler.gui.swing.model.FormControl.InputModel
Direct Known Subclasses:
InputFieldModel, RangeModel, SelectModel, TextAreaModel

public abstract class InputModel
extends Model

Input Control is an abstract Class as such it should not be Instantiated an so there is no rendering.

Author:
amedrano
See Also:
Input

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
InputModel(Input control, Renderer render)
          Constructor.
 
Method Summary
 String getAlertString()
          Get Alert string, to show to user if she/he has forgotten this Input
 boolean isMandatory()
          Check if the Input of Mandatory completion.
protected  boolean isOfType(Class c)
          Checks if the value will be accepted as class c.
abstract  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.Model
correspondsTo, getComponent, getLabelModel, getNewComponent, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, isValid, needsLabel, needsPostNewLine, needsPreNewLine, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputModel

public InputModel(Input control,
                  Renderer render)
Constructor.

Parameters:
control - the Input FormControl to model.
Method Detail

isMandatory

public boolean isMandatory()
Check if the Input of Mandatory completion.

Returns:
true if user must complete, false otherwise.

getAlertString

public String getAlertString()
Get Alert string, to show to user if she/he has forgotten this Input


updateAsMissing

public abstract void updateAsMissing()
Update the JComponent or the label to notiffy the the user Input is missing.


isOfType

protected boolean isOfType(Class c)
Checks if the value will be accepted as class c.

Parameters:
c -
Returns:


Copyright © 2014 universAAL Consortium. All Rights Reserved.