Field Summary |
public static
| classInfo: Object |
| A static class information object
|
|
public
| level: Number |
| Tree level indicator, root is always -1
|
|
public
| maxNodeDepth |
| The maximum depth of nodes in the tree that will be read
|
|
public
| styleClass: String |
| The name of the style class this instance will use.
|
|
public
| treeItems: Array |
| Hierarchical display tree of child rows
|
|
public
| variableRowWidth: Boolean |
| Controls whether all rows are the same width
|
|
|
| Fields inherited from class xp.controls.Container__showStatusBar, __showTitleBar, acceptButton, cancelButton, children, classInfo, controlBar, controls, dataSource, enableBGMouseEvents, initialFocusControl, isRoot, lastFocus, layoutDescriptor, layoutId, layoutManager, rootContainer, styleClass, symbolId, tabList, tabModeWrap |
|
| Fields inherited from class xp.system.UIControl__layout, allowDrop, autoLayout, bindingDefaultValue, bindingFormatter, bindingPath, bindingSource, bindingType, bindingValidator, border, causesValidation, classInfo, clickOnENTER, clickOnSPACE, container, context, data, disableAcceptButton, disableCancelButton, enableBGMouseEvents, enableDblClickEvent, enableKeyDownEvents, enableKeyEvents, enableKeyUpEvents, enableMouseWheelEvents, formatterOptions, horizontalAlignment, index, isBinding, itemId, logEnabled, parent, parentContainer, parentForm, percentageHeight, percentageWidth, styleClass, tabIndex, tabStop, tooltip, tree, verticalAlignment |
|
|
| Properties inherited from class xp.controls.ContainerchildCount, footerHeight, headerHeight, innerBackground, innerBackgroundVisible, innerBorderBrush, innerBorderRadius, innerBorderStyle, innerBorderThickness, numChildren, showStatusBar, showTitleBar, status, title |
|
| Properties inherited from class xp.system.UIControlalpha, autosize, background, backgroundVisible, bindings, borderBrush, borderRadius, borderShadow, borderStyle, borderThickness, bottom, dataSource, enableMouseEvents, focusManager, height, id, isEnabled, isFocused, isMouseOver, isPressed, isSelected, isValid, layout, left, margin, maxHeight, maxWidth, measuredHeight, measuredMinHeight, measuredMinWidth, measuredWidth, minHeight, minWidth, padding, readOnly, resources, right, styleName, top, triggers, visible, width, x, y |
|
Constructor |
public
| TreeItemsControl (
)
|
| Constructor - This should not be called directly.
|
|
Method Summary |
public
| addItem (
itemDesc: Object
): Object |
| Add an item to the ItemsControl
|
|
| addNode (
node: XMLNode, parentItem: MovieClip, index: Number
): Object |
| Adds a node to the heirarchical tree Create a row and adds it to the treeItems and children array's
|
|
public
| addNodes (
nodes: Array, parentItem: Object, index: Number
): Void |
| Adds a set of row nodes to the items control
|
|
public
| buildFlatView (
): Void |
| Rebuilds the flat children array from the hierarchical tree.
|
|
public
| clearAll (
): Void |
| Removes and destroys all items from the control
|
|
public
| findNextRow (
index: Number, dir: Number
): Number |
| Get the index of the next visible row in the ItemControl.
|
|
public
| getClass (
): Function |
| Returns a reference to the components static class
|
|
public
| getDisplayIndex (
node: XMLNode
): Number |
| Returns the display index of a given node.
|
|
public
| getDisplayRow (
node: XMLNode
) |
| Returns the row object associated with a given XMLNode
|
|
public
| getDisplayRowCount (
): Number |
| Calculates the number of displayed rows
|
|
public
| getNodeDisplayedAt (
index: Number
): XMLNode |
| Maps a display index of the tree onto the node that is displayed there.
|
|
public
| removeNode (
node: XMLNode
): Void |
| Removes a row associated with an XMLNode form the display tree
|
|
public
| removeRow (
index: Number
): XMLNode |
| Removes a row from the display tree
|
|
public
| updateTree (
node: XMLNode
): Void |
| Updates an entire sub tree
|
|
|
| Methods inherited from class xp.controls.ContaineraddChild, addChildren, addControlBar, clearAll, createChild, destroyChildAt, getChild, getChildAt, getChildFromMouse, getClass, getFooterHeight, getHeaderHeight, getNextControl, getUIBuilder, getViewMetrics, initLayoutManager, onChildFocus, processEnterKey, processEscapeKey, registerChild, selectNextControl, setDataContext, setFocus, setMeasuredMinSize, setMeasuredSize, unregisterChild |
|
| Methods inherited from class xp.system.UIControladdBinding, addBindings, addEventListener, addPropertyTrigger, applyStyle, beginDeferUpdate, canUpdate, centerContent, checkState, containsFocus, destroy, destroyObject, drawFocus, endDeferUpdate, findFocusFromObject, findFocusInChildren, getBinding, getBounds, getCenter, getClass, getFocus, getFocusManager, getFocusRect, getLocation, getPropertyValue, getSize, getStateName, getTrigger, globalToLocalPoint, invalidate, invalidateLayout, invalidateSize, invalidateSizeAndLayout, invalidChild, isChild, isMouseDirectlyOver, isParent, localToGlobalPoint, localToLocalPoint, measure, mouseWheel, move, onChildFocus, onKillFocus, onSetFocus, processEnterKey, processEscapeKey, processTabKey, redraw, refresh, removeEventListener, routeEvent, setBounds, setFocus, setLocation, setPropertyValue, setSize, setValueChanged, update, validate |
|
|