Field Summary |
public
| allowDrag: Boolean |
| Gets or sets a value indicating whether this element can be used as the source of a drag-and-drop operation
|
|
public
| allowDrop: Boolean |
| Gets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation
|
|
public static
| classInfo: Object |
| A static class information object
|
|
public
| disableAcceptButton: Boolean |
| Disables the global accept button whilst this control has focus
|
|
public
| disableCancelButton: Boolean |
| Disables the global cancel button whilst this control has focus
|
|
public
| editor |
| Reference to the cell edit manager
|
|
public
| iconBinding: Binding |
| The binding of the child node or attibute of the row node containing the icon to display in the label control
|
|
public
| iconFormatter: Object |
| The formatter for the icon field
|
|
public
| iconFormatterOptions: String |
| Options for the formatter
|
|
public
| iconPath: String |
| The path or name of the child node or attibute of the row node containing the icon to display in the label control
|
|
public
| itemIndent |
| The standard value to indent the child items per level of the tree
|
|
public
| itemStyle: Object |
| The list item styles
|
|
public
| labelBinding: Binding |
| The binding of the child node or attibute of the row node containing the text to display in the label
|
|
public
| labelFormatter: Object |
| The formatter for the label field
|
|
public
| labelFormatterOptions: String |
| Options for the formatter
|
|
public
| labelPath: String |
| The path or name of the child node or attibute of the row node containing the text to display in the label
|
|
public
| maxNodeDepth |
| The maximum depth of nodes in the tree that will be read
|
|
public
| rowStyle: Object |
| The list row styles
|
|
public
| styleClass: String |
| The name of the style class this instance will use.
|
|
| Fields inherited from class xp.controls.ScrollSelectView__alternateColor, __backgroundColor, __hGridLineColor, __highlightColor, __selectColor, __selectedValueFormatter, __selectedValuePath, __vGridLineColor, autoSync, body, canEdit, canInsert, classInfo, editable, editorType, editRow, footer, header, hGridLines, hLargeScroll, hscrollbar, hScrollPolicy, hSmallScroll, isSelectionRequired, scrollMode, statusbar, tabStop, textHighlightColor, textSelectColor, titlebar, topIndex, useRollOver, vGridLines, vLargeScroll, vscrollbar, vScrollPolicy, vSmallScroll |
|
| 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 |
|
Property Summary |
public
| dataProvider: Object (read, write) |
| Gets or set the list items
|
|
public
| displayRowCount: Number (read-only)
|
| Number of rows of data we are currently trying to display
|
|
public
| document: XMLNode (read, write) |
| ITEMSOURCE////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
public
| itemsSource: XMLDataSource (read, write) |
| Gets or set the XMLDataSource
|
|
public
| rowCount (read-only)
|
| Number of rows actually visible in the viewport
|
|
public
| selectedNode: XMLNode (read, write) |
| Specifies the selected node in a TreeView instance.
|
|
public
| selectedRow: Object (read-only)
|
| Returns the currently selected row node
|
|
public
| virtualRowCount: Number (read-only)
|
| The number row buffers used for the visible scroll window
|
|
| Properties inherited from class xp.controls.ScrollSelectViewalternateColor, backgroundColor, contentHeight, contentPixelHeight, contentWidth, hGridLineColor, highlightColor, hPosition, rowAutosize, rowHeight, rowWidth, sbHHeight, sbVWidth, selectColor, selectedIndex, selectedIndices, selectedItem, selectedItems, selectedValue, selectedValueFormatter, selectedValuePath, selectionMode, variableRowHeight, vGridLineColor, viewportHeight, viewportLeft, viewportPixelHeight, viewportTop, viewportWidth, virtualMode, vPosition |
|
| 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
| TreeView (
)
|
| Constructor - This should not be called directly.
|
|
Method Summary |
public
| addNode (
parentNode: XMLNode, node: XMLNode
): XMLNode |
| Adds a child node at the specified index on the tree node
|
|
public
| addNodeAt (
index: Number, parentNode: XMLNode, node: XMLNode
): XMLNode |
| Adds a child node at the specified index on the tree node
|
|
public
| addTreeNode (
parent: XMLNode, name: String, label: String, data, id, isBranch: Boolean
): XMLNode |
| Appends a child node at the end of the tree node
|
|
public
| addTreeNodeAt (
index: Number, parentNode: XMLNode, name: String, label: String, data, id, isBranch: Boolean
): XMLNode |
| Adds a child node at the specified index on the tree node
|
|
public
| collapseRow (
row: Object, refresh: Boolean
): Void |
| Collapses a row
|
|
public
| createElement (
nodeName: String
): XMLNode |
| creates a new XML element with the name specified in the parameter
|
|
public
| expandRow (
row: Object, refresh: Boolean
): Void |
| Expands a row
|
|
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
| getDocumentElement (
): XMLNode |
| returns the document element this tree is bound to
|
|
public
| getIsBranch (
node: XMLNode
): Boolean |
| Specifies whether a node is a branch (has a folder icon and expander arrow).
|
|
public
| getIsOpen (
node: XMLNode
): Boolean |
| Indicates whether a node is open or closed.
|
|
public
| getItemAt (
index: Number
): Object |
| given an index find the item from the source
|
|
public
| getNodeDisplayedAt (
index: Number
): XMLNode |
| Maps a display index of the tree onto the node that is displayed there.
|
|
public
| getRowDisplayedAt (
index: Number
): Object |
| Returns the row object at the specified index.
|
|
public
| moveFirst (
): Void |
| Move to the first row in the ListDataSource
|
|
public
| moveLast (
): Void |
| Move to the last row in the ListDataSource
|
|
public
| moveSelBy (
inc: Number
): Void |
| Move the selection pointer by the amount specifed in the inc param
|
|
public static
| newInstance (
owner, instanceId, depth, initObj
) |
| Creates a new Instance of this class
|
|
public
| setIsBranch (
node: XMLNode, isBranch: Boolean
) |
| Specifies whether a node is a branch (has a folder icon and expander arrow).
|
|
public
| setIsOpen (
node: XMLNode, open: Boolean
) |
| Opens or closes a node.
|
|
public
| showDragRibbon (
state: Boolean
): Void |
| Displays the drop target ribbon over a cell
|
|
public
| toggleRow (
node: Object
): Void |
| Toggle a row
|
|
public
| updateDisplayedRowCount (
count: Number
): Void |
|
|
|
| Methods inherited from class xp.controls.ScrollSelectViewclearSelected, drawComponent, getClass, getItemAt, getItemIndex, getItemValue, getValueIndex, isSelected, setScrollContentVPos, setSelectedIndices, setSelectedItems |
|
| 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 |
|
|
The data of a tree component must be provided from an XML data source.
The list receives focus when you click it or tab to it, and you can then use the following keys to control it:
The TreeView component is designed to display hierarchical data structures using XML as the data model.
Event summary for the TreeView class
The following table lists events of the TreeView class.