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