public class NativeVerticalScrollbar extends AbstractNativeScrollbar implements VerticalScrollbar
Modifier and Type | Class and Description |
---|---|
static interface |
NativeVerticalScrollbar.Resources
A ClientBundle of resources used by this widget.
|
static interface |
NativeVerticalScrollbar.ResourcesTransparant
A variation of
NativeVerticalScrollbar.Resources that renders the scrollbar
semi-transparent until it is hovered. |
static interface |
NativeVerticalScrollbar.Style
Styles used by this widget.
|
static interface |
NativeVerticalScrollbar.StyleTransparant
A variation of
NativeVerticalScrollbar.Style that renders the scrollbar semi-transparent
until it is hovered. |
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_ID_PREFIX
Constructor and Description |
---|
NativeVerticalScrollbar()
Construct a new
NativeVerticalScrollbar . |
NativeVerticalScrollbar(NativeVerticalScrollbar.Resources resources)
Construct a new
NativeVerticalScrollbar . |
Modifier and Type | Method and Description |
---|---|
int |
getMaximumVerticalScrollPosition()
Get the maximum position of vertical scrolling.
|
int |
getMinimumVerticalScrollPosition()
Get the minimum position of vertical scrolling.
|
protected int |
getNativeWidth()
Get the width of the scrollbar.
|
protected Element |
getScrollableElement()
Get the scrollable element.
|
int |
getScrollHeight()
Get the height in pixels of the scrollable content that the scrollbar
controls.
|
int |
getVerticalScrollPosition()
Gets the vertical scroll position.
|
void |
setScrollHeight(int height)
Set the height in pixels of the scrollable content that the scrollbar
controls.
|
void |
setVerticalScrollPosition(int position)
Sets the vertical scroll position.
|
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 NativeVerticalScrollbar()
NativeVerticalScrollbar
.public NativeVerticalScrollbar(NativeVerticalScrollbar.Resources resources)
NativeVerticalScrollbar
.resources
- the resources used by this widgetpublic int getMaximumVerticalScrollPosition()
HasVerticalScrolling
scrollHeight - clientHeight
.getMaximumVerticalScrollPosition
in interface HasVerticalScrolling
public int getMinimumVerticalScrollPosition()
HasVerticalScrolling
getMinimumVerticalScrollPosition
in interface HasVerticalScrolling
public int getScrollHeight()
This is not the same as the maximum scroll top position. The maximum scroll
position equals the scrollHeight- offsetHeight
;
getScrollHeight
in interface VerticalScrollbar
setScrollHeight(int)
public int getVerticalScrollPosition()
HasVerticalScrolling
getVerticalScrollPosition
in interface HasVerticalScrolling
public void setScrollHeight(int height)
This is not the same as the maximum scroll top position. The maximum scroll
position equals the scrollHeight- offsetHeight
;
setScrollHeight
in interface VerticalScrollbar
height
- the size height pixelspublic void setVerticalScrollPosition(int position)
HasVerticalScrolling
setVerticalScrollPosition
in interface HasVerticalScrolling
position
- the new vertical scroll position, in pixelsprotected int getNativeWidth()
protected Element getScrollableElement()
AbstractNativeScrollbar
getScrollableElement
in class AbstractNativeScrollbar
Copyright © 2018. All rights reserved.