API Reference 0.3.24dart_web_toolkit_eventValueChangeHandlerAdapter<T>

ValueChangeHandlerAdapter<T> class

Implemented by objects that handle {@link AttachEvent}.

class ValueChangeHandlerAdapter<T> extends EventHandlerAdapter implements ValueChangeHandler<T> {

 ValueChangeHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

 /**
  * Called when {@link ValueChangeEvent} is fired.
  *
  * @param event the {@link ValueChangeEvent} that was fired
  */
 void onValueChange(ValueChangeEvent<T> event) {
   callback(event);
 }
}

Extends

EventHandlerAdapter > ValueChangeHandlerAdapter<T>

Implements

ValueChangeHandler<T>

Constructors

new ValueChangeHandlerAdapter(EventHandlerAdapterCallback callback) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
ValueChangeHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onValueChange(ValueChangeEvent<T> event) #

Called when {@link ValueChangeEvent} is fired.

@param event the {@link ValueChangeEvent} that was fired

void onValueChange(ValueChangeEvent<T> event) {
 callback(event);
}