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, 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 -
      aMaxValue -
      aIsEnabled -
      aObservable -
      aFormComponentParameterMap -
    • FWYearSubComponent

      public FWYearSubComponent(int aMinValue, int aMaxValue, int aDefaultValue, boolean aIsEnabled, 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 -
      aMaxValue -
      aDefaultValue -
      aIsEnabled -
      aObservable -
      aFormComponentParameterMap -
  • Method Details