API Reference 0.3.24dart_web_toolkit_eventFocusHandlerAdapter

FocusHandlerAdapter class

Handler interface for {@link FocusEvent} events.

class FocusHandlerAdapter extends EventHandlerAdapter implements FocusHandler {

 FocusHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

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

Extends

EventHandlerAdapter > FocusHandlerAdapter

Implements

FocusHandler

Constructors

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

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onFocus(FocusEvent event) #

Called when FocusEvent is fired.

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

void onFocus(FocusEvent event) {
 callback(event);
}