public class UpDown extends Control
| Modifier | Constructor and Description |
|---|---|
protected |
UpDown(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 UpDown。
|
| Modifier and Type | Method and Description |
|---|---|
void |
decrement()
减少向上/向下控件的位置值。
|
void |
decrement(int amount)
减少向上/向下控件的位置值。
|
int |
getPosition()
获取 向上/向下控件的位置。
|
Range |
getRange()
获取 向上/向下控件的范围。
|
void |
increment()
增加向上/向下控件的位置值。
|
void |
increment(int amount)
增加向上/向下控件的位置值。
|
boolean |
isHorizontal()
获取 向上/向下控件是否水平。
|
boolean |
isWrapAround()
获取 如果值小于最小值或大于最大值,则是否包含这些值。
|
void |
setPosition(int position)
设置 向上/向下控件的位置。
|
void |
setRange(Range range)
设置 向上/向下控件的范围。
|
getHorizontalBar, getVerticalBar, openContextMenu, openContextMenuclick, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getBackground, getFont, getForeground, getNativeHandle, isEnabled, isFocused, isVisible, mouseMove, mouseMove, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setBackground, setEnabled, setFocus, setFont, setForeground, setVisible, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeyscaptureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, 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, waitForPropertyequals, 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, toStringprotected UpDown(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 UpDown 的句柄desktop - 此对象所在的桌面public void decrement()
public void decrement(int amount)
amount - 减量。默认值为“1”。public void increment()
public void increment(int amount)
amount - 增量。默认值为“1”。public boolean isHorizontal()
public int getPosition()
public void setPosition(int position)
position - 向上/向下控件的位置public Range getRange()
public void setRange(Range range)
range - 向上/向下控件的范围public boolean isWrapAround()
Copyright 2009-2012 Micro Focus. All Rights Reserved.