Class DateTimeEditorModel

  • All Implemented Interfaces:
    Serializable, ModelToBean

    public class DateTimeEditorModel
    extends org.jdesktop.beans.AbstractSerializableBean
    implements ModelToBean
    Created on 9/9/14.
    Since:
    2.12
    Author:
    Tony Chemit - chemit@codelutin.com
    See Also:
    Serialized Form
    • Field Detail

      • bean

        protected Serializable bean
        Optional bean where to push back dates.
      • propertyDayDate

        protected String propertyDayDate
        Optional bean property where to push back the day date.
      • propertyTimeDate

        protected String propertyTimeDate
        Optional bean property where to push back the time date.
      • propertyDate

        protected String propertyDate
        Optional bean property where to push back the full date.
      • dateEditable

        protected boolean dateEditable
        Is date editable ?
      • timeEditable

        protected boolean timeEditable
        Is time editable ?
      • date

        protected Date date
        Full date (date + time)
      • valueIsAdjusting

        protected boolean valueIsAdjusting
        To stop propagate events when we are doing some modifications on the model.
      • calendar

        protected final Calendar calendar
    • Constructor Detail

      • DateTimeEditorModel

        public DateTimeEditorModel()
    • Method Detail

      • getPropertyDayDate

        public String getPropertyDayDate()
      • setPropertyDayDate

        public void setPropertyDayDate​(String propertyDayDate)
      • getPropertyTimeDate

        public String getPropertyTimeDate()
      • setPropertyTimeDate

        public void setPropertyTimeDate​(String propertyTimeDate)
      • getPropertyDate

        public String getPropertyDate()
      • setPropertyDate

        public void setPropertyDate​(String propertyDate)
      • isDateEditable

        public boolean isDateEditable()
      • setDateEditable

        public void setDateEditable​(boolean dateEditable)
      • isTimeEditable

        public boolean isTimeEditable()
      • setTimeEditable

        public void setTimeEditable​(boolean timeEditable)
      • isValueIsAdjusting

        public boolean isValueIsAdjusting()
      • setValueIsAdjusting

        public void setValueIsAdjusting​(boolean valueIsAdjusting)
      • setHour

        public void setHour​(Integer hour)
      • setMinute

        public void setMinute​(Integer minute)
      • getTimeInMinutes

        public Integer getTimeInMinutes()
      • setTimeInMinutes

        public void setTimeInMinutes​(Integer time)
      • getTimeDate

        public Date getTimeDate()
      • setTimeDate

        public void setTimeDate​(Date timeDate)
      • getDayDate

        public Date getDayDate()
      • setDayDate

        public void setDayDate​(Date dayDate)
      • getDate

        public Date getDate()
      • setDate

        public void setDate​(Date date)
      • getMinute

        protected Integer getMinute​(Date date)
      • fireTimeDate

        protected void fireTimeDate​(Date oldDate)
      • fireTimeInMinutes

        protected void fireTimeInMinutes​(Integer oldDate)
      • fireDayDate

        protected void fireDayDate​(Date oldDate)
      • fireDate

        protected void fireDate​(Date oldDate)
      • fireValueIsAdjusting

        protected void fireValueIsAdjusting​(boolean oldValue)
      • canUpdateBeanValuePredicate

        protected com.google.common.base.Predicate<DateTimeEditorModel> canUpdateBeanValuePredicate()