API Reference 0.3.24dart_web_toolkit_uiHasScrolling

HasScrolling abstract class

Implemented by widgets that support scrolling.

abstract class HasScrolling implements HasHorizontalScrolling, HasVerticalScrolling, HasScrollHandlers, IsWidget {

}

Subclasses

ScrollPanel

Implements

IsWidget, HasScrollHandlers, HasVerticalScrolling, HasHorizontalScrolling

Methods

abstract HandlerRegistration addScrollHandler(ScrollHandler handler) #

inherited from HasScrollHandlers

Adds a {@link ScrollEvent} handler.

@param handler the scroll handler @return {@link HandlerRegistration} used to remove this handler

abstract Widget asWidget() #

inherited from IsWidget

Returns the Widget aspect of the receiver.

abstract void fireEvent(DwtEvent event) #

inherited from HasHandlers

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() #

inherited from HasHorizontalScrolling

Gets the horizontal scroll position.

@return the horizontal scroll position, in pixels

abstract int getMaximumHorizontalScrollPosition() #

inherited from HasHorizontalScrolling

Get the maximum position of horizontal scrolling. This is usually the <code>scrollWidth - clientWidth</code>.

@return the maximum horizontal scroll position

abstract int getMaximumVerticalScrollPosition() #

inherited from HasVerticalScrolling

Get the maximum position of vertical scrolling. This is usually the <code>scrollHeight - clientHeight</code>.

@return the maximum vertical scroll position

abstract int getMinimumHorizontalScrollPosition() #

inherited from HasHorizontalScrolling

Get the minimum position of horizontal scrolling.

@return the minimum horizontal scroll position

abstract int getMinimumVerticalScrollPosition() #

inherited from HasVerticalScrolling

Get the minimum position of vertical scrolling.

@return the minimum vertical scroll position

abstract int getVerticalScrollPosition() #

inherited from HasVerticalScrolling

Gets the vertical scroll position.

@return the vertical scroll position, in pixels

abstract void setHorizontalScrollPosition(int position) #

inherited from HasHorizontalScrolling

Sets the horizontal scroll position.

@param position the new horizontal scroll position, in pixels

abstract void setVerticalScrollPosition(int position) #

inherited from HasVerticalScrolling

Sets the vertical scroll position.

@param position the new vertical scroll position, in pixels