Package com.google.gwt.user.client.ui
Interface HorizontalScrollbar
- All Superinterfaces:
HasHandlers,HasHorizontalScrolling,HasScrollHandlers,IsWidget
- All Known Implementing Classes:
NativeHorizontalScrollbar
Describes a horizontal scrollbar.
-
Method Summary
Modifier and TypeMethodDescriptionintGet the width in pixels of the scrollable content that the scrollbar controls.voidsetScrollWidth(int width) Set the width in pixels of the scrollable content that the scrollbar controls.Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEventMethods inherited from interface com.google.gwt.user.client.ui.HasHorizontalScrolling
getHorizontalScrollPosition, getMaximumHorizontalScrollPosition, getMinimumHorizontalScrollPosition, setHorizontalScrollPositionMethods inherited from interface com.google.gwt.event.dom.client.HasScrollHandlers
addScrollHandler
-
Method Details
-
getScrollWidth
int getScrollWidth()Get the width in pixels of the scrollable content that the scrollbar controls.This is not the same as the maximum scroll left position. The maximum scroll position equals the
scrollWidth - offsetWidth.- Returns:
- the scroll width
- See Also:
-
setScrollWidth
void setScrollWidth(int width) Set the width in pixels of the scrollable content that the scrollbar controls.This is not the same as the maximum scroll left position. The maximum scroll position equals the
scrollWidth - offsetWidth.- Parameters:
width- the size width pixels
-