org.universAAL.ui.handler.gui.swing.model.FormControl
Class TextAreaModel
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.TextAreaModel
- All Implemented Interfaces:
- EventListener, CaretListener
- Direct Known Subclasses:
- TextAreaLAF, TextAreaLAF, TextAreaLAF
public abstract class TextAreaModel
- extends InputModel
- implements CaretListener
- Author:
- amedrano
- See Also:
TextArea
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 |
TextAreaModel
public TextAreaModel(TextArea control,
Renderer render)
- Constructor.
- Parameters:
control
- the FormControl
which to model.
getNewComponent
public JComponent getNewComponent()
- generate the
JComponent
that displays this FormControl
's
information.
- Specified by:
getNewComponent
in class Model
- Returns:
- a
JTextArea
.
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 Model
isValid
public boolean isValid()
- Test if the
JComponent
information provided by the user is valid
according to the FormControl
's definition.
- Specified by:
isValid
in class Model
- Returns:
- true if the data has passed every restriction
caretUpdate
public void caretUpdate(CaretEvent e)
-
- Specified by:
caretUpdate
in interface CaretListener
Copyright © 2014 universAAL Consortium. All Rights Reserved.