public class FlexTree extends FlexList
Each item in a tree can be a leaf or a branch. A leaf item is an end point in the tree. A branch item can contain leaf or branch items, or it can be empty.
By default, a leaf is represented by a text label next to a file icon. A branch is represented by a text label next to a folder icon, with a disclosure triangle that a user can open to expose children.
Modifier | Constructor and Description |
---|---|
protected |
FlexTree(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexTree with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
close(String itemRenderer)
Closes or collapses a tree branch.
|
void |
close(String itemRenderer,
FlexTriggerEvent triggerEvent)
Closes or collapses a tree branch.
|
List<Color> |
getDepthColors()
Gets the array of colors used in the Tree control, in descending order.
|
Color |
getDisabledColor()
Gets the disabled color of a list item.
|
double |
getIndentation()
Gets the indentation for each tree level, in pixels.
|
boolean |
isEditable()
Gets whether the user can edit items in the data provider.
|
void |
open(String itemRenderer)
Opens or expands a tree branch.
|
void |
open(String itemRenderer,
FlexTriggerEvent triggerEvent)
Opens or expands a tree branch.
|
deselect, deselect, deselect, doubleSelect, dragCancel, dragCancel, dragDrop, dragDrop, dragDrop, dragStart, dragStart, getAlternatingItemColors, getBackgroundDisabledColor, getColumnCount, getColumnNames, getColumnWidth, getDataTipField, getFirstVisibleRow, getFocusAlpha, getIconField, getLabelField, getLastVisibleRow, getLockedColumnCount, getLockedRowCount, getNumColumns, getNumRows, getRollOverColor, getRowCount, getRowHeight, getSelectedIndex, getSelectedIndices, getSelectedItem, getSelectedItems, getSelectionColor, getSelectionDisabledColor, getTextRollOverColor, getTextSelectedColor, getValues, getVerticalAlign, isAllowMultipleSelection, isSelectable, isShowDataTips, isUseRollOver, isVariableRowHeight, isWordWrap, multiSelect, multiSelect, multiSelect, scroll, scrollToIndex, select, select, select, selectIndex, selectIndex, selectIndex, type, type
mouseScroll, mouseScroll
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 FlexTree(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexTreedesktop
- the desktop on which this object livespublic void close(String itemRenderer)
itemRenderer
- the ListItemRenderer for the node that closedpublic void close(String itemRenderer, FlexTriggerEvent triggerEvent)
itemRenderer
- the ListItemRenderer for the node that closedtriggerEvent
- if the node closed in response to a user action, identifies it as a keyboard action or a mouse actionpublic void open(String itemRenderer)
itemRenderer
- the ListItemRenderer for the item (node) that openedpublic void open(String itemRenderer, FlexTriggerEvent triggerEvent)
itemRenderer
- the ListItemRenderer for the item (node) that openedtriggerEvent
- if the item (node) opened in response to a user action, identifies it as a keyboard action or a mouse actionpublic List<Color> getDepthColors()
public Color getDisabledColor()
public boolean isEditable()
public double getIndentation()
Copyright 2009-2012 Micro Focus. All Rights Reserved.