public class FlexAccordion extends FlexContainer
存在与每个子级容器关联的导航器按钮,每个导航器按钮均属于 Accordion 容器,而非子级。当用户单击导航器按钮时,关联子级容器会显示。新子级的转换过程将利用动画清晰地向用户展示:一个子级消失,而另一个子级出现。
Accordion 容器不会展开 ViewStack 容器,但它会实施 ViewStack 容器(如 selectedIndex 和 selectedChild)的所有属性、方法、样式和事件。
| Modifier | Constructor and Description |
|---|---|
protected |
FlexAccordion(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexAccordion。
|
| Modifier and Type | Method and Description |
|---|---|
void |
change()
所选子级容器变化时发送。
|
void |
change(String relatedObject)
所选子级容器变化时发送。
|
int |
getHeaderHeight()
获取 每个 Accordion 标题的高度(像素)。
|
double |
getHorizontalGap()
获取 水平方向上子级之间的像素数量。
|
double |
getPaddingBottom()
获取 容器下边框与其内容区域之间的像素数量。
|
double |
getPaddingTop()
获取 容器上边框与其内容区域之间的像素数量。
|
String |
getSelectedChild()
获取 当前可见子级容器的参考。
|
int |
getSelectedIndex()
获取 当前可见子级容器的零基索引。
|
Color |
getTextSelectedColor()
获取 所选文本的颜色。
|
double |
getVerticalGap()
获取 垂直方向上子级之间的像素数量。
|
void |
type(String keyCode)
用户按键时发送。
|
void |
type(String keyCode,
ModifierKey keyModifier)
用户按键时发送。
|
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, scrollchangeFocus, 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 FlexAccordion(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 FlexAccordion 的句柄desktop - 此对象所在的桌面public void change()
IndexChangedEvent.CHANGE 常数为更改事件定义事件对象的类型属性值,其表示索引已变化,例如,当 Accordion 控件更改显示的面板或 ViewStack 更改视图时。
public void change(String relatedObject)
IndexChangedEvent.CHANGE 常数为更改事件定义事件对象的类型属性值,其表示索引已变化,例如,当 Accordion 控件更改显示的面板或 ViewStack 更改视图时。
relatedObject - 包含新索引对应的子级对象参考public void type(String keyCode)
键与特定字符之间的映射因设备和操作系统而异。此事件类型将在映射发生后且处理输入法编辑器 (IME) 前生成。IME 用于输入字符,例如中文表意文字,而标准 QWERTY 键盘无法生成此类文字。
keyCode - 按下或松开的键的键码值public void type(String keyCode, ModifierKey keyModifier)
键与特定字符之间的映射因设备和操作系统而异。此事件类型将在映射发生后且处理输入法编辑器 (IME) 前生成。IME 用于输入字符,例如中文表意文字,而标准 QWERTY 键盘无法生成此类文字。
keyCode - 按下或松开的键的键码值keyModifier - 单击控件时可使用的键修饰符(例如 Ctrl 键)public int getHeaderHeight()
默认值基于标题的字体样式自动计算。
public double getHorizontalGap()
public double getPaddingBottom()
默认值为 -1,以便最后一个标题的下边框重叠 Accordion 容器的下边框。
public double getPaddingTop()
默认值为 -1,以便第一个标题的上边框重叠 Accordion 容器的上边框。
public String getSelectedChild()
默认值为第一个子级的参考。如果不存在任何子级,则此属性为 null。
注意:您仅能在 ActionScript 语句而非 MXML 中设置此属性。
public int getSelectedIndex()
子级索引在 0, 1, 2, ..., n - 1 范围内,其中 n 是子级数量。
默认值为 0(对应第一个子级)。如果不存在任何子级,则此属性为 -1。
public Color getTextSelectedColor()
public double getVerticalGap()
默认值为 -1,以便相邻标题的上下边框重叠。
Copyright 2009-2012 Micro Focus. All Rights Reserved.