|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.event.shared.GwtEvent<ValueChangeHandler<I>>
com.google.gwt.event.logical.shared.ValueChangeEvent<I>
I
- the value about to be changedpublic class ValueChangeEvent<I>
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(I value)
Creates a value change event. |
Method Summary | ||
---|---|---|
protected void |
dispatch(ValueChangeHandler<I> handler)
Should only be called by HandlerManager . |
|
static
|
fire(HasValueChangeHandlers<I> source,
I value)
Fires a value change event on all registered handlers in the handler manager.If no such handlers exist, this method will do nothing. |
|
static
|
fireIfNotEqual(HasValueChangeHandlers<I> source,
I oldValue,
I newValue)
Fires value change event if the old value is not equal to the new value. |
|
GwtEvent.Type<ValueChangeHandler<I>> |
getAssociatedType()
Returns the type used to register this event. |
|
static GwtEvent.Type<ValueChangeHandler<?>> |
getType()
Gets the type associated with this event. |
|
I |
getValue()
Gets the value. |
|
protected static
|
shouldFire(HasValueChangeHandlers<I> source,
I oldValue,
I 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, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ValueChangeEvent(I value)
value
- the valueMethod Detail |
---|
public static <I> void fire(HasValueChangeHandlers<I> source, I value)
I
- the old value typesource
- the source of the handlersvalue
- the valuepublic static <I> void fireIfNotEqual(HasValueChangeHandlers<I> source, I oldValue, I newValue)
I
- 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 <I> boolean shouldFire(HasValueChangeHandlers<I> source, I oldValue, I newValue)
I
- value typesource
- the sourceoldValue
- the old valuenewValue
- the new value
public final GwtEvent.Type<ValueChangeHandler<I>> getAssociatedType()
GwtEvent
getAssociatedType
in class GwtEvent<ValueChangeHandler<I>>
public I getValue()
public java.lang.String toDebugString()
GwtEvent
toDebugString
in class GwtEvent<ValueChangeHandler<I>>
protected void dispatch(ValueChangeHandler<I> handler)
GwtEvent
HandlerManager
. In other words, do not use
or call.
dispatch
in class GwtEvent<ValueChangeHandler<I>>
handler
- handler
|
GWT 2.0.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |