API Reference 0.3.24dart_web_toolkit_eventClickHandlerAdapter

ClickHandlerAdapter class

Handler for {@link ClickEvent} events.

class ClickHandlerAdapter extends EventHandlerAdapter implements ClickHandler {

 ClickHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

 /**
  * Called when a native click event is fired.
  *
  * @param event the {@link ClickEvent} that was fired
  */
 void onClick(ClickEvent event) {
   callback(event);
 }
}

Extends

EventHandlerAdapter > ClickHandlerAdapter

Implements

ClickHandler

Constructors

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

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onClick(ClickEvent event) #

Called when a native click event is fired.

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

void onClick(ClickEvent event) {
 callback(event);
}