Package com.google.gwt.user.client.ui
Interface HasHorizontalScrolling
- All Known Subinterfaces:
HasScrolling
,HorizontalScrollbar
- All Known Implementing Classes:
CustomScrollPanel
,NativeHorizontalScrollbar
,ScrollPanel
public interface HasHorizontalScrolling
Implemented by widgets that support horizontal scrolling.
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the horizontal scroll position.int
Get the maximum position of horizontal scrolling.int
Get the minimum position of horizontal scrolling.void
setHorizontalScrollPosition
(int position) Sets the horizontal scroll position.
-
Method Details
-
getHorizontalScrollPosition
int getHorizontalScrollPosition()Gets the horizontal scroll position.- Returns:
- the horizontal scroll position, in pixels
-
getMaximumHorizontalScrollPosition
int getMaximumHorizontalScrollPosition()Get the maximum position of horizontal scrolling. This is usually thescrollWidth - clientWidth
.- Returns:
- the maximum horizontal scroll position
-
getMinimumHorizontalScrollPosition
int getMinimumHorizontalScrollPosition()Get the minimum position of horizontal scrolling.- Returns:
- the minimum horizontal scroll position
-
setHorizontalScrollPosition
void setHorizontalScrollPosition(int position) Sets the horizontal scroll position.- Parameters:
position
- the new horizontal scroll position, in pixels
-