패키지 | mx.collections |
인터페이스 | public interface IHierarchicalCollectionView extends ICollectionView , IEventDispatcher |
구현자 | HierarchicalCollectionView |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
관련 API 요소
속성 | 정의 주체 | ||
---|---|---|---|
filterFunction : Function
A function that the view will use to eliminate items that do not
match the function's criteria. | ICollectionView | ||
hasRoot : Boolean [읽기 전용]
A flag that, if true, indicates that the current data provider has a root node;
for example, a single top-level node in a hierarchical structure. | IHierarchicalCollectionView | ||
length : int [읽기 전용]
The number of items in this view. | ICollectionView | ||
openNodes : Object
An Array of Objects containing the data provider element
for all the open branch nodes of the data. | IHierarchicalCollectionView | ||
showRoot : Boolean
A Boolean flag that specifies whether to display the data provider's root node. | IHierarchicalCollectionView | ||
sort : ISort
The ISort that will be applied to the ICollectionView. | ICollectionView | ||
source : IHierarchicalData
The source data of the IHierarchicalCollectionView. | IHierarchicalCollectionView |
메서드 | 정의 주체 | ||
---|---|---|---|
Adds a child node to a node of the data. | IHierarchicalCollectionView | ||
Adds a child node to a node of the data at a specific index in the data. | IHierarchicalCollectionView | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | IEventDispatcher | ||
Closes a node to hide its children. | IHierarchicalCollectionView | ||
Returns whether the view contains the specified object. | ICollectionView | ||
Creates a new IViewCursor that works with this view. | ICollectionView | ||
Prevents changes to the collection itself and items within the
collection from being dispatched by the view. | ICollectionView | ||
이벤트를 이벤트 흐름으로 전달합니다. | IEventDispatcher | ||
Enables auto-updating. | ICollectionView | ||
Returns a collection of children, if they exist. | IHierarchicalCollectionView | ||
Returns the depth of the node in the collection. | IHierarchicalCollectionView | ||
Returns the parent of a node. | IHierarchicalCollectionView | ||
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher | ||
itemUpdated(item:Object, property:Object = null, oldValue:Object = null, newValue:Object = null):void
Notifies the view that an item has been updated. | ICollectionView | ||
Opens a node to display its children. | IHierarchicalCollectionView | ||
Applies the sort and filter to the view. | ICollectionView | ||
Removes the child node from the parent node. | IHierarchicalCollectionView | ||
Removes the child node from a node at the specified index. | IHierarchicalCollectionView | ||
EventDispatcher 객체에서 리스너를 제거합니다. | IEventDispatcher | ||
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher |
hasRoot | 속성 |
hasRoot:Boolean
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
A flag that, if true
, indicates that the current data provider has a root node;
for example, a single top-level node in a hierarchical structure.
XML and Object are examples of data types that have a root node,
while Lists and Arrays do not.
구현
public function get hasRoot():Boolean
openNodes | 속성 |
showRoot | 속성 |
showRoot:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
A Boolean flag that specifies whether to display the data provider's root node.
If the source data has a root node, and this property is set to
false
, the collection will not include the root item.
Only the descendants of the root item will be included in the collection.
This property has no effect on a source with no root node, such as List and Array objects.
기본값: true.
구현
public function get showRoot():Boolean
public function set showRoot(value:Boolean):void
관련 API 요소
source | 속성 |
source:IHierarchicalData
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The source data of the IHierarchicalCollectionView.
구현
public function get source():IHierarchicalData
public function set source(value:IHierarchicalData):void
addChild | () | 메서드 |
public function addChild(parent:Object, newChild:Object):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Adds a child node to a node of the data.
매개 변수
parent:Object — The Object that defines the parent node.
| |
newChild:Object — The Object that defines the new node.
|
Boolean — true if the node is added successfully.
|
addChildAt | () | 메서드 |
public function addChildAt(parent:Object, newChild:Object, index:int):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Adds a child node to a node of the data at a specific index in the data.
매개 변수
parent:Object — The Object that defines the parent node.
| |
newChild:Object — The Object that defines the new node.
| |
index:int — The zero-based index of where to insert the child node.
|
Boolean — true if the node is added successfully.
|
closeNode | () | 메서드 |
getChildren | () | 메서드 |
public function getChildren(node:Object):ICollectionView
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns a collection of children, if they exist.
매개 변수
node:Object — The Object that defines the node.
If null , return a collection of top level nodes.
|
ICollectionView — ICollectionView instance containing the child nodes.
|
getNodeDepth | () | 메서드 |
getParentItem | () | 메서드 |
public function getParentItem(node:Object):*
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Returns the parent of a node.
The parent of a top-level node is null
.
매개 변수
node:Object — The Object that defines the node.
|
* — The parent node containing the node as child,
null for a top-level node,
and undefined if the parent cannot be determined.
|
openNode | () | 메서드 |
removeChild | () | 메서드 |
public function removeChild(parent:Object, child:Object):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Removes the child node from the parent node.
매개 변수
parent:Object — The Object that defines the parent node,
and null for top-level nodes.
| |
child:Object — The Object that defines the child node to be removed.
|
Boolean — true if the node is removed successfully.
|
removeChildAt | () | 메서드 |
public function removeChildAt(parent:Object, index:int):Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Removes the child node from a node at the specified index.
매개 변수
parent:Object — The node object that currently parents the child node.
Set parent to null for top-level nodes.
| |
index:int — The zero-based index of the child node to remove relative to the parent.
|
Boolean — true if successful, and false if not.
|
Tue Jun 12 2018, 03:17 PM Z