Class DateChangeEvent


  • class DateChangeEvent
    extends ValueChangeEvent<java.util.Date>
    Creates a new value every time a date is accessed.
    • Constructor Detail

      • DateChangeEvent

        protected DateChangeEvent​(java.util.Date value)
        Creates a new date value change event.
        Parameters:
        value - the value
    • Method Detail

      • 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 handlers
        oldValue - the oldValue, may be null
        newValue - the newValue, may be null