com.google.gwt.user.datepicker.client
Class DateChangeEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<ValueChangeHandler<T>>
com.google.gwt.event.logical.shared.ValueChangeEvent<java.util.Date>
com.google.gwt.user.datepicker.client.DateChangeEvent
class DateChangeEvent
- extends ValueChangeEvent<java.util.Date>
Creates a new value every time a date is accessed.
Constructor Summary |
protected |
DateChangeEvent(java.util.Date value)
Creates a new date value change event. |
Method Summary |
static
|
fireIfNotEqualDates(S source,
java.util.Date oldValue,
java.util.Date newValue)
Fires value change event if the old value is not equal to the new value. |
java.util.Date |
getValue()
Gets the value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DateChangeEvent
protected DateChangeEvent(java.util.Date value)
- Creates a new date value change event.
- Parameters:
value
- the value
fireIfNotEqualDates
public static <S extends HasValueChangeHandlers<java.util.Date> & HasHandlers> void fireIfNotEqualDates(S source,
java.util.Date oldValue,
java.util.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
public java.util.Date getValue()
- Description copied from class:
ValueChangeEvent
- Gets the value.
- Overrides:
getValue
in class ValueChangeEvent<java.util.Date>
- Returns:
- the value