Class CalendarSelectionEvent
- java.lang.Object
-
- com.github.lgooddatepicker.zinternaltools.CalendarSelectionEvent
-
public class CalendarSelectionEvent extends java.lang.Object
CalendarSelectionEvent, An instance of this event class is passed to each registered CalendarSelectionListener, each time that a date is selected in a CalendarPanel.
-
-
Constructor Summary
Constructors Constructor Description CalendarSelectionEvent(CalendarPanel source, java.time.LocalDate newDate, java.time.LocalDate oldDate)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDate
getNewDate()
getNewDate, Returns the new selected date.java.time.LocalDate
getOldDate()
getOldDate, Returns the old selected date.CalendarPanel
getSource()
getSource, Returns the calendar panel that generated the event.boolean
isDuplicate()
isDuplicate, Returns true if the new date is the same as the old date, or if both values are null.
-
-
-
Constructor Detail
-
CalendarSelectionEvent
public CalendarSelectionEvent(CalendarPanel source, java.time.LocalDate newDate, java.time.LocalDate oldDate)
Constructor.
-
-
Method Detail
-
getSource
public CalendarPanel getSource()
getSource, Returns the calendar panel that generated the event.
-
getNewDate
public java.time.LocalDate getNewDate()
getNewDate, Returns the new selected date.
-
getOldDate
public java.time.LocalDate getOldDate()
getOldDate, Returns the old selected date.
-
isDuplicate
public boolean isDuplicate()
isDuplicate, Returns true if the new date is the same as the old date, or if both values are null. Otherwise returns false.
-
-