public class FlexMenuBar extends FlexObject
Modifier | Constructor and Description |
---|---|
protected |
FlexMenuBar(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexMenuBar。
|
Modifier and Type | Method and Description |
---|---|
Color |
getBackgroundColor()
获取 组件的背景颜色。
|
Color |
getColor()
获取 组件中的文本颜色,包括组件标签。
|
List<String> |
getColumnNames()
获取 包含数据中所有列的名称的列表。
|
Color |
getDisabledColor()
获取 已禁用组件时组件中的文本颜色。
|
List<Color> |
getFillColors()
获取 用于控件背景色填充的颜色。
|
int |
getFirstVisibleRow()
获取 第一个可见子级的索引。
|
String |
getFontFamily()
获取 可使用的字体名称。
|
double |
getFontSize()
获取 文本高度(像素)。
|
String |
getFontStyle()
获取 文本是否为斜体。
|
String |
getFontWeight()
获取 文本是否为粗体。
|
int |
getLastVisibleRow()
获取 最后一个可见子级的索引。
|
int |
getNumChildren()
获取 此对象的子级数量。
|
int |
getNumColumns()
获取 可用数据中的总列数。
|
int |
getNumRows()
获取 可用数据的总行数。
|
Color |
getRollOverColor()
获取 用户在项目上滚动鼠标时呈现的菜单项目背景颜色。
|
double |
getSelectedIndex()
获取 当前打开菜单或最后一个打开菜单(当前无任何菜单打开)的 MenuBar 控件中的索引。
|
Color |
getSelectionColor()
获取 菜单项目选中时呈现的菜单项目背景颜色。
|
String |
getTextAlign()
获取 容器中的文本对齐。
|
String |
getTextDecoration()
获取 文本是否加下划线。
|
int |
getTextIndent()
获取 容器左侧文本的第一行的偏移(像素)。
|
List<List<String>> |
getValues(int start,
int end)
返回矩阵,其包含所有组件部分的自动化值。
|
void |
hide()
菜单或子菜单解除时发送。
|
void |
show(String itemRenderer)
菜单或子菜单打开时发送。
|
void |
type(String keyCode)
用户按键时发送。
|
void |
type(String keyCode,
ModifierKey keyModifier)
用户按键时发送。
|
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 FlexMenuBar(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 FlexMenuBar 的句柄desktop
- 此对象所在的桌面public List<List<String>> getValues(int start, int end)
返回值是一个行数组,每个行数组是一个项目数组。
start
- 开始子级的索引。默认值为 0。end
- 结束子级的索引。默认值为 0。public void hide()
public void show(String itemRenderer)
itemRenderer
- 此属性未为此事件类型设置public void type(String keyCode)
keyCode
- 按下或松开的键的键码值public void type(String keyCode, ModifierKey keyModifier)
keyCode
- 按下或松开的键的键码值keyModifier
- 可使用的键修饰符(例如 Ctrl 键)public Color getBackgroundColor()
默认值为未定义,这意味着尚未进行设置并且组件具有透明背景。
大多数 Flex 控件的默认外观部分透明。因此,容器的背景颜色部分显示通过该容器内的控件。您可通过将控件 fillAlphas 属性的阿尔法值设置为 1 来避免此问题。
public Color getColor()
public Color getDisabledColor()
public List<Color> getFillColors()
为两个平看控件值分配相同颜色。默认值为 [ 0xFFFFFF, 0xCCCCCC ]。
public int getFirstVisibleRow()
public String getFontFamily()
不同于完整的 CSS 实施,逗号分隔的列表不受支持。您可以使用任何字体系列名称。如果您指定字体名,则系统会将其转换为相应的设备字体。默认值为 Verdana
。
public double getFontSize()
除 ColorPicker 控件外,对于所有其他控件,默认值为 10;对于 ColorPicker 控件,默认值为 11。
public String getFontStyle()
认可的值为常规
和斜体
。默认值为常规
。
public String getFontWeight()
认可的值为常规和粗体。Button 控件的默认值为粗体。所有其他控件的默认值为常规。
public int getLastVisibleRow()
public int getNumChildren()
public int getNumColumns()
public int getNumRows()
public Color getRollOverColor()
public double getSelectedIndex()
public Color getSelectionColor()
public String getTextAlign()
可能值为:左、右或居中。
多数组件的默认值为左。对于 FormItem 组件,默认值为右。对于 Button、LinkButton 和 AccordionHeader 组件,默认值为居中,仅在 labelPlacement 属性设为左或右时才能识别此属性。如果 labelPlacement 设为上或下,则将居中对齐文本和所有图标。
public String getTextDecoration()
可能值为无
和下划线
。默认值为无
。
public int getTextIndent()
Copyright 2009-2012 Micro Focus. All Rights Reserved.