MouseWheelHandlerAdapter class
Handler interface for {@link MouseWheelEvent} events.
class MouseWheelHandlerAdapter extends EventHandlerAdapter implements MouseWheelHandler { MouseWheelHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback); /** * Called when MouseWheelEvent is fired. * * @param event the {@link MouseWheelEvent} that was fired */ void onMouseWheel(MouseWheelEvent event) { callback(event); } }
Extends
EventHandlerAdapter > MouseWheelHandlerAdapter
Implements
Constructors
new MouseWheelHandlerAdapter(EventHandlerAdapterCallback callback) #
Properties
EventHandlerAdapterCallback callback #
inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback
Methods
void onMouseWheel(MouseWheelEvent event) #
Called when MouseWheelEvent is fired.
@param event the {@link MouseWheelEvent} that was fired
void onMouseWheel(MouseWheelEvent event) { callback(event); }