Class DateTimeControl

    • Field Detail

      • updateDateControlsPropertyChangeListener

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

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

      • DateTimeControl

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

        public DateTimeControl​(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

      • getDateControl

        protected TextControl<java.util.Date> getDateControl()
        The control containing the date.
      • getCalendarButton

        protected ToolButton getCalendarButton()
        The button allowing selection of the date.
      • getTimeControl

        public TextControl<java.util.Date> getTimeControl()
        The control containing the date.
      • hasTime

        public boolean hasTime()
        Whether the current value represented in the control has a specified time component.
      • updateDateControls

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