public class NativeHorizontalScrollbar extends AbstractNativeScrollbar implements HorizontalScrollbar
Modifier and Type | Class and Description |
---|---|
static interface |
NativeHorizontalScrollbar.Resources
A ClientBundle of resources used by this widget.
|
static interface |
NativeHorizontalScrollbar.ResourcesTransparant
A variation of
NativeHorizontalScrollbar.Resources that renders the scrollbar
semi-transparent until it is hovered. |
static interface |
NativeHorizontalScrollbar.Style
Styles used by this widget.
|
static interface |
NativeHorizontalScrollbar.StyleTransparant
A variation of
NativeHorizontalScrollbar.Style that renders the scrollbar semi-transparent
until it is hovered. |
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_ID_PREFIX
Constructor and Description |
---|
NativeHorizontalScrollbar()
Construct a new
NativeHorizontalScrollbar . |
NativeHorizontalScrollbar(NativeHorizontalScrollbar.Resources resources)
Construct a new
NativeHorizontalScrollbar . |
Modifier and Type | Method and Description |
---|---|
int |
getHorizontalScrollPosition()
Gets the horizontal scroll position.
|
int |
getMaximumHorizontalScrollPosition()
Get the maximum position of horizontal scrolling.
|
int |
getMinimumHorizontalScrollPosition()
Get the minimum position of horizontal scrolling.
|
protected int |
getNativeHeight()
Get the height of the scrollbar.
|
protected Element |
getScrollableElement()
Get the scrollable element.
|
int |
getScrollWidth()
Get the width in pixels of the scrollable content that the scrollbar
controls.
|
void |
setHorizontalScrollPosition(int position)
Sets the horizontal scroll position.
|
void |
setScrollWidth(int width)
Set the width in pixels of the scrollable content that the scrollbar
controls.
|
addScrollHandler, getNativeScrollbarHeight, getNativeScrollbarWidth, isScrollbarLeftAlignedInRtl, onAttach, onDetach
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
addScrollHandler
fireEvent
public NativeHorizontalScrollbar()
NativeHorizontalScrollbar
.public NativeHorizontalScrollbar(NativeHorizontalScrollbar.Resources resources)
NativeHorizontalScrollbar
.resources
- the resources used by this widgetpublic int getHorizontalScrollPosition()
HasHorizontalScrolling
getHorizontalScrollPosition
in interface HasHorizontalScrolling
public int getMaximumHorizontalScrollPosition()
HasHorizontalScrolling
scrollWidth - clientWidth
.getMaximumHorizontalScrollPosition
in interface HasHorizontalScrolling
public int getMinimumHorizontalScrollPosition()
HasHorizontalScrolling
getMinimumHorizontalScrollPosition
in interface HasHorizontalScrolling
public int getScrollWidth()
This is not the same as the maximum scroll left position. The maximum
scroll position equals the scrollWidth - offsetWidth
;
getScrollWidth
in interface HorizontalScrollbar
setScrollWidth(int)
public void setHorizontalScrollPosition(int position)
HasHorizontalScrolling
setHorizontalScrollPosition
in interface HasHorizontalScrolling
position
- the new horizontal scroll position, in pixelspublic void setScrollWidth(int width)
This is not the same as the maximum scroll left position. The maximum
scroll position equals the scrollWidth - offsetWidth
;
setScrollWidth
in interface HorizontalScrollbar
width
- the size width pixelsprotected int getNativeHeight()
protected Element getScrollableElement()
AbstractNativeScrollbar
getScrollableElement
in class AbstractNativeScrollbar
Copyright © 2016. All rights reserved.