public class SLPane extends SLBase
Modifier | Constructor and Description |
---|---|
protected |
SLPane(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SLPane。
|
Modifier and Type | Method and Description |
---|---|
double |
getHorizontalScrollPercent()
获取 当前水平滚动位置,如果无有效的滚动位置,则为负值 (-1)。
|
double |
getVerticalScrollPercent()
获取 当前垂直滚动位置,如果无有效的滚动位置,则为负值 (-1)。
|
boolean |
isHorizontallyScrollable()
获取 表示窗格是否可水平滚动的值。
|
boolean |
isVerticallyScrollable()
获取 表示窗格是否可垂直滚动的值。
|
void |
scrollHorizontal(ScrollAmount scrollAmount)
将内容区域的当前可见区域水平滚动指定 ScrollAmount。
|
void |
scrollVertical(ScrollAmount scrollAmount)
将内容区域的当前可见区域垂直滚动指定 ScrollAmount。
|
void |
setHorizontalScrollPercent(double percent)
设置水平滚动位置占窗格内全部内容区域的百分比。
|
void |
setVerticalScrollPercent(double percent)
设置垂直滚动位置占窗格内全部内容区域的百分比。
|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAutomationId, getClassName, getName, getRawChildren, getRawChildren, isEnabled, isFocused, mouseMove, mouseMove, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, 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 SLPane(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 SLPane 的句柄desktop
- 此对象所在的桌面public void scrollHorizontal(ScrollAmount scrollAmount)
scrollAmount
- 可滚动的方向和距离public void scrollVertical(ScrollAmount scrollAmount)
scrollAmount
- 可滚动的方向和距离public void setHorizontalScrollPercent(double percent)
percent
- 全部水平内容区域的百分比public void setVerticalScrollPercent(double percent)
percent
- 全部垂直内容区域的百分比public boolean isHorizontallyScrollable()
public double getHorizontalScrollPercent()
public boolean isVerticallyScrollable()
public double getVerticalScrollPercent()
Copyright 2009-2012 Micro Focus. All Rights Reserved.