/** * 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. * * @param <S> The event source * @param source the source of the handlers * @param oldValue the oldValue, may be null * @param newValue the newValue, may be null */ public static <S extends HasValueChangeHandlers<Date> & HasHandlers> void fireIfNotEqualDates( S source, Date oldValue, Date newValue) { if (ValueChangeEvent.shouldFire(source, oldValue, newValue)) { source.fireEvent(new DateChangeEvent(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. * * @param <S> The event source * @param source the source of the handlers * @param oldValue the oldValue, may be null * @param newValue the newValue, may be null */ public static <S extends HasValueChangeHandlers<Date> & HasHandlers> void fireIfNotEqualDates( S source, Date oldValue, Date newValue) { if (ValueChangeEvent.shouldFire(source, oldValue, newValue)) { source.fireEvent(new DateChangeEvent(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. * * @param <S> The event source * @param source the source of the handlers * @param oldValue the oldValue, may be null * @param newValue the newValue, may be null */ public static <S extends HasValueChangeHandlers<Date> & HasHandlers> void fireIfNotEqualDates( S source, Date oldValue, Date newValue) { if (ValueChangeEvent.shouldFire(source, oldValue, newValue)) { source.fireEvent(new DateChangeEvent(newValue)); } }