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

Package class diagram package SimpleOutputModel
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.model.Model
      extended by org.universAAL.ui.handler.gui.swing.model.FormControl.OutputModel
          extended by org.universAAL.ui.handler.gui.swing.model.FormControl.SimpleOutputModel
Direct Known Subclasses:
SimpleOutputLAF, SimpleOutputLAF, SimpleOutputLAF

public class SimpleOutputModel
extends OutputModel

Author:
amedrano
See Also:
SimpleOutput

Field Summary
protected static int TOO_LONG
          threshold for selecting between a JTextArea and a JTextField
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.Model
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
 
Constructor Summary
SimpleOutputModel(SimpleOutput control, Renderer render)
          Constructor.
 
Method Summary
 JComponent getNewComponent()
          generate the JComponent that displays this FormControl's information.
 void update()
          Updating the JComponent with info
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.OutputModel
isValid
 
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
 

Field Detail

TOO_LONG

protected static final int TOO_LONG
threshold for selecting between a JTextArea and a JTextField

See Also:
Constant Field Values
Constructor Detail

SimpleOutputModel

public SimpleOutputModel(SimpleOutput control,
                         Renderer render)
Constructor.

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

getNewComponent

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

Specified by:
getNewComponent in class Model
Returns:
the representation for SimpleOutput can either be all of them are uneditable by the user.

update

public void update()
Updating the JComponent with info

Overrides:
update in class Model


Copyright © 2014 universAAL Consortium. All Rights Reserved.