
public abstract class RangeModel extends InputModel implements ChangeListener
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine| Constructor and Description |
|---|
RangeModel(Range control,
Renderer render)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
JComponent |
getNewComponent()
|
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 range is change, the input will be stored
|
getAlertString, isMandatory, isOfType, updateAsMissingcorrespondsTo, getComponent, getLabelModel, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, needsLabel, needsPostNewLine, needsPreNewLine, updatepublic JComponent getNewComponent()
JSpinner if the specified range is less than a
threshold, or it can also be JSlider.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 ChangeListenerCopyright © 2018 universAAL Consortium. All rights reserved.