public class FlexScrollBar extends FlexObject
Modifier | Constructor and Description |
---|---|
protected |
FlexScrollBar(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexScrollBar。
|
Modifier and Type | Method and Description |
---|---|
List<Color> |
getFillColors()
获取 用于控件背景色填充的颜色。
|
double |
getLineScrollSize()
获取 按箭头按钮时的滚动量(像素)。
|
double |
getPageScrollSize()
获取 按滚动条轨迹时滑块的滚动量(像素)。
|
double |
getScrollPosition()
获取 表示当前滚动位置的数字。
|
List<Color> |
getTrackColors()
获取 轨迹的颜色,作为两种颜色的数组。
|
void |
scroll(int position,
FlexScrollDirection direction,
FlexScrollDetail detail)
ScrollBar 控件滚动用户或程序启动的操作时发送。
|
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
- 可确定 FlexScrollBar 的句柄desktop
- 此对象所在的桌面public void scroll(int position, FlexScrollDirection direction, FlexScrollDetail detail)
position
- 包含新滚动位置direction
- 包含滚动方向 ScrollEventDirection.HORIZONTAL 或 ScrollEventDirection.VERTICALdetail
- 提供滚动活动的类型特性。可能值常数在 ScrollEventDetail 类中提供。public List<Color> getFillColors()
为两个平看控件值分配相同颜色。默认值为 [ 0xFFFFFF, 0xCCCCCC ]。
public double getLineScrollSize()
public double getPageScrollSize()
public double getScrollPosition()
值在 minScrollPosition 与 maxScrollPosition 之间,含 minScrollPosition 和 maxScrollPosition。
默认值为 0。
Copyright 2009-2012 Micro Focus. All Rights Reserved.