T - the value about to be changedpublic class ValueChangeEvent<T> extends GwtEvent<ValueChangeHandler<T>>
GwtEvent.Type<H>| Modifier | Constructor and Description | 
|---|---|
| protected  | ValueChangeEvent(T value)Creates a value change event. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | dispatch(ValueChangeHandler<T> handler)Should only be called by  HandlerManager. | 
| static <T> void | fire(HasValueChangeHandlers<T> source,
    T value)Fires a value change event on all registered handlers in the handler
 manager. | 
| static <T> void | fireIfNotEqual(HasValueChangeHandlers<T> source,
              T oldValue,
              T newValue)Fires value change event if the old value is not equal to the new value. | 
| GwtEvent.Type<ValueChangeHandler<T>> | getAssociatedType()Returns the  Event.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class. | 
| static GwtEvent.Type<ValueChangeHandler<?>> | getType()Gets the type associated with this event. | 
| T | getValue()Gets the value. | 
| protected static <T> boolean | shouldFire(HasValueChangeHandlers<T> source,
          T oldValue,
          T newValue)Convenience method to allow subtypes to know when they should fire a value
 change event in a null-safe manner. | 
| java.lang.String | toDebugString()This is a method used primarily for debugging. | 
protected ValueChangeEvent(T value)
value - the valuepublic static <T> void fire(HasValueChangeHandlers<T> source, T value)
T - the old value typesource - the source of the handlersvalue - the valuepublic static <T> void fireIfNotEqual(HasValueChangeHandlers<T> source, T oldValue, T newValue)
T - the old value typesource - the source of the handlersoldValue - the oldValue, may be nullnewValue - the newValue, may be nullpublic static GwtEvent.Type<ValueChangeHandler<?>> getType()
protected static <T> boolean shouldFire(HasValueChangeHandlers<T> source, T oldValue, T newValue)
T - value typesource - the sourceoldValue - the old valuenewValue - the new valuepublic final GwtEvent.Type<ValueChangeHandler<T>> getAssociatedType()
EventEvent.Type used to register this event, allowing an
 EventBus to find handlers of the appropriate class.getAssociatedType in class GwtEvent<ValueChangeHandler<T>>public T getValue()
public java.lang.String toDebugString()
EventtoDebugString in class Event<ValueChangeHandler<T>>protected void dispatch(ValueChangeHandler<T> handler)
GwtEventHandlerManager. In other words, do not use
 or call.dispatch in class GwtEvent<ValueChangeHandler<T>>handler - handlerEventBus.dispatchEvent(Event, Object)