public class SimpleOutputModel extends OutputModel
SimpleOutput
Modifier and Type | Field and Description |
---|---|
protected static int |
TOO_LONG
threshold for selecting between a
JTextArea and a
JTextField |
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
Constructor and Description |
---|
SimpleOutputModel(SimpleOutput control,
Renderer render)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
JComponent |
getNewComponent()
generate the
JComponent that displays this FormControl 's
information. |
void |
update()
Updating the
JComponent with info |
isValid
correspondsTo, getComponent, getLabelModel, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, needsLabel, needsPostNewLine, needsPreNewLine
protected static final int TOO_LONG
JTextArea
and a
JTextField
public SimpleOutputModel(SimpleOutput control, Renderer render)
control
- the FormControl
which to model.public JComponent getNewComponent()
JComponent
that displays this FormControl
's
information.getNewComponent
in class Model
SimpleOutput
can either be
JCheckBox
if the SimpleOutput.getContent()
is a boolean type
JLabel
if the SimpleOutput.getContent()
is
a String, it is not TOO_LONG
, and it
has no label.
JTextField
if the SimpleOutput.getContent()
is a String and it is not TOO_LONG
JTextArea
if the SimpleOutput.getContent()
is String and it is TOO_LONG
SimpleOutput.getContent()
is a
XMLGregorianCalendar
SimpleOutput.getContent()
is a Duration
SimpleOutput.getContent()
is a Integer
SimpleOutput.getContent()
is a Long
SimpleOutput.getContent()
is a Float
SimpleOutput.getContent()
is a Double
JTextField
if the SimpleOutput.getContent()
is a Locale
public void update()
JComponent
with infoCopyright © 2018 universAAL Consortium. All rights reserved.