public class FlexTabNavigator extends FlexViewStack
Modifier | Constructor and Description |
---|---|
protected |
FlexTabNavigator(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexTabNavigator。
|
Modifier and Type | Method and Description |
---|---|
void |
change(String relatedObject)
定义 itemClick 事件的事件对象的类型属性值。
|
String |
getHorizontalAlign()
获取 此 TabNavigator 容器顶部的选项卡水平定位。
|
double |
getHorizontalGap()
获取 选项卡之间的间隔(像素)。
|
double |
getTabHeight()
获取 每个选项卡的高度(像素)。
|
double |
getTabWidth()
获取 每个选项卡的宽度(像素)。
|
getSelectedChild, getSelectedIndex, type, type
dragCancel, dragCancel, dragDrop, dragDrop, dragDrop, dragStart, dragStart, getBackgroundAlpha, getBackgroundColor, getBackgroundDisabledColor, getBackgroundImage, getBackgroundSize, getColumnNames, getCreationIndex, getCreationPolicy, getFillAlphas, getFillColors, getFirstVisibleRow, getFontFamily, getFontSize, getFontStyle, getFontWeight, getLabel, getLastVisibleRow, getNumChildren, getNumColumns, getNumRows, getValues, mouseScroll, mouseScroll, scroll
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 FlexTabNavigator(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 FlexTabNavigator 的句柄desktop
- 此对象所在的桌面public void change(String relatedObject)
relatedObject
- 生成了事件的子级对象public String getHorizontalAlign()
可能值为:左、居中和右。默认值为左。
如果值为左,则第一个选项卡的左边与 TabNavigator 容器的左边对齐。如果值为右,则最后一个选项卡的右边与 TabNavigator 容器的右边对齐。如果值为居中,则选项卡在 TabNavigator 容器顶部居中显示。
要查看对齐方式之间的差异,所有选项卡的总宽度必须小于 TabNavigator 容器的宽度。
public double getHorizontalGap()
public double getTabHeight()
默认值为未定义。当未定义此属性时,每个选项卡的高度由适用于此 TabNavigator 容器的字体样式确定。如果您设置此属性,则指定的值会覆盖此计算结果。
public double getTabWidth()
默认值为未定义。当未定义此属性时,每个选项卡的宽度由其标签文本(使用适用于此 TabNavigator 容器的字体样式)宽度确定。如果选项卡的总宽度大于 TabNavigator 容器宽度,则计算的选项卡宽度会减少,但仅减少至最小值 30 像素。如果您设置此属性,则指定的值会覆盖此计算结果。
选项卡上的标签文本会在不适合选项卡大小时被截断。如果截断选项卡标签,则具有完整标签文本的工具提示会当用户在选项卡上滚动鼠标时显示。
Copyright 2009-2012 Micro Focus. All Rights Reserved.