|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<ValueChangeHandler<T>>
com.google.gwt.event.logical.shared.ValueChangeEvent<T>
T - the value about to be changedpublic class ValueChangeEvent<T>
Represents a value change event.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
|---|
GwtEvent.Type<H> |
| Constructor Summary | |
|---|---|
protected |
ValueChangeEvent(T value)
Creates a value change event. |
| Method Summary | ||
|---|---|---|
protected void |
dispatch(ValueChangeHandler<T> handler)
Should only be called by HandlerManager. |
|
static
|
fire(HasValueChangeHandlers<T> source,
T value)
Fires a value change event on all registered handlers in the handler manager. |
|
static
|
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.Type used to register this event, allowing an
EventBus to 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
|
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. |
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ValueChangeEvent(T value)
value - the value| Method Detail |
|---|
public static <T> void fire(HasValueChangeHandlers<T> source,
T value)
T - the old value typesource - the source of the handlersvalue - the value
public 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 value
public 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()
Event
toDebugString 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)
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||