com.google.gwt.widgetideas.client.events
Class ChangeEvent<Value>

java.lang.Object
  extended by com.google.gwt.widgetideas.client.events.AbstractEvent<FiresChangeEvents,ChangeHandler<Value>>
      extended by com.google.gwt.widgetideas.client.events.ChangeEvent<Value>
Type Parameters:
Value - value type

public class ChangeEvent<Value>
extends AbstractEvent<FiresChangeEvents,ChangeHandler<Value>>

Change event.


Constructor Summary
ChangeEvent(FiresChangeEvents source, Value oldValue, Value newValue)
          Contructor.
 
Method Summary
 void fire(ChangeHandler e)
          Delegates firing the event to the given handler type.
 Value getNewValue()
          Gets the new value that will be set.
 Value getOldValue()
          Gets the old value.
 
Methods inherited from class com.google.gwt.widgetideas.client.events.AbstractEvent
cancelEvent, getSource, isCanceled, tryFire
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeEvent

public ChangeEvent(FiresChangeEvents source,
                   Value oldValue,
                   Value newValue)
Contructor.

Parameters:
source - source
oldValue - old value
newValue - new value
Method Detail

fire

public void fire(ChangeHandler e)
Description copied from class: AbstractEvent
Delegates firing the event to the given handler type.

Specified by:
fire in class AbstractEvent<FiresChangeEvents,ChangeHandler<Value>>
Parameters:
e - event

getNewValue

public Value getNewValue()
Gets the new value that will be set.

Returns:
the new value

getOldValue

public Value getOldValue()
Gets the old value.

Returns:
the old value.