AllMouseHandlersAdapter class
Handler interface for {@link MouseDownEvent} events.
class AllMouseHandlersAdapter extends EventHandlerAdapter implements MouseDownHandler, MouseUpHandler, MouseOutHandler, MouseOverHandler, MouseMoveHandler, MouseWheelHandler { AllMouseHandlersAdapter(EventHandlerAdapterCallback callback) : super(callback); /** * Called when MouseDown is fired. * * @param event the {@link MouseDownEvent} that was fired */ void onMouseDown(MouseDownEvent event) { callback(event); } /** * Called when MouseMoveEvent is fired. * * @param event the {@link MouseMoveEvent} that was fired */ void onMouseMove(MouseMoveEvent event) { callback(event); } /** * Called when MouseOutEvent is fired. * * @param event the {@link MouseOutEvent} that was fired */ void onMouseOut(MouseOutEvent event) { callback(event); } /** * Called when MouseOverEvent is fired. * * @param event the {@link MouseOverEvent} that was fired */ void onMouseOver(MouseOverEvent event) { callback(event); } /** * Called when MouseUpEvent is fired. * * @param event the {@link MouseUpEvent} that was fired */ void onMouseUp(MouseUpEvent event) { callback(event); } /** * Called when MouseWheelEvent is fired. * * @param event the {@link MouseWheelEvent} that was fired */ void onMouseWheel(MouseWheelEvent event) { callback(event); } }
Extends
EventHandlerAdapter > AllMouseHandlersAdapter
Implements
MouseWheelHandler, MouseMoveHandler, MouseOverHandler, MouseOutHandler, MouseUpHandler, MouseDownHandler
Constructors
new AllMouseHandlersAdapter(EventHandlerAdapterCallback 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); }
void onMouseMove(MouseMoveEvent event) #
Called when MouseMoveEvent is fired.
@param event the {@link MouseMoveEvent} that was fired
void onMouseMove(MouseMoveEvent event) { callback(event); }
void onMouseOut(MouseOutEvent event) #
Called when MouseOutEvent is fired.
@param event the {@link MouseOutEvent} that was fired
void onMouseOut(MouseOutEvent event) { callback(event); }
void onMouseOver(MouseOverEvent event) #
Called when MouseOverEvent is fired.
@param event the {@link MouseOverEvent} that was fired
void onMouseOver(MouseOverEvent event) { callback(event); }
void onMouseUp(MouseUpEvent event) #
Called when MouseUpEvent is fired.
@param event the {@link MouseUpEvent} that was fired
void onMouseUp(MouseUpEvent event) { callback(event); }
void onMouseWheel(MouseWheelEvent event) #
Called when MouseWheelEvent is fired.
@param event the {@link MouseWheelEvent} that was fired
void onMouseWheel(MouseWheelEvent event) { callback(event); }