패키지 | mx.controls.treeClasses |
인터페이스 | public interface ITreeDataDescriptor2 extends ITreeDataDescriptor |
구현자 | DefaultDataDescriptor |
언어 버전: | 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 | ||
getHierarchicalCollectionAdaptor(hierarchicalData:ICollectionView, uidFunction:Function, openItems:Object, model:Object = null):ICollectionView
Returns an ICollectionView instance that makes the hierarchical data appear
as if it was a linear ICollectionView instance. | ITreeDataDescriptor2 | ||
Returns the depth of the node, meaning the number of ancestors it has. | ITreeDataDescriptor2 | ||
Returns the parent of the node
The parent of a top-level node is null. | ITreeDataDescriptor2 | ||
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 |
메서드 세부 정보
getHierarchicalCollectionAdaptor | () | 메서드 |
public function getHierarchicalCollectionAdaptor(hierarchicalData:ICollectionView, uidFunction:Function, openItems:Object, model:Object = null):ICollectionView
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns an ICollectionView instance that makes the hierarchical data appear as if it was a linear ICollectionView instance.
매개 변수
hierarchicalData:ICollectionView — The hierarchical data.
| |
uidFunction:Function — A function that takes an Object and returns the UID, as a String.
This parameter is usually the Tree.itemToUID() method.
| |
openItems:Object — The items that have been opened or set opened.
| |
model:Object (default = null ) — The collection to which this node belongs.
|
ICollectionView — An ICollectionView instance.
|
관련 API 요소
getNodeDepth | () | 메서드 |
public function getNodeDepth(node:Object, iterator:IViewCursor, model:Object = null):int
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the depth of the node, meaning the number of ancestors it has.
매개 변수
node:Object — The Object that defines the node.
| |
iterator:IViewCursor — An IViewCursor instance that could be used to do the calculation.
| |
model:Object (default = null ) — The collection to which this node belongs.
|
int — The depth of the node, where 0 corresponds to the top level,
and -1 if the depth cannot be calculated.
|
getParent | () | 메서드 |
public function getParent(node:Object, collection:ICollectionView, model:Object = null):Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the parent of the node
The parent of a top-level node is null
.
매개 변수
node:Object — The Object that defines the node.
| |
collection:ICollectionView — An ICollectionView instance that could be used to do the calculation.
| |
model:Object (default = null ) — The collection to which this node belongs.
|
Object — The parent node containing the node as child,
null for a top-level node,
and undefined if the parent cannot be determined.
|
Tue Jun 12 2018, 03:17 PM Z