HasScrolling abstract class
Implemented by widgets that support scrolling.
abstract class HasScrolling implements HasHorizontalScrolling, HasVerticalScrolling, HasScrollHandlers, IsWidget { }
Subclasses
Implements
IsWidget, HasScrollHandlers, HasVerticalScrolling, HasHorizontalScrolling
Methods
abstract HandlerRegistration addScrollHandler(ScrollHandler handler) #
Adds a {@link ScrollEvent} handler.
@param handler the scroll handler @return {@link HandlerRegistration} used to remove this handler
abstract void fireEvent(DwtEvent event) #
Fires the given event to the handlers listening to the event's type.
Any exceptions thrown by handlers will be bundled into a UmbrellaException and then re-thrown after all handlers have completed. An exception thrown by a handler will not prevent other handlers from executing.
@param event the event
abstract int getHorizontalScrollPosition() #
Gets the horizontal scroll position.
@return the horizontal scroll position, in pixels
abstract int getMaximumHorizontalScrollPosition() #
Get the maximum position of horizontal scrolling. This is usually the <code>scrollWidth - clientWidth</code>.
@return the maximum horizontal scroll position
abstract int getMaximumVerticalScrollPosition() #
Get the maximum position of vertical scrolling. This is usually the <code>scrollHeight - clientHeight</code>.
@return the maximum vertical scroll position
abstract int getMinimumHorizontalScrollPosition() #
Get the minimum position of horizontal scrolling.
@return the minimum horizontal scroll position
abstract int getMinimumVerticalScrollPosition() #
Get the minimum position of vertical scrolling.
@return the minimum vertical scroll position
abstract int getVerticalScrollPosition() #
Gets the vertical scroll position.
@return the vertical scroll position, in pixels
abstract void setHorizontalScrollPosition(int position) #
Sets the horizontal scroll position.
@param position the new horizontal scroll position, in pixels
abstract void setVerticalScrollPosition(int position) #
Sets the vertical scroll position.
@param position the new vertical scroll position, in pixels