org.cruxframework.crux.widgets.client.datepicker
Class GWTOverriddenDateChangeEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<com.google.gwt.event.logical.shared.ValueChangeHandler<T>>
com.google.gwt.event.logical.shared.ValueChangeEvent<Date>
org.cruxframework.crux.widgets.client.datepicker.GWTOverriddenDateChangeEvent
public class GWTOverriddenDateChangeEvent
- extends com.google.gwt.event.logical.shared.ValueChangeEvent<Date>
Creates a new value every time a date is accessed.
| Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
com.google.gwt.event.shared.GwtEvent.Type<H> |
|
Method Summary |
static
<S extends com.google.gwt.event.logical.shared.HasValueChangeHandlers<Date> & com.google.gwt.event.shared.HasHandlers>
void |
|
fireIfNotEqualDates(S source,
Date oldValue,
Date newValue)
Fires value change event if the old value is not equal to the new value. |
Date |
getValue()
|
| Methods inherited from class com.google.gwt.event.logical.shared.ValueChangeEvent |
dispatch, fire, fireIfNotEqual, getAssociatedType, getType, shouldFire, toDebugString |
| Methods inherited from class com.google.gwt.event.shared.GwtEvent |
assertLive, getSource, isLive, kill, revive |
| Methods inherited from class com.google.web.bindery.event.shared.Event |
setSource, toString |
GWTOverriddenDateChangeEvent
protected GWTOverriddenDateChangeEvent(Date value)
- Creates a new date value change event.
- Parameters:
value - the value
fireIfNotEqualDates
public static <S extends com.google.gwt.event.logical.shared.HasValueChangeHandlers<Date> & com.google.gwt.event.shared.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
public Date getValue()
- Overrides:
getValue in class com.google.gwt.event.logical.shared.ValueChangeEvent<Date>
Copyright © 2015. All rights reserved.