Class FWYearSubComponent

All Implemented Interfaces:
FocusListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener

public class FWYearSubComponent extends FWAbstractFormSubComponent implements ChangeListener, FocusListener
An FWYearSubComponent lets the user select a year between a minimum and a maximum from a JSpinner.

Whenever the Spinner is changed, the component fires a stateChanged event. The currently selected year may be obtained or set at any time using getValue() and setValue() respectively.

Author:
ckunze
See Also:
  • Constructor Details

    • FWYearSubComponent

      public FWYearSubComponent(int aMinValue, int aMaxValue, boolean aIsEnabled, net.simplace.core.FWObservable aObservable, Map<String,Object> aFormComponentParameterMap)
      Constructs a FWYearSubComponent that lets the user choose a Year between aMinValue and aMaxValue where aMinValue is preselected.
      Parameters:
      aMinValue - first selectable year
      aMaxValue - last selectable year
      aIsEnabled - true if the spinner is enabled
      aObservable - parameters of the functionality
      aFormComponentParameterMap - parameters of the containing form component
    • FWYearSubComponent

      public FWYearSubComponent(int aMinValue, int aMaxValue, int aDefaultValue, boolean aIsEnabled, net.simplace.core.FWObservable aObservable, Map<String,Object> aFormComponentParameterMap)
      Constructs a FWYearSubComponent that lets the user choose a Year between aMinValue and aMaxValue where aDefaultValue is preselected.
      Parameters:
      aMinValue - first selectable year
      aMaxValue - last selectable year
      aDefaultValue - year selected initially
      aIsEnabled - true if the spinner is enabled
      aObservable - parameters of the functionality
      aFormComponentParameterMap - parameters of the containing form component
  • Method Details