org.universAAL.ui.handler.gui.swing.classic
Class RangeLAF

Package class diagram package RangeLAF
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.model.Model
      extended by org.universAAL.ui.handler.gui.swing.model.FormControl.InputModel
          extended by org.universAAL.ui.handler.gui.swing.model.FormControl.RangeModel
              extended by org.universAAL.ui.handler.gui.swing.classic.RangeLAF
All Implemented Interfaces:
EventListener, ChangeListener

public class RangeLAF
extends RangeModel

Author:
pabril

Field Summary
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.Model
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
 
Constructor Summary
RangeLAF(Range control, Renderer render)
          Constructor.
 
Method Summary
 JComponent getNewComponent()
          Ranges can yield a JSpinner if the specified range is less than a threshold, or it can also be JSlider.
 void updateAsMissing()
          Update the JComponent or the label to notiffy the the user Input is missing.
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.RangeModel
isValid, stateChanged
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.InputModel
getAlertString, isMandatory, isOfType
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.Model
correspondsTo, getComponent, getLabelModel, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, needsLabel, needsPostNewLine, needsPreNewLine, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeLAF

public RangeLAF(Range control,
                Renderer render)
Constructor.

Parameters:
control - the Range which to model.
Method Detail

getNewComponent

public JComponent getNewComponent()
Description copied from class: RangeModel
Ranges can yield a JSpinner if the specified range is less than a threshold, or it can also be JSlider.

Overrides:
getNewComponent in class RangeModel
Returns:
a JComponent initialised with the model's information,

updateAsMissing

public void updateAsMissing()
Description copied from class: InputModel
Update the JComponent or the label to notiffy the the user Input is missing.

Specified by:
updateAsMissing in class InputModel


Copyright © 2014 universAAL Consortium. All Rights Reserved.