Class DateTimeFieldsControl

    • Field Detail

      • yearPropertyChangeListener

        protected final com.globalmentor.beans.GenericPropertyChangeListener<java.lang.Integer> yearPropertyChangeListener
        The property change listener that updates the visible dates if the year is different than the last one.
      • updateDateControlsPropertyChangeListener

        protected final com.globalmentor.beans.GenericPropertyChangeListener<?> updateDateControlsPropertyChangeListener
        The property change listener that updates the date controls when a property changes.
    • Constructor Detail

      • DateTimeFieldsControl

        public DateTimeFieldsControl()
        Default constructor with a default data model.
      • DateTimeFieldsControl

        public DateTimeFieldsControl​(ValueModel<java.util.Date> valueModel)
        Value model constructor.
        valueModel - The component value model.
        java.lang.NullPointerException - if the given value model is null.
    • Method Detail

      • getMonthListControl

        protected ListControl<java.util.Date> getMonthListControl()
        The list control containing the months.
      • getYearControl

        protected ValueControl<java.lang.Integer> getYearControl()
        The control containing the year.
      • getDayControl

        protected TextControl<java.lang.Integer> getDayControl()
        The control containing the day.
      • getHourControl

        protected TextControl<java.lang.Integer> getHourControl()
        The control containing the hour.
      • getMinuteControl

        protected TextControl<java.lang.Integer> getMinuteControl()
        The control containing the minutes.
      • getSecondControl

        protected TextControl<java.lang.Integer> getSecondControl()
        The control containing the day.
      • getMillisecondControl

        protected TextControl<java.lang.Integer> getMillisecondControl()
        The control containing the milliseconds.
      • updateYearControl

        protected void updateYearControl()
        Updates the year control by removing any old year control from the component and adding a new year control. If the model used by the calendar control uses a RangeValidator with a date range of less than 100 years, a drop-down list will be used for the year control. Otherwise, a text input will be used for year selection.
      • updateDateControls

        protected void updateDateControls()
        Updates the controls representing the date. This implementation updates the calendars on the calendar panel.