Lines Matching defs:TreeElement
269 // If this representedObject has a tree element identifier, and it is a known TreeElement
337 return listNode.parentTreeElement || listNode.treeElement;
443 function TreeElement(title, representedObject, hasChildren)
467 TreeElement.prototype = {
581 TreeElement.prototype.appendChild = TreeOutline._appendChild;
582 TreeElement.prototype.insertChild = TreeOutline._insertChild;
583 TreeElement.prototype.removeChild = TreeOutline._removeChild;
584 TreeElement.prototype.removeChildAtIndex = TreeOutline._removeChildAtIndex;
585 TreeElement.prototype.removeChildren = TreeOutline._removeChildren;
586 TreeElement.prototype.removeChildrenRecursive = TreeOutline._removeChildrenRecursive;
588 TreeElement.prototype._attach = function()
595 this._listItemNode.treeElement = this;
608 this._listItemNode.addEventListener("mousedown", TreeElement.treeElementMouseDown, false);
609 this._listItemNode.addEventListener("click", TreeElement.treeElementToggled, false);
610 this._listItemNode.addEventListener("dblclick", TreeElement.treeElementDoubleClicked, false);
628 TreeElement.prototype._detach = function()
636 TreeElement.treeElementMouseDown = function(event)
639 if (!element || !element.treeElement || !element.treeElement.selectable)
642 if (element.treeElement.isEventWithinDisclosureTriangle(event))
645 element.treeElement.selectOnMouseDown(event);
648 TreeElement.treeElementToggled = function(event)
651 if (!element || !element.treeElement)
654 if (!element.treeElement.isEventWithinDisclosureTriangle(event))
657 if (element.treeElement.expanded) {
659 element.treeElement.collapseRecursively();
661 element.treeElement.collapse();
664 element.treeElement.expandRecursively();
666 element.treeElement.expand();
671 TreeElement.treeElementDoubleClicked = function(event)
674 if (!element || !element.treeElement)
677 if (element.treeElement.ondblclick)
678 element.treeElement.ondblclick.call(element.treeElement, event);
679 else if (element.treeElement.hasChildren && !element.treeElement.expanded)
680 element.treeElement.expand();
683 TreeElement.prototype.collapse = function()
698 TreeElement.prototype.collapseRecursively = function()
708 TreeElement.prototype.expand = function()
750 TreeElement.prototype.expandRecursively = function(maxDepth)
770 TreeElement.prototype.hasAncestor = function(ancestor) {
784 TreeElement.prototype.reveal = function()
797 TreeElement.prototype.revealed = function()
809 TreeElement.prototype.selectOnMouseDown = function(event)
814 TreeElement.prototype.select = function(supressOnSelect, selectedByUser)
836 TreeElement.prototype.deselect = function(supressOnDeselect)
851 TreeElement.prototype.traverseNextTreeElement = function(skipHidden, stayWithin, dontPopulate, info)
886 TreeElement.prototype.traversePreviousTreeElement = function(skipHidden, dontPopulate)
907 TreeElement.prototype.isEventWithinDisclosureTriangle = function(event)