API Reference 0.3.24dart_web_toolkit_eventOpenHandlerAdapter<T>

OpenHandlerAdapter<T> class

Implemented by objects that handle {@link OpenEvent}.

class OpenHandlerAdapter<T> extends EventHandlerAdapter implements OpenHandler<T> {

 OpenHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

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

Extends

EventHandlerAdapter > OpenHandlerAdapter<T>

Implements

OpenHandler<T>

Constructors

new OpenHandlerAdapter(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
OpenHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onOpen(OpenEvent<T> event) #

Called when {@link ValueChangeEvent} is fired.

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

void onOpen(OpenEvent<T> event) {
 callback(event);
}