public class FlexAccordion extends FlexContainer
There is one navigator button associated with each child container, and each navigator button belongs to the Accordion container, not to the child. When the user clicks a navigator button, the associated child container is displayed. The transition to the new child uses an animation to make it clear to the user that one child is disappearing and a different one is appearing.
The Accordion container does not extend the ViewStack container, but it implements all the properties, methods, styles, and events of the ViewStack container, such as selectedIndex and selectedChild.
Modifier | Constructor and Description |
---|---|
protected |
FlexAccordion(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexAccordion with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
change()
Dispatched when the selected child container changes.
|
void |
change(String relatedObject)
Dispatched when the selected child container changes.
|
int |
getHeaderHeight()
Gets the height of each accordion header, in pixels.
|
double |
getHorizontalGap()
Gets the number of pixels between children in the horizontal direction.
|
double |
getPaddingBottom()
Gets the number of pixels between the container's bottom border and its content area.
|
double |
getPaddingTop()
Gets the number of pixels between the container's top border and its content area.
|
String |
getSelectedChild()
Gets a reference to the currently visible child container.
|
int |
getSelectedIndex()
Gets the zero-based index of the currently visible child container.
|
Color |
getTextSelectedColor()
Gets the color of selected text.
|
double |
getVerticalGap()
Gets the number of pixels between children in the vertical direction.
|
void |
type(String keyCode)
Dispatched when the user presses a key.
|
void |
type(String keyCode,
ModifierKey keyModifier)
Dispatched when the user presses a key.
|
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 FlexAccordion(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexAccordiondesktop
- the desktop on which this object livespublic void change()
The IndexChangedEvent.CHANGE constant defines the value of the type property of the event object for a change event, which indicates that an index has changed, such as when an Accordion control changes the displayed panel or a ViewStack changes views.
public void change(String relatedObject)
The IndexChangedEvent.CHANGE constant defines the value of the type property of the event object for a change event, which indicates that an index has changed, such as when an Accordion control changes the displayed panel or a ViewStack changes views.
relatedObject
- contains a reference to the child object that corresponds to the new indexpublic void type(String keyCode)
Mappings between keys and specific characters vary by device and operating system. This event type is generated after such a mapping occurs but before the processing of an input method editor (IME). IMEs are used to enter characters, such as Chinese ideographs, that the standard QWERTY keyboard is ill-equipped to produce.
keyCode
- the key code value of the key pressed or releasedpublic void type(String keyCode, ModifierKey keyModifier)
Mappings between keys and specific characters vary by device and operating system. This event type is generated after such a mapping occurs but before the processing of an input method editor (IME). IMEs are used to enter characters, such as Chinese ideographs, that the standard QWERTY keyboard is ill-equipped to produce.
keyCode
- the key code value of the key pressed or releasedkeyModifier
- the key modifiers (for example, the Ctrl key) to use when clicking the controlpublic int getHeaderHeight()
The default value is automatically calculated based on the font styles for the header.
public double getHorizontalGap()
public double getPaddingBottom()
The default value is -1, so the bottom border of the last header overlaps the Accordion container's bottom border.
public double getPaddingTop()
The default value is -1, so the top border of the first header overlaps the Accordion container's top border.
public String getSelectedChild()
The default value is a reference to the first child. If there are no children, this property is null.
Note: You can only set this property in an ActionScript statement, not in MXML.
public int getSelectedIndex()
Child indexes are in the range 0, 1, 2, ..., n - 1, where n is the number of children.
The default value is 0, corresponding to the first child. If there are no children, this property is -1.
public Color getTextSelectedColor()
public double getVerticalGap()
The default value is -1, so the top and bottom borders of adjacent headers overlap.
Copyright 2009-2012 Micro Focus. All Rights Reserved.