
public abstract class InputFieldModel extends InputModel implements ChangeListener, CaretListener, ActionListener
InputFieldfc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine| Constructor and Description |
|---|
InputFieldModel(InputField control,
Renderer render)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e)
Input will be stored each time the user changes the status of an Input
|
void |
caretUpdate(CaretEvent e)
Input will be stored each time the user types something in the text
field.
|
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
|
boolean |
isValid()
Test if the
JComponent information provided by the user is valid
according to the FormControl's definition. |
void |
stateChanged(ChangeEvent e)
When a checkbox is pressed the input will be stored.
|
void |
update()
Updating the InputField
|
getAlertString, isMandatory, isOfType, updateAsMissingcorrespondsTo, getComponent, getLabelModel, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, needsLabel, needsPostNewLine, needsPreNewLinepublic InputFieldModel(InputField control, Renderer render)
control - de InputField which to model.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 ModelJComponent initialised with the model's information,public boolean isValid()
JComponent information provided by the user is valid
according to the FormControl's definition.public void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenere - the ChangeEvent to listen to.public void caretUpdate(CaretEvent e)
caretUpdate in interface CaretListenere - the CaretEvent to listen to.public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerCopyright © 2018 universAAL Consortium. All rights reserved.