public class FlexScrollBar extends FlexObject
Modifier | Constructor and Description |
---|---|
protected |
FlexScrollBar(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexScrollBar with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
List<Color> |
getFillColors()
Gets the colors used to tint the background of the control.
|
double |
getLineScrollSize()
Gets the amount to scroll when an arrow button is pressed, in pixels.
|
double |
getPageScrollSize()
Gets the amount to move the scroll thumb when the scroll bar track is pressed, in pixels.
|
double |
getScrollPosition()
Gets the number that represents the current scroll position.
|
List<Color> |
getTrackColors()
Gets the colors of the track, as an array of two colors.
|
void |
scroll(int position,
FlexScrollDirection direction,
FlexScrollDetail detail)
Dispatched when the ScrollBar control scrolls through user initiated action or programmatically.
|
changeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocus
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAlpha, getHeight, getStyle, getTabIndex, getWidth, getX, getY, isMouseEnabled, isTabChildren, isTabEnabled, isVisible, mouseMove, mouseMove, nativeToString, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected FlexScrollBar(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexScrollBardesktop
- the desktop on which this object livespublic void scroll(int position, FlexScrollDirection direction, FlexScrollDetail detail)
position
- contains the new scroll positiondirection
- contains the scroll direction, either ScrollEventDirection.HORIZONTAL or ScrollEventDirection.VERTICAL.detail
- provides the specifics of the type of scroll activity. Constants for the possible values are provided in the ScrollEventDetail class.public List<Color> getFillColors()
Pass the same color for both values for a flat-looking control. The default value is [ 0xFFFFFF, 0xCCCCCC ].
public double getLineScrollSize()
public double getPageScrollSize()
public double getScrollPosition()
The value is between minScrollPosition and maxScrollPosition inclusively.
The default value is 0.
Copyright 2009-2012 Micro Focus. All Rights Reserved.