public class InputFieldLAF extends InputFieldModel
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine| Constructor and Description |
|---|
InputFieldLAF(InputField control,
Renderer render)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
JComponent |
getNewComponent()
the representation for InputField can either be
a
JCheckBox if the FormControl.getValue() is a boolean
type
a JTextField if the FormControl.getValue() is a String
and not secret
a JPasswordField if the FormControl.getValue() is
String and it is secret
a ?? if the FormControl.getValue() is a XMLGregorianCalendar
a ?? if the FormControl.getValue() is a Duration
a ?? if the FormControl.getValue() is a Integer
a ?? if the FormControl.getValue() is a Long
a ?? if the FormControl.getValue() is a Float
a ?? if the FormControl.getValue() is a Double
a JComboBox if the FormControl.getValue() is a Locale
|
void |
update()
Updating the InputField
|
void |
updateAsMissing()
Update the
JComponent or the label to notiffy the the user Input
is missing. |
actionPerformed, caretUpdate, isValid, stateChangedgetAlertString, isMandatory, isOfTypecorrespondsTo, getComponent, getLabelModel, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, needsLabel, needsPostNewLine, needsPreNewLinepublic InputFieldLAF(InputField control, Renderer render)
control - the InputField which to model.public JComponent getNewComponent()
InputFieldModelJCheckBox if the FormControl.getValue() is a boolean
type
JTextField if the FormControl.getValue() is a String
and not secret
JPasswordField if the FormControl.getValue() is
String and it is secret
FormControl.getValue() is a XMLGregorianCalendar
FormControl.getValue() is a Duration
FormControl.getValue() is a Integer
FormControl.getValue() is a Long
FormControl.getValue() is a Float
FormControl.getValue() is a Double
JComboBox if the FormControl.getValue() is a Locale
getNewComponent in class InputFieldModelJComponent initialised with the model's information,public void update()
InputFieldModelupdate in class InputFieldModelpublic void updateAsMissing()
InputModelJComponent or the label to notiffy the the user Input
is missing.updateAsMissing in class InputModelCopyright © 2018 universAAL Consortium. All rights reserved.