Class ScrollbarBundle.HorizontalScrollbarBundle

    • Constructor Detail

      • HorizontalScrollbarBundle

        public HorizontalScrollbarBundle()
    • Method Detail

      • setStylePrimaryName

        public void setStylePrimaryName​(String primaryStyleName)
        Description copied from class: ScrollbarBundle
        Sets the primary style name.
        Overrides:
        setStylePrimaryName in class ScrollbarBundle
        Parameters:
        primaryStyleName - The primary style name to use
      • internalSetScrollPos

        protected void internalSetScrollPos​(int px)
        Description copied from class: ScrollbarBundle
        Modifies 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:
        internalSetScrollPos in class ScrollbarBundle
        Parameters:
        px - integer pixel value to scroll to
      • internalGetScrollPos

        protected int internalGetScrollPos()
        Description copied from class: ScrollbarBundle
        Retrieves 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:
        internalGetScrollPos in class ScrollbarBundle
        Returns:
        integer pixel value of the scroll position
      • internalGetScrollSize

        protected String internalGetScrollSize()
        Description copied from class: ScrollbarBundle
        Returns the width (for horizontal) or height (for vertical) css property for the scroll size element.
        Specified by:
        internalGetScrollSize in class ScrollbarBundle
        Returns:
        the relevant size property based on orientation
      • internalGetOffsetSize

        public String internalGetOffsetSize()
        Description copied from class: ScrollbarBundle
        Returns the width (for horizontal) or height (for vertical) css property for the root element.
        Specified by:
        internalGetOffsetSize in class ScrollbarBundle
        Returns:
        the relevant size property based on orientation
      • internalForceScrollbar

        protected void internalForceScrollbar​(boolean enable)
        Description copied from class: ScrollbarBundle
        Sets the overflow-x (for horizontal) or overflow-y (for vertical) property to "scroll" if enabled, or clears the property if disabled.
        Specified by:
        internalForceScrollbar in class ScrollbarBundle
        Parameters:
        enable - true if the overflow property should be set, false otherwise.