public static final class ScrollbarBundle.VerticalScrollbarBundle extends ScrollbarBundle
ScrollbarBundle.getElement()ScrollbarBundle.Direction, ScrollbarBundle.HorizontalScrollbarBundle, ScrollbarBundle.VerticalScrollbarBundle, ScrollbarBundle.VisibilityChangeEvent, ScrollbarBundle.VisibilityHandlerisInvisibleScrollbar, root, scrollSizeElement| Constructor and Description |
|---|
VerticalScrollbarBundle() |
| Modifier and Type | Method and Description |
|---|---|
ScrollbarBundle.Direction |
getDirection()
Returns the scroll direction of this scrollbar bundle.
|
protected void |
internalForceScrollbar(boolean enable)
Sets the overflow-x (for horizontal) or overflow-y (for vertical)
property to
"scroll" if enabled, or clears the property if
disabled. |
String |
internalGetOffsetSize()
Returns the width (for horizontal) or height (for vertical) css property
for the root element.
|
protected String |
internalGetScrollbarThickness()
Gets the scrollbar's thickness as defined in the DOM.
|
protected int |
internalGetScrollPos()
Retrieves the element's scroll position (scrollTop or scrollLeft).
|
protected String |
internalGetScrollSize()
Returns the width (for horizontal) or height (for vertical) css property
for the scroll size element.
|
protected void |
internalSetOffsetSize(double px)
Modifies
root's dimensions in the axis the scrollbar is
representing. |
protected void |
internalSetScrollbarThickness(double px)
Modifies
scrollSizeElement's dimensions in the
opposite axis to what the scrollbar is representing. |
protected void |
internalSetScrollPos(int px)
Modifies the element's scroll position (scrollTop or scrollLeft).
|
protected void |
internalSetScrollSize(double px)
Modifies
scrollSizeElement's dimensions in
such a way that the scrollbar is able to scroll a certain number of
pixels in the axis it is representing. |
void |
setStylePrimaryName(String primaryStyleName)
Sets the primary style name.
|
addScrollHandler, addVisibilityHandler, forceScrollbar, getElement, getHandlerManager, getOffsetSize, getScrollbarThickness, getScrollPos, getScrollSize, isLocked, isWorkPending, onLoad, recalculateMaxScrollPos, setLocked, setOffsetSize, setOffsetSizeAndScrollSize, setScrollbarThickness, setScrollPos, setScrollPosByDelta, setScrollSize, showsScrollHandlepublic void setStylePrimaryName(String primaryStyleName)
ScrollbarBundlesetStylePrimaryName in class ScrollbarBundleprimaryStyleName - The primary style name to useprotected void internalSetScrollPos(int px)
ScrollbarBundleNote: The parameter here is a type of integer (instead of a double) by design. The browsers internally convert all double values into an integer value. To make this fact explicit, this API has chosen to force integers already at this level.
internalSetScrollPos in class ScrollbarBundlepx - integer pixel value to scroll toprotected int internalGetScrollPos()
ScrollbarBundleNote: The parameter here is a type of integer (instead of a double) by design. The browsers internally convert all double values into an integer value. To make this fact explicit, this API has chosen to force integers already at this level.
internalGetScrollPos in class ScrollbarBundleprotected void internalSetScrollSize(double px)
ScrollbarBundlescrollSizeElement's dimensions in
such a way that the scrollbar is able to scroll a certain number of
pixels in the axis it is representing.internalSetScrollSize in class ScrollbarBundlepx - the new size of ScrollbarBundle.scrollSizeElement in the dimension
this scrollbar is representingprotected String internalGetScrollSize()
ScrollbarBundleinternalGetScrollSize in class ScrollbarBundleprotected void internalSetOffsetSize(double px)
ScrollbarBundleroot's dimensions in the axis the scrollbar is
representing.internalSetOffsetSize in class ScrollbarBundlepx - the new size of ScrollbarBundle.root in the dimension this scrollbar
is representingpublic String internalGetOffsetSize()
ScrollbarBundleinternalGetOffsetSize in class ScrollbarBundleprotected void internalSetScrollbarThickness(double px)
ScrollbarBundlescrollSizeElement's dimensions in the
opposite axis to what the scrollbar is representing.internalSetScrollbarThickness in class ScrollbarBundlepx - the dimension that ScrollbarBundle.scrollSizeElement should take in
the opposite axis to what the scrollbar is representingprotected String internalGetScrollbarThickness()
ScrollbarBundleinternalGetScrollbarThickness in class ScrollbarBundleprotected void internalForceScrollbar(boolean enable)
ScrollbarBundle"scroll" if enabled, or clears the property if
disabled.internalForceScrollbar in class ScrollbarBundleenable - true if the overflow property should be set,
false otherwise.public ScrollbarBundle.Direction getDirection()
ScrollbarBundlegetDirection in class ScrollbarBundleCopyright © 2023 Vaadin Ltd. All rights reserved.