Package com.google.gwt.user.client.ui
Class ScrollImpl
java.lang.Object
com.google.gwt.user.client.ui.ScrollImpl
- Direct Known Subclasses:
ScrollImpl.ScrollImplTrident
Implementation of scrolling behavior.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classIE does not fire a scroll event when the scrollable element or the container is resized, so we synthesize one as needed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ScrollImplget()Get the singleton instance ofScrollImpl.intgetMaximumHorizontalScrollPosition(Element scrollable) Get the maximum horizontal scroll position.intgetMinimumHorizontalScrollPosition(Element scrollable) Get the minimum horizontal scroll position.voidinitialize(Element scrollable, Element container) Initialize a scrollable element.booleanCheck if the specified element has an RTL direction.
-
Constructor Details
-
ScrollImpl
ScrollImpl()
-
-
Method Details
-
get
Get the singleton instance ofScrollImpl. -
getMaximumHorizontalScrollPosition
Get the maximum horizontal scroll position.- Parameters:
scrollable- the scrollable element- Returns:
- the maximum scroll position
-
getMinimumHorizontalScrollPosition
Get the minimum horizontal scroll position.- Parameters:
scrollable- the scrollable element- Returns:
- the minimum scroll position
-
initialize
Initialize a scrollable element.- Parameters:
scrollable- the scrollable elementcontainer- the container
-
isRtl
Check if the specified element has an RTL direction. We can't base this on the current locale because the user can modify the direction at the DOM level.- Parameters:
scrollable- the scrollable element- Returns:
- true if the direction is RTL, false if LTR
-