Class ScrollEvent
java.lang.Object
com.oorian.messaging.events.Event<ScrollListener>
com.oorian.messaging.events.client.ClientEvent<ScrollListener>
com.oorian.messaging.events.client.ScrollbarEvent
com.oorian.messaging.events.client.ScrollEvent
Event fired when the user scrolls an element's content.
This event provides the current scroll position and total scrollable dimensions of the element.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchTo(ScrollListener listener) Dispatches this event to the specified listener.Methods inherited from class com.oorian.messaging.events.client.ScrollbarEvent
getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidthMethods inherited from class com.oorian.messaging.events.client.ClientEvent
getSource, getTarget, setSource, setTarget
-
Constructor Details
-
ScrollEvent
public ScrollEvent(Float scrollTop, Float scrollBottom, Float scrollHeight, Float scrollLeft, Float scrollRight, Float scrollWidth) Creates a ScrollEvent with the specified scroll positions.- Parameters:
scrollTop- the distance scrolled from the top, in pixelsscrollBottom- the distance from the bottom of the scrollable area, in pixelsscrollHeight- the total scrollable height, in pixelsscrollLeft- the distance scrolled from the left, in pixelsscrollRight- the distance from the right of the scrollable area, in pixelsscrollWidth- the total scrollable width, in pixels
-
-
Method Details
-
dispatchTo
Dispatches this event to the specified listener.Subclasses implement this method to call the appropriate handler method on the listener interface.
- Specified by:
dispatchToin classEvent<ScrollListener>- Parameters:
listener- the listener to dispatch this event to
-