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

SummaryField  - AS3 Flex

패키지mx.collections
클래스public class SummaryField
상속SummaryField Inheritance Object
버전부터 사용되지 않음 4.0: 사용 SummaryField2

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

The SummaryField class represents a single property in a SummaryRow instance. Each SummaryRow instance specifies one or more SummayField instances that are used to create a data summary.

Use the dataField property to specify the data field used to generate the summary, the label property to specify the name of the data field created to hold the summary data, and the operation property to specify how to create the summary for numeric fields. You can specify one of the following values: SUM, MIN, MAX, AVG, or COUNT.

The following example creates summary rows based on two fields of the data provider of the AdvancedDataGrid control:

  <mx:AdvancedDataGrid id="myADG" 
    initialize="gc.refresh();"> 
    <mx:dataProvider>
      <mx:GroupingCollection id="gc" source="{dpFlat}">
        <mx:Grouping>
          <mx:GroupingField name="Region">
            <mx:summaries>
              <mx:SummaryRow summaryPlacement="group">
                <mx:fields>
                  <mx:SummaryField dataField="Actual" 
                    label="Min Actual" operation="MIN"/>
                  <mx:SummaryField dataField="Actual" 
                    label="Max Actual" operation="MAX"/>
                </mx:fields>
              </mx:SummaryRow>
            </mx:summaries>
          </mx:GroupingField>
          <mx:GroupingField name="Territory">
            <mx:summaries>
              <mx:SummaryRow summaryPlacement="group">
                <mx:fields>
                  <mx:SummaryField dataField="Actual" 
                    label="Min Actual" operation="MIN"/>
                  <mx:SummaryField dataField="Actual" 
                    label="Max Actual" operation="MAX"/>
                </mx:fields>
              </mx:SummaryRow>
            </mx:summaries>
          </mx:GroupingField>
        </mx:Grouping>
      </mx:GroupingCollection>
    </mx:dataProvider> 
 
    <mx:columns>
      <mx:AdvancedDataGridColumn dataField="Region"/>
      <mx:AdvancedDataGridColumn dataField="Territory_Rep"
        headerText="Territory Rep"/>
      <mx:AdvancedDataGridColumn dataField="Actual"/>
      <mx:AdvancedDataGridColumn dataField="Estimate"/>
      <mx:AdvancedDataGridColumn dataField="Min Actual"/>
      <mx:AdvancedDataGridColumn dataField="Max Actual"/>
    </mx:columns>
  </mx:AdvancedDataGrid>
  

This Class has been deprecated and replaced by a new Class SummaryField2. Properties operation and summaryFunction are not present in the Class SummaryField2. A new property summaryOperation is introduced in SummaryField2.

관련 API 요소



공용 속성
 속성정의 주체
 Inheritedconstructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다.
Object
  dataField : String
Data field for which the summary is computed.
SummaryField
  label : String
The property used inside the summary object, an instance of the SummaryObject class, to hold summary information.
SummaryField
  operation : String = "SUM"
The function that should be performed on the children.
SummaryField
  summaryFunction : Function
Specifies a callback function to compute a custom data summary.
SummaryField
공용 메서드
 메서드정의 주체
  
SummaryField(dataField:String = null, operation:String = "SUM")
Constructor.
SummaryField
 Inherited
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다.
Object
 Inherited
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다.
Object
 Inherited
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다.
Object
 Inherited
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다.
Object
 Inherited
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다.
Object
 Inherited
지정된 객체의 문자열 표현을 반환합니다.
Object
 Inherited
지정된 객체의 프리미티브 값을 반환합니다.
Object
속성 세부 정보

dataField

속성
public var dataField:String

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

Data field for which the summary is computed.

label

속성 
public var label:String

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

The property used inside the summary object, an instance of the SummaryObject class, to hold summary information.

For example, if you set the label property to "Summary", then the computed summary is placed in a property named "Summary" in the summary object. The property of the SummaryObject instance containing the summary data will appear as below:

{Summary:1000}

관련 API 요소

operation

속성 
public var operation:String = "SUM"

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

The function that should be performed on the children. You can specify one of the following values for numeric fields: SUM, MIN, MAX, AVG, or COUNT.

기본값: SUM.

summaryFunction

속성 
public var summaryFunction:Function

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

Specifies a callback function to compute a custom data summary.

You use this property with the SummaryRow.summaryObjectFunction property, which defines an instance of the SummaryObject class used to collect summary data for display in the AdvancedDataGrid control.

The function signature should be as follows:

      function mySummaryFunction(iterator:IViewCursor, dataField:String, operation:String):Object

The built-in summary functions for SUM, MIN, MAX, AVG, and COUNT all return a Number containing the summary data.

관련 API 요소

생성자 세부 정보

SummaryField

()생성자
public function SummaryField(dataField:String = null, operation:String = "SUM")

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

Constructor.

매개 변수
dataField:String (default = null) — Data field for which the summary is computed.
 
operation:String (default = "SUM") — The function that should be performed on the children. You can specify one of the following values for numeric fields: SUM, MIN, MAX, AVG, or COUNT.




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

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