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.
        Parameters:
        valueModel - The component value model.
        Throws:
        java.lang.NullPointerException - if the given value model is null.
    • Method Detail

      • getDateControl

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

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

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

        public boolean hasTime()
        Returns:
        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.