Class ScrollbarBundle.VerticalScrollbarBundle
- java.lang.Object
-
- com.vaadin.v7.client.widget.escalator.ScrollbarBundle
-
- com.vaadin.v7.client.widget.escalator.ScrollbarBundle.VerticalScrollbarBundle
-
- All Implemented Interfaces:
DeferredWorker
- Enclosing class:
- ScrollbarBundle
public static final class ScrollbarBundle.VerticalScrollbarBundle extends ScrollbarBundle
A representation of a single vertical scrollbar.- See Also:
ScrollbarBundle.getElement()
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.v7.client.widget.escalator.ScrollbarBundle
ScrollbarBundle.Direction, ScrollbarBundle.HorizontalScrollbarBundle, ScrollbarBundle.VerticalScrollbarBundle, ScrollbarBundle.VisibilityChangeEvent, ScrollbarBundle.VisibilityHandler
-
-
Field Summary
-
Fields inherited from class com.vaadin.v7.client.widget.escalator.ScrollbarBundle
isInvisibleScrollbar, root, scrollSizeElement
-
-
Constructor Summary
Constructors Constructor Description VerticalScrollbarBundle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScrollbarBundle.DirectiongetDirection()Returns the scroll direction of this scrollbar bundle.protected voidinternalForceScrollbar(boolean enable)StringinternalGetOffsetSize()protected StringinternalGetScrollbarThickness()Gets the scrollbar's thickness as defined in the DOM.protected intinternalGetScrollPos()Retrieves the element's scroll position (scrollTop or scrollLeft).protected StringinternalGetScrollSize()protected voidinternalSetOffsetSize(double px)Modifiesroot'sdimensions in the axis the scrollbar is representing.protected voidinternalSetScrollbarThickness(double px)ModifiesscrollSizeElement'sdimensions in the opposite axis to what the scrollbar is representing.protected voidinternalSetScrollPos(int px)Modifies the element's scroll position (scrollTop or scrollLeft).protected voidinternalSetScrollSize(double px)ModifiesscrollSizeElement'sdimensions in such a way that the scrollbar is able to scroll a certain number of pixels in the axis it is representing.voidsetStylePrimaryName(String primaryStyleName)Sets the primary style name.-
Methods inherited from class com.vaadin.v7.client.widget.escalator.ScrollbarBundle
addScrollHandler, addVisibilityHandler, forceScrollbar, getElement, getHandlerManager, getOffsetSize, getScrollbarThickness, getScrollPos, getScrollSize, isLocked, isWorkPending, onLoad, recalculateMaxScrollPos, setLocked, setOffsetSize, setScrollbarThickness, setScrollPos, setScrollPosByDelta, setScrollSize, showsScrollHandle
-
-
-
-
Method Detail
-
setStylePrimaryName
public void setStylePrimaryName(String primaryStyleName)
Description copied from class:ScrollbarBundleSets the primary style name.- Overrides:
setStylePrimaryNamein classScrollbarBundle- Parameters:
primaryStyleName- The primary style name to use
-
internalSetScrollPos
protected void internalSetScrollPos(int px)
Description copied from class:ScrollbarBundleModifies the element's scroll position (scrollTop or scrollLeft).Note: 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.
- Specified by:
internalSetScrollPosin classScrollbarBundle- Parameters:
px- integer pixel value to scroll to
-
internalGetScrollPos
protected int internalGetScrollPos()
Description copied from class:ScrollbarBundleRetrieves the element's scroll position (scrollTop or scrollLeft).Note: 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.
- Specified by:
internalGetScrollPosin classScrollbarBundle- Returns:
- integer pixel value of the scroll position
-
internalSetScrollSize
protected void internalSetScrollSize(double px)
Description copied from class:ScrollbarBundleModifiesscrollSizeElement'sdimensions in such a way that the scrollbar is able to scroll a certain number of pixels in the axis it is representing.- Specified by:
internalSetScrollSizein classScrollbarBundle- Parameters:
px- the new size ofScrollbarBundle.scrollSizeElementin the dimension this scrollbar is representing
-
internalGetScrollSize
protected String internalGetScrollSize()
- Specified by:
internalGetScrollSizein classScrollbarBundle
-
internalSetOffsetSize
protected void internalSetOffsetSize(double px)
Description copied from class:ScrollbarBundleModifiesroot'sdimensions in the axis the scrollbar is representing.- Specified by:
internalSetOffsetSizein classScrollbarBundle- Parameters:
px- the new size ofScrollbarBundle.rootin the dimension this scrollbar is representing
-
internalGetOffsetSize
public String internalGetOffsetSize()
- Specified by:
internalGetOffsetSizein classScrollbarBundle
-
internalSetScrollbarThickness
protected void internalSetScrollbarThickness(double px)
Description copied from class:ScrollbarBundleModifiesscrollSizeElement'sdimensions in the opposite axis to what the scrollbar is representing.- Specified by:
internalSetScrollbarThicknessin classScrollbarBundle- Parameters:
px- the dimension thatScrollbarBundle.scrollSizeElementshould take in the opposite axis to what the scrollbar is representing
-
internalGetScrollbarThickness
protected String internalGetScrollbarThickness()
Description copied from class:ScrollbarBundleGets the scrollbar's thickness as defined in the DOM.- Specified by:
internalGetScrollbarThicknessin classScrollbarBundle- Returns:
- the scrollbar's thickness as defined in the DOM, in pixels
-
internalForceScrollbar
protected void internalForceScrollbar(boolean enable)
- Specified by:
internalForceScrollbarin classScrollbarBundle
-
getDirection
public ScrollbarBundle.Direction getDirection()
Description copied from class:ScrollbarBundleReturns the scroll direction of this scrollbar bundle.- Specified by:
getDirectionin classScrollbarBundle- Returns:
- the scroll direction of this scrollbar bundle
-
-