org.universAAL.ui.handler.gui.swing.defaultLookAndFeel
Class TextAreaLAF

Package class diagram package TextAreaLAF
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.TextAreaModel
              extended by org.universAAL.ui.handler.gui.swing.defaultLookAndFeel.TextAreaLAF
All Implemented Interfaces:
EventListener, CaretListener

public class TextAreaLAF
extends TextAreaModel

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
TextAreaLAF(TextArea control, Renderer render)
          Constructor.
 
Method Summary
 JComponent getNewComponent()
          generate the JComponent that displays this FormControl's information.
 void update()
          Adds all the needed information to the rendered component (in Model view).
 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.TextAreaModel
caretUpdate, isValid
 
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

TextAreaLAF

public TextAreaLAF(TextArea control,
                   Renderer render)
Constructor.

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

update

public void update()
Adds all the needed information to the rendered component (in Model view). In LAF view, it add/updates all LAF components.

Overrides:
update in class TextAreaModel

getNewComponent

public JComponent getNewComponent()
generate the JComponent that displays this FormControl's information.

Overrides:
getNewComponent in class TextAreaModel
Returns:
a JTextArea.

updateAsMissing

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

Specified by:
updateAsMissing in class InputModel


Copyright © 2014 universAAL Consortium. All Rights Reserved.