public class FlexComboBox extends FlexComboBase
如果 ComboBox 可编辑,则用户可在菜单中没有的 ComboBox 的 TextInput 部分键入条目。
| Modifier | Constructor and Description |
|---|---|
protected |
FlexComboBox(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexComboBox。
|
| Modifier and Type | Method and Description |
|---|---|
List<Color> |
getAlternatingItemColors()
获取 下列列表行的 BackgroundColors 集(交替模式)。
|
List<String> |
getColumnNames()
获取 包含数据中所有列的名称的列表。
|
int |
getFirstVisibleRow()
获取 第一个可见子级的索引。
|
int |
getLastVisibleRow()
获取 最后一个可见子级的索引。
|
int |
getNumColumns()
获取 可用数据中的总列数。
|
int |
getNumRows()
获取 可用数据的总行数。
|
Color |
getRollOverColor()
获取 下拉列表的 rollOverColor。
|
Color |
getSelectionColor()
获取 下拉列表的 selectionColor。
|
List<List<String>> |
getValues(int start,
int end)
返回矩阵,其包含所有组件部分的自动化值。
|
void |
select(String itemRenderer)
为在选择单个项目时发送的事件定义事件对象的类型属性值。
|
void |
select(String itemRenderer,
FlexTriggerEvent triggerEvent)
为在选择单个项目时发送的事件定义事件对象的类型属性值。
|
void |
select(String itemRenderer,
FlexTriggerEvent triggerEvent,
ModifierKey keyModifier)
为在选择单个项目时发送的事件定义事件对象的类型属性值。
|
void |
selectIndex(int itemIndex)
为在选择单个项目时发送的事件定义事件对象的类型属性值。
|
void |
selectIndex(int itemIndex,
FlexTriggerEvent triggerEvent)
为在选择单个项目时发送的事件定义事件对象的类型属性值。
|
void |
selectIndex(int itemIndex,
FlexTriggerEvent triggerEvent,
ModifierKey keyModifier)
为在选择单个项目时发送的事件定义事件对象的类型属性值。
|
close, close, getBackgroundAlpha, getBackgroundColor, getBackgroundImage, getBackgroundSize, getColor, getDisabledColor, getFillAlphas, getFillColors, getFontFamily, getFontSize, getFontStyle, getFontWeight, getHighlightColor, getRestrict, getSelectedIndex, getText, getTextAlign, getTextDecoration, getTextIndent, input, isDropShadowEnabled, isEditable, open, open, scroll, selectText, type, typechangeFocus, 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, 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 FlexComboBox(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 FlexComboBox 的句柄desktop - 此对象所在的桌面public List<List<String>> getValues(int start, int end)
返回值是一个行数组,每个行数组是一个项目数组。
start - 开始子级的索引。默认值为 0。end - 结束子级的索引。默认值为 0。public void select(String itemRenderer)
itemRenderer - 项目的项目呈现器对象public void select(String itemRenderer, FlexTriggerEvent triggerEvent)
itemRenderer - 项目的项目呈现器对象triggerEvent - 触发了操作的事件,例如鼠标或键盘事件public void select(String itemRenderer, FlexTriggerEvent triggerEvent, ModifierKey keyModifier)
itemRenderer - 项目的项目呈现器对象triggerEvent - 触发了操作的事件,例如鼠标或键盘事件keyModifier - 可使用的键修饰符(例如 Ctrl 键)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 - 可使用的键修饰符(例如 Ctrl 键)public List<Color> getAlternatingItemColors()
值可为两种或多种颜色的数组。如果未定义,则行将使用下拉列表的 backgroundColor 样式。默认值为未定义。
public int getFirstVisibleRow()
public int getLastVisibleRow()
public int getNumColumns()
public int getNumRows()
public Color getRollOverColor()
public Color getSelectionColor()
Copyright 2009-2012 Micro Focus. All Rights Reserved.