API Reference 0.3.24dart_web_toolkit_eventSelectionHandlerAdapter

SelectionHandlerAdapter class

Handler interface for {@link ScrollEvent} events.

class SelectionHandlerAdapter extends EventHandlerAdapter implements SelectionHandler {

 SelectionHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

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

Extends

EventHandlerAdapter > SelectionHandlerAdapter

Implements

SelectionHandler

Constructors

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

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onSelection(SelectionEvent event) #

Called when {@link SelectionEvent} is fired.

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

void onSelection(SelectionEvent event) {
 callback(event);
}