public class SimpleOutputLAF extends SimpleOutputModel
TOO_LONG
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
Constructor and Description |
---|
SimpleOutputLAF(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
public SimpleOutputLAF(SimpleOutput control, Renderer render)
control
- the SimpleOutput
which to model.public JComponent getNewComponent()
JComponent
that displays this FormControl
's
information.getNewComponent
in class SimpleOutputModel
SimpleOutput
can either be
JCheckBox
if the SimpleOutput.getContent()
is a boolean type
JLabel
if the SimpleOutput.getContent()
is
a String, it is not SimpleOutputModel.TOO_LONG
, and it
has no label.
JTextField
if the SimpleOutput.getContent()
is a String and it is not SimpleOutputModel.TOO_LONG
JTextArea
if the SimpleOutput.getContent()
is String and it is SimpleOutputModel.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 infoupdate
in class SimpleOutputModel
Copyright © 2018 universAAL Consortium. All rights reserved.