Class YearMonthChangeEvent
java.lang.Object
com.github.lgooddatepicker.zinternaltools.YearMonthChangeEvent
YearMonthChangeEvent, An instance of this event class is passed to each registered
CalendarListener, each time that the YearMonth may have been changed in a CalendarPanel.
Developers should call isDuplicate() to find out if the new YearMonth, is the same or different
from the old YearMonth.
-
Constructor Summary
ConstructorsConstructorDescriptionYearMonthChangeEvent
(CalendarPanel source, YearMonth newYearMonth, YearMonth oldYearMonth) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetNewYearMonth, Returns the new YearMonth.getOldYearMonth, Returns the old YearMonth.getSource, Returns the calendar panel that generated the event.boolean
isDuplicate, Returns true if the new YearMonth is the same as the old YearMonth.
-
Constructor Details
-
YearMonthChangeEvent
Constructor.
-
-
Method Details
-
getSource
getSource, Returns the calendar panel that generated the event. -
getNewYearMonth
getNewYearMonth, Returns the new YearMonth. This will never return null. -
getOldYearMonth
getOldYearMonth, Returns the old YearMonth. This will never return null. -
isDuplicate
public boolean isDuplicate()isDuplicate, Returns true if the new YearMonth is the same as the old YearMonth. Otherwise returns false.
-