public class SparkList extends SparkListBase
| Modifier | Constructor and Description |
|---|---|
protected |
SparkList(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SparkList。
|
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
getSelectedIndices()
获取 表示当前所选项目的索引的列表。
|
List<String> |
getSelectedItems()
获取 表示当前所选数据项目的对象的列表。
|
boolean |
isAllowMultipleSelection()
获取 多项选择是否已启用的值。
|
boolean |
isDragEnabled()
获取 表示是否可以将项目拖出此控件并将其放在其他控件上的标记。
|
boolean |
isDragMoveEnabled()
获取 表示是否可以移动项目而不只是从控件复制(作为拖放操作的一部分)的标记。
|
boolean |
isDropEnabled()
获取 表示是否可将拖动项目放在控件上的标记。
|
void |
selectIndex(int itemIndex)
用户单击列表中的项目或导航至使用键盘的项目时发送。
|
void |
selectIndex(int itemIndex,
FlexTriggerEvent triggerEvent)
用户单击列表中的项目或导航至使用键盘的项目时发送。
|
void |
selectIndex(int itemIndex,
FlexTriggerEvent triggerEvent,
ModifierKey keyModifier)
用户单击列表中的项目或导航至使用键盘的项目时发送。
|
getCaretIndex, getItemsCount, getLabelField, getSelectedIndex, getSelectedItem, isRequireSelection, isUseVirtualLayout, select, select, select, type, typeisAutoLayoutdragCancel, dragCancel, dragDrop, dragDrop, dragDrop, dragStart, dragStart, getColumnNames, getFirstVisibleRow, getLastVisibleRow, getNumColumns, getNumRows, getValueschangeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocusclick, 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, typePasswordKeyscaptureBitmap, 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, 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 SparkList(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 SparkList 的句柄desktop - 此对象所在的桌面public void selectIndex(int itemIndex)
itemIndex - 已选择的项目的索引public void selectIndex(int itemIndex,
FlexTriggerEvent triggerEvent)
itemIndex - 已选择的项目的索引triggerEvent - 是否用鼠标或键盘触发事件public void selectIndex(int itemIndex,
FlexTriggerEvent triggerEvent,
ModifierKey keyModifier)
itemIndex - 已选择的项目的索引triggerEvent - 是否用鼠标或键盘触发事件keyModifier - 表示当此操作发生时所按下的键或键组合的常数(如果有),其中包括:flexAlt、flexControl、flexControlAlt、flexControlShift、flexControlShiftAlt、flexShift 或 flexShiftAlt。例如,如果按下了 Shift 和 Alt 键,则值应是 flexShiftAlt。public boolean isAllowMultipleSelection()
public boolean isDragEnabled()
public boolean isDragMoveEnabled()
public boolean isDropEnabled()
Copyright 2009-2012 Micro Focus. All Rights Reserved.