Class DateChangeEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<ValueChangeHandler<Date>>
com.google.gwt.event.shared.GwtEvent<ValueChangeHandler<Date>>
com.google.gwt.event.logical.shared.ValueChangeEvent<Date>
com.google.gwt.user.datepicker.client.DateChangeEvent
Creates a new value every time a date is accessed.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
Constructor Summary
ModifierConstructorDescriptionprotected
DateChangeEvent
(Date value) Creates a new date value change event. -
Method Summary
Modifier and TypeMethodDescriptionstatic <S extends HasValueChangeHandlers<Date> & HasHandlers>
voidfireIfNotEqualDates
(S source, Date oldValue, Date newValue) Fires value change event if the old value is not equal to the new value.getValue()
Gets the value.Methods inherited from class com.google.gwt.event.logical.shared.ValueChangeEvent
dispatch, fire, fireIfNotEqual, getAssociatedType, getType, shouldFire, toDebugString
-
Constructor Details
-
DateChangeEvent
Creates a new date value change event.- Parameters:
value
- the value
-
-
Method Details
-
fireIfNotEqualDates
public static <S extends HasValueChangeHandlers<Date> & HasHandlers> void fireIfNotEqualDates(S source, Date oldValue, Date newValue) Fires value change event if the old value is not equal to the new value. Use this call rather than making the decision to short circuit yourself for safe handling of null.- Type Parameters:
S
- The event source- Parameters:
source
- the source of the handlersoldValue
- the oldValue, may be nullnewValue
- the newValue, may be null
-
getValue
Description copied from class:ValueChangeEvent
Gets the value.- Overrides:
getValue
in classValueChangeEvent<Date>
- Returns:
- the value
-