public class SparkListBase extends SparkSkinnableDataContainer
Modifier | Constructor and Description |
---|---|
protected |
SparkListBase(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SparkListBase。
|
Modifier and Type | Method and Description |
---|---|
double |
getCaretIndex()
获取 当前处于焦点的项目。
|
int |
getItemsCount()
获取 ComboBox 中项目的数量。
|
String |
getLabelField()
获取 数据提供程序项目中可显示为标签的字段的名称。
|
int |
getSelectedIndex()
获取 所选项目的零基索引,如果未选择任何项目,则为 -1。
|
String |
getSelectedItem()
获取 当前所选项目。
|
boolean |
isRequireSelection()
获取 数据项目是否必须始终在控件中处于选定状态的值。
|
boolean |
isUseVirtualLayout()
获取 与此控件关联的布局的 useVirtualLayout 属性值。
|
void |
select(String itemRenderer)
选择列表中的项目时发送。
|
void |
select(String itemRenderer,
FlexTriggerEvent triggerEvent)
选择列表中的项目时发送。
|
void |
select(String itemRenderer,
FlexTriggerEvent triggerEvent,
ModifierKey keyModifier)
选择列表中的项目时发送。
|
void |
type(String keyCode)
用户按键时发送。
|
void |
type(String keyCode,
ModifierKey keyModifier)
用户按键时发送。
|
isAutoLayout
dragCancel, dragCancel, dragDrop, dragDrop, dragDrop, dragStart, dragStart, getColumnNames, getFirstVisibleRow, getLastVisibleRow, getNumColumns, getNumRows, getValues
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 SparkListBase(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 SparkListBase 的句柄desktop
- 此对象所在的桌面public int getItemsCount()
public void select(String itemRenderer)
itemRenderer
- 已选择的项目的 itemRendererpublic void select(String itemRenderer, FlexTriggerEvent triggerEvent)
itemRenderer
- 已选择的项目的 itemRenderertriggerEvent
- 是否用鼠标或键盘触发事件public void select(String itemRenderer, FlexTriggerEvent triggerEvent, ModifierKey keyModifier)
itemRenderer
- 已选择的项目的 itemRenderertriggerEvent
- 是否用鼠标或键盘触发事件keyModifier
- 表示当此操作发生时所按下的键或键组合的常数(如果有),其中包括:flexAlt、flexControl、flexControlAlt、flexControlShift、flexControlShiftAlt、flexShift 或 flexShiftAlt。例如,如果按下了 Shift 和 Alt 键,则值应是 flexShiftAlt。public void type(String keyCode)
keyCode
- 按下的键的键码值public void type(String keyCode, ModifierKey keyModifier)
keyCode
- 按下的键的键码值keyModifier
- 表示当此操作发生时所按下的键或键组合的常数(如果有),其中包括:flexAlt、flexControl、flexControlAlt、flexControlShift、flexControlShiftAlt、flexShift 或 flexShiftAlt。例如,如果按下了 Shift 和 Alt 键,则值应是 flexShiftAlt。public double getCaretIndex()
public String getLabelField()
public boolean isRequireSelection()
public int getSelectedIndex()
public String getSelectedItem()
public boolean isUseVirtualLayout()
Copyright 2009-2012 Micro Focus. All Rights Reserved.