Class DateTimeChangeEvent
- java.lang.Object
-
- com.github.lgooddatepicker.zinternaltools.DateTimeChangeEvent
-
public class DateTimeChangeEvent extends java.lang.Object
DateTimeChangeEvent, An instance of this event class is passed to each registered DateTimeChangeListener, whenever the date or the time in a DateTimePicker has changed. Note that this class will always contain either one dateChangeEvent, or one timeChangeEvent, but never both events at the same time.
-
-
Constructor Summary
Constructors Constructor Description DateTimeChangeEvent(DateTimePicker source, DatePicker datePicker, TimePicker timePicker, DateChangeEvent dateChangeEvent, TimeChangeEvent timeChangeEvent)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateChangeEvent
getDateChangeEvent()
getDateChangeEvent, If the date changed, then this returns the date change event.DatePicker
getDatePicker()
getDatePicker, Returns a reference to the date picker component of the DateTimePicker.java.time.LocalDateTime
getNewDateTimePermissive()
getNewDateTimePermissive, This returns the new LocalDateTime value from the DateTimePicker, as it would be reported by getSource().getDateTimePermissive().java.time.LocalDateTime
getNewDateTimeStrict()
getNewDateTimeStrict, This returns the new LocalDateTime value from the DateTimePicker, as it would be reported by getSource().getDateTimeStrict().java.time.LocalDateTime
getOldDateTimePermissive()
getOldDateTimePermissive, This returns the old LocalDateTime value from the DateTimePicker, as it would have been reported by getSource().getDateTimePermissive(), before this change event occurred.java.time.LocalDateTime
getOldDateTimeStrict()
getOldDateTimeStrict, This returns the old LocalDateTime value from the DateTimePicker, as it would have been reported by getSource().getDateTimeStrict(), before this change event occurred.DateTimePicker
getSource()
getSource, Returns the DateTimePicker that generated the event.TimeChangeEvent
getTimeChangeEvent()
getTimeChangeEvent, If the time changed, then this returns the time change event.TimePicker
getTimePicker()
getTimePicker, Returns a reference to the time picker component of the DateTimePicker.
-
-
-
Constructor Detail
-
DateTimeChangeEvent
public DateTimeChangeEvent(DateTimePicker source, DatePicker datePicker, TimePicker timePicker, DateChangeEvent dateChangeEvent, TimeChangeEvent timeChangeEvent)
Constructor.
-
-
Method Detail
-
getSource
public DateTimePicker getSource()
getSource, Returns the DateTimePicker that generated the event.
-
getDatePicker
public DatePicker getDatePicker()
getDatePicker, Returns a reference to the date picker component of the DateTimePicker.
-
getTimePicker
public TimePicker getTimePicker()
getTimePicker, Returns a reference to the time picker component of the DateTimePicker.
-
getDateChangeEvent
public DateChangeEvent getDateChangeEvent()
getDateChangeEvent, If the date changed, then this returns the date change event. Otherwise this returns null.
-
getTimeChangeEvent
public TimeChangeEvent getTimeChangeEvent()
getTimeChangeEvent, If the time changed, then this returns the time change event. Otherwise this returns null.
-
getNewDateTimeStrict
public java.time.LocalDateTime getNewDateTimeStrict()
getNewDateTimeStrict, This returns the new LocalDateTime value from the DateTimePicker, as it would be reported by getSource().getDateTimeStrict(). For additional details, see DateTimePicker.getDateTimeStrict().
-
getNewDateTimePermissive
public java.time.LocalDateTime getNewDateTimePermissive()
getNewDateTimePermissive, This returns the new LocalDateTime value from the DateTimePicker, as it would be reported by getSource().getDateTimePermissive(). For additional details, see DateTimePicker.getDateTimePermissive().
-
getOldDateTimeStrict
public java.time.LocalDateTime getOldDateTimeStrict()
getOldDateTimeStrict, This returns the old LocalDateTime value from the DateTimePicker, as it would have been reported by getSource().getDateTimeStrict(), before this change event occurred. For additional details, see DateTimePicker.getDateTimeStrict().
-
getOldDateTimePermissive
public java.time.LocalDateTime getOldDateTimePermissive()
getOldDateTimePermissive, This returns the old LocalDateTime value from the DateTimePicker, as it would have been reported by getSource().getDateTimePermissive(), before this change event occurred. For additional details, see DateTimePicker.getDateTimePermissive().
-
-