API Reference 0.3.24dart_web_toolkit_eventDropHandlerAdapter

DropHandlerAdapter class

Handler interface for {@link DropEvent} events.

class DropHandlerAdapter extends EventHandlerAdapter implements DropHandler {

 DropHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

 /**
  * Called when a {@link DropEvent} is fired.
  *
  * @param event the {@link DropEvent} that was fired
  */
 void onDrop(DropEvent event) {
   callback(event);
 }

}

Extends

EventHandlerAdapter > DropHandlerAdapter

Implements

DropHandler

Constructors

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

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onDrop(DropEvent event) #

Called when a {@link DropEvent} is fired.

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

void onDrop(DropEvent event) {
 callback(event);
}