Adobe® Flash® Platform용 ActionScript® 3.0 참조 설명서
 |  패키지 및 클래스 목록 숨기기 |  패키지  |  클래스  |  새로운 내용  |  색인  |  부록  |  영어로 표시되는 이유
필터: 서버에서 데이터를 검색하는 중...
서버에서 데이터를 검색하는 중...
mx.collections 

IGroupingCollection2  - AS3 Flex

패키지mx.collections
인터페이스public interface IGroupingCollection2 extends IHierarchicalData , IEventDispatcher
구현자 GroupingCollection2

언어 버전: ActionScript 3.0
제품 버전: Flex 4
런타임 버전: Flash Player 10, AIR 1.5

The IGroupingCollection2 interface defines the interface required to create grouped data from flat data.

관련 API 요소



공용 속성
 속성정의 주체
  grouping : Grouping
The Grouping object applied to the source data.
IGroupingCollection2
공용 메서드
 메서드정의 주체
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다.
IEventDispatcher
  
If the refresh is performed asynchronously, cancels the refresh operation and stops the building of the groups.
IGroupingCollection2
 Inherited
Returns true if the node can contain children.
IHierarchicalData
 Inherited
이벤트를 이벤트 흐름으로 전달합니다.
IEventDispatcher
 Inherited
Returns an Object representing the node's children.
IHierarchicalData
 Inherited
Returns data from a node.
IHierarchicalData
 Inherited
Returns the root data item.
IHierarchicalData
 Inherited
Returns true if the node has children.
IHierarchicalData
 Inherited
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다.
IEventDispatcher
  
refresh(async:Boolean = false, dispatchCollectionEvents:Boolean = false):Boolean
Applies the grouping to the collection.
IGroupingCollection2
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
EventDispatcher 객체에서 리스너를 제거합니다.
IEventDispatcher
 Inherited
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다.
IEventDispatcher
속성 세부 정보

grouping

속성
grouping:Grouping

언어 버전: ActionScript 3.0
제품 버전: Flex 4
런타임 버전: Flash Player 10, AIR 1.5

The Grouping object applied to the source data. Setting this property does not automatically refresh the view; therefore, you must call the refresh() method after setting this property.

Note: The Flex implementations of IGroupingCollection2 retrieve all items from a remote location before executing grouping.



구현
    public function get grouping():Grouping
    public function set grouping(value:Grouping):void
메서드 세부 정보

cancelRefresh

()메서드
public function cancelRefresh():void

언어 버전: ActionScript 3.0
제품 버전: Flex 3
런타임 버전: Flash Player 10, AIR 1.5

If the refresh is performed asynchronously, cancels the refresh operation and stops the building of the groups. This method only cancels the refresh if it is initiated by a call to the refresh() method with an asynch argument of true, corresponding to an asynchronous refresh.

refresh

()메서드 
public function refresh(async:Boolean = false, dispatchCollectionEvents:Boolean = false):Boolean

언어 버전: ActionScript 3.0
제품 버전: Flex 3
런타임 버전: Flash Player 10, AIR 1.5

Applies the grouping to the collection. The collection does not detect changes to a group automatically, so you must call the refresh() method to update the collection after setting the grouping, source, or summaries properties. You also call the refresh() method when you modify a GroupingField of the collection, such as by changing the caseInsensitive, compareFunction, or groupingFunction properties.

The refresh() method can be applied synchronously or asynchronously.

When refresh() is called synchronously, all groups and summaries are updated together before the method returns. That means your application cannot perform other processing operations for the duration of the call. A client should wait for a CollectionEvent event with the value of the kind property set to CollectionEventKind.REFRESH to ensure that the refresh() method completed.

In asynchronous refresh, all groups and summaries are updated individually. The refresh() method returns before the groups and summaries are updated so that your application can continue execution. Also, the control is updated during the refresh so that the user can continue to interact with it.

The overhead of updating groups and summaries individually, rather than all at once, makes an asynchronous refresh take longer than a synchronous one. However, for large data sets, your application continues to operate during the refresh.

매개 변수

async:Boolean (default = false) — If true, defines the refresh to be asynchronous. By default it is false denoting synchronous refresh.
 
dispatchCollectionEvents:Boolean (default = false) — If true, events are dispatched when groups are formed. For better performance, set it to false. If true, then events are dispatched as groups and summaries are calculated synchronously to update the control. Note: If async is true, the dispatchCollectionEvents is always set to true. By default it is false denoting no events will be dispatched.

반환값
Booleantrue if the refresh() method completed, and false if the refresh is incomplete, which can mean that items are still pending.




[ X ]영어로 표시되는 이유
ActionScript 3.0 참조 설명서의 내용이 영어로 나타납니다.

ActionScript 3.0 참조 설명서 중 일부는 전체 언어로 번역되지 않았습니다. 언어 요소가 번역되지 않은 경우 영어로 나타납니다. 예를 들어 ga.controls.HelpBox 클래스는 어떤 언어로도 번역되지 않았습니다. 그러므로 한국어 버전의 참조 설명서에서 ga.controls.HelpBox 클래스는 영어로 나타납니다.