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 |
---|---|
void |
actionPerformed(ActionEvent e) |
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. |
caretUpdate, isValid, stateChanged
getAlertString, isMandatory, isOfType
correspondsTo, getComponent, getLabelModel, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, needsLabel, needsPostNewLine, needsPreNewLine
public InputFieldLAF(InputField control, Renderer render)
control
- the InputField
which to model.public void update()
update
in class InputFieldModel
public JComponent getNewComponent()
JCheckBox
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 InputFieldModel
JComponent
initialised with the model's information,public void updateAsMissing()
InputModel
JComponent
or the label to notiffy the the user Input
is missing.updateAsMissing
in class InputModel
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class InputFieldModel
Copyright © 2018 universAAL Consortium. All rights reserved.