Class DateChangeEvent


  • public class DateChangeEvent
    extends java.lang.Object
    DateChangeEvent, An instance of this event class is passed to each registered DateChangeListener, each time that the date in a date picker changes.
    • Constructor Summary

      Constructors 
      Constructor Description
      DateChangeEvent​(DatePicker source, java.time.LocalDate oldDate, java.time.LocalDate newDate)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.LocalDate getNewDate()
      getNewDate, Returns the new value of the DatePicker date.
      java.time.LocalDate getOldDate()
      getOldDate, Returns the previous value of the DatePicker date.
      DatePicker getSource()
      getSource, Returns the date picker that generated the event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DateChangeEvent

        public DateChangeEvent​(DatePicker source,
                               java.time.LocalDate oldDate,
                               java.time.LocalDate newDate)
        Constructor.
    • Method Detail

      • getSource

        public DatePicker getSource()
        getSource, Returns the date picker that generated the event.
      • getOldDate

        public java.time.LocalDate getOldDate()
        getOldDate, Returns the previous value of the DatePicker date. This is the value that existed before the date was changed.
      • getNewDate

        public java.time.LocalDate getNewDate()
        getNewDate, Returns the new value of the DatePicker date. This is the value that currently exists. (Put in another way, this is the value that exists after the date was changed.)