패키지 | mx.collections |
클래스 | public class SummaryRow |
상속 | SummaryRow Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
summaries
property
of the GroupingField or GroupingCollection class.
You display the summary data in an existing row of the AdvancedDataGrid control,
or display it in a separate row.
The summaries
property of the GroupingField or GroupingCollection class takes an
instance of the SummaryRow class. You then use the fields
property
of the SummaryRow class to specify an Array of one or more SummaryField/SummaryField2 instances
that define the fields of the data used to create the summary.
SummaryField2
needs to be used when using GroupingCollection2
.
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>MXML 구문MXML 구문 숨기기
<mx.SummaryRow>
tag defines the following tag attributes:
<mx:SummaryRow Properties fields="No default" summaryObjectFunction="No default" summaryPlacement="last" />
기본 MXML 속성fields
기타 예제
관련 API 요소
mx.collections.GroupingField
mx.collections.SummaryField
mx.collections.SummaryField2
속성 | 정의 주체 | ||
---|---|---|---|
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
fields : Array
Array of SummaryField/SummaryField2 instances that define the characteristics of the
data fields used to create the summary. | SummaryRow | ||
summaryObjectFunction : Function
Specifies a callback function that defines the summary object,
which is an instance of the SummaryObject class. | SummaryRow | ||
summaryPlacement : String = "last"
Specifies where the summary row appears in the AdvancedDataGrid control. | SummaryRow |
메서드 | 정의 주체 | ||
---|---|---|---|
Constructor. | SummaryRow | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
fields | 속성 |
public var fields:Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Array of SummaryField/SummaryField2 instances that define the characteristics of the data fields used to create the summary.
관련 API 요소
summaryObjectFunction | 속성 |
public var summaryObjectFunction:Function
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Specifies a callback function that defines the summary object, which is an instance of the SummaryObject class. The SummaryObject instance collects summary data for display in the AdvancedDataGrid control. The AdvancedDataGrid control adds the SummaryObject instance to the data provider to display the summary data in the control. Therefore, define within the SummaryObject instance the properties that you want to display.
You use this property with the SummaryField.summaryFunction
property,
which defines a callback function to perform the summary calculation.
The GroupingCollection class adds a property called children
to the Object.
The callback function must have the following signature:
function mySumObjFunc():SummaryObject {}
관련 API 요소
summaryPlacement | 속성 |
public var summaryPlacement:String = "last"
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Specifies where the summary row appears in the AdvancedDataGrid control. Possible values are:
"first"
- Create a summary row as the first row in the group."last"
- Create a summary row as the last row in the group."group"
- Add the summary data to the row corresponding to the group.
You can specify multiple values, separated by a space.
For example, a value of "last group"
shows the same summary row
at the group level and in the last row of the children.
SummaryRow | () | 생성자 |
public function SummaryRow()
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor.
Tue Jun 12 2018, 03:17 PM Z