Class DateChangeEvent


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

    • DateChangeEvent

      protected DateChangeEvent(Date value)
      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 handlers
      oldValue - the oldValue, may be null
      newValue - the newValue, may be null
    • getValue

      public Date getValue()
      Description copied from class: ValueChangeEvent
      Gets the value.
      Overrides:
      getValue in class ValueChangeEvent<Date>
      Returns:
      the value