패키지 | mx.controls.treeClasses |
인터페이스 | public interface ITreeDataDescriptor |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
관련 API 요소
메서드 | 정의 주체 | ||
---|---|---|---|
Adds a child node to a node at the specified index. | ITreeDataDescriptor | ||
Provides access to a node's children, returning a collection
view of children if they exist. | ITreeDataDescriptor | ||
Gets the data from a node. | ITreeDataDescriptor | ||
Tests for the existence of children in a non-terminating node. | ITreeDataDescriptor | ||
Tests a node for termination. | ITreeDataDescriptor | ||
Removes a child node to a node at the specified index. | ITreeDataDescriptor |
addChildAt | () | 메서드 |
public function addChildAt(parent:Object, newChild:Object, index:int, model:Object = null):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Adds a child node to a node at the specified index.
매개 변수
parent:Object — The node object that will parent the child.
| |
newChild:Object — The node object that will be parented by the node.
| |
index:int — The 0-based index of where to put the child node.
| |
model:Object (default = null ) — The entire collection that this node is a part of.
|
Boolean — true if successful.
|
getChildren | () | 메서드 |
public function getChildren(node:Object, model:Object = null):ICollectionView
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Provides access to a node's children, returning a collection view of children if they exist. A node can return any object in the collection as its children; children need not be nested. It is best-practice to return the same collection view for a given node.
매개 변수
node:Object — The node object currently being evaluated.
| |
model:Object (default = null ) — The entire collection that this node is a part of.
|
ICollectionView — An collection view containing the child nodes.
|
getData | () | 메서드 |
public function getData(node:Object, model:Object = null):Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Gets the data from a node.
매개 변수
node:Object — The node object from which to get the data.
| |
model:Object (default = null ) — The collection that contains the node.
|
Object — The requested data.
|
hasChildren | () | 메서드 |
public function hasChildren(node:Object, model:Object = null):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Tests for the existence of children in a non-terminating node.
매개 변수
node:Object — The current node.
| |
model:Object (default = null ) — The entire collection that this node is a part of.
|
Boolean — true if the node has at least one child.
|
isBranch | () | 메서드 |
public function isBranch(node:Object, model:Object = null):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Tests a node for termination. Branches are non-terminating but are not required to have any leaf nodes.
매개 변수
node:Object — The node object currently being evaluated.
| |
model:Object (default = null ) — The entire collection that this node is a part of.
|
Boolean — A Boolean indicating if this node is non-terminating.
|
removeChildAt | () | 메서드 |
public function removeChildAt(parent:Object, child:Object, index:int, model:Object = null):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Removes a child node to a node at the specified index.
매개 변수
parent:Object — The node object that is the parent of the child.
| |
child:Object — The node object that will be removed.
| |
index:int — The 0-based index of the soon to be deleted node.
| |
model:Object (default = null ) — The entire collection that this node is a part of.
|
Boolean — true if successful.
|
Tue Jun 12 2018, 03:17 PM Z