API Reference 0.3.24dart_web_toolkit_eventMouseDownHandlerAdapter

MouseDownHandlerAdapter class

Handler interface for {@link MouseDownEvent} events.

class MouseDownHandlerAdapter extends EventHandlerAdapter implements MouseDownHandler {

 MouseDownHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

 /**
  * Called when MouseDown is fired.
  *
  * @param event the {@link MouseDownEvent} that was fired
  */
 void onMouseDown(MouseDownEvent event) {
   callback(event);
 }

}

Extends

EventHandlerAdapter > MouseDownHandlerAdapter

Implements

MouseDownHandler

Constructors

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

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onMouseDown(MouseDownEvent event) #

Called when MouseDown is fired.

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

void onMouseDown(MouseDownEvent event) {
 callback(event);
}