public class ScrollBox extends Column
UiElementsasyncAddQueue, asyncRemoveAll, asyncRemoveQueue, children, renderNodedeferredQueue, effects, styleId, visibility, zIndex| Constructor and Description | 
|---|
| ScrollBox()Constructor. | 
| ScrollBox(java.lang.String id)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addScrollListener(ScrollListener listener)Adds a  ScrollListenerto thisScrollBox | 
| protected ParentRenderNode<?,?> | createRenderNode(ParentRenderNode<?,?> parent)Creates the  ParentRenderNodefor thisUiElement | 
| float | getMaxHeight()Returns the maximum height for this  ScrollBox | 
| float | getMinHeight()Returns the minimum height for this  ScrollBox. | 
| float | getScrollFactor()Returns how much this  ScrollBoxscrolls when the up/down buttons
 are clicked (expressed as a % between 0.0 and 1.0) | 
| void | notifyScrollListeners(float scrollThumbPosition)Notifies all  ScrollListenerinstances that a scroll occurred on
 thisScrollBox | 
| void | removeScrollListener(ScrollListener listener)Removes a  ScrollListenerfrom thisScrollBox | 
| void | scrollTo(UiElement element,
        boolean immediate)Moves the scroll thumb until the  UiElementis visible | 
| void | scrollToBottom(boolean immediate)Scrolls to the last element in the  ScrollBox | 
| void | scrollToTop(boolean immediate)Scrolls to the first element in the  ScrollBox | 
| void | setMaxHeight(float maxHeight)Sets the maximum height for this  ScrollBox | 
| void | setMinHeight(float minHeight)Sets the minimum height for this  ScrollBox. | 
| void | setScrollFactor(float scrollFactor)Sets how much this  ScrollBoxscrolls when the up/down buttons are
 clicked | 
| void | syncWithRenderNode()Syncs data between the  UiElementandRenderNode | 
withElements, withElementsadd, add, addAsync, attach, defer, detach, getElementById, getFlexDirection, getLayout, getTotalChildren, remove, remove, removeAll, removeAllAsync, removeAsync, setFlexDirection, setLayout, setStyleId, setVisibility, setZIndexaddEffectListener, addHoverListener, applyEffect, equals, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeEffectListener, removeHoverListener, setDebugEnabledpublic ScrollBox()
ScrollBoxpublic ScrollBox(java.lang.String id)
id - The unique ID for this ScrollBoxprotected ParentRenderNode<?,?> createRenderNode(ParentRenderNode<?,?> parent)
ParentUiElementParentRenderNode for this UiElementcreateRenderNode in class Columnparent - The parent of this nodeParentRenderNodepublic void syncWithRenderNode()
UiElementUiElement and RenderNodesyncWithRenderNode in class ParentUiElementpublic void scrollTo(UiElement element, boolean immediate)
UiElement is visiblepublic void scrollToTop(boolean immediate)
ScrollBoximmediate - True if the ScrollBox should "jump" to the element.
            False if the scrolling should be smooth.public void scrollToBottom(boolean immediate)
ScrollBoximmediate - True if the ScrollBox should "jump" to the element.
            False if the scrolling should be smooth.public float getMinHeight()
ScrollBox. When set to
 Float.MIN_VALUE the value will be taken from the style.Float.MIN_VALUE by defaultpublic void setMinHeight(float minHeight)
ScrollBox. Setting this value
 overrides the style's minHeight value.minHeight - The minimum height to setpublic float getMaxHeight()
ScrollBoxFloat.MAX_VALUE by defaultpublic void setMaxHeight(float maxHeight)
ScrollBoxmaxHeight - The maximum height to setpublic float getScrollFactor()
ScrollBox scrolls when the up/down buttons
 are clicked (expressed as a % between 0.0 and 1.0)DEFAULT_SCROLL_FACTOR by defaultpublic void setScrollFactor(float scrollFactor)
ScrollBox scrolls when the up/down buttons are
 clickedscrollFactor - A % between 0.0 and 1.0public void addScrollListener(ScrollListener listener)
ScrollListener to this ScrollBoxlistener - The ScrollListener to addpublic void removeScrollListener(ScrollListener listener)
ScrollListener from this ScrollBoxlistener - The ScrollListener to removepublic void notifyScrollListeners(float scrollThumbPosition)
ScrollListener instances that a scroll occurred on
 this ScrollBoxscrollThumbPosition - The position of the scroll thumb (between 0.0 and 1.0)