套件 | mx.collections |
類別 | public class DefaultSummaryCalculator |
繼承 | DefaultSummaryCalculator Object |
實作 | ISummaryCalculator |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 9, AIR 1.1 |
SUM
, MIN
, MAX
, AVG
, and COUNT
operations.
相關 API 元素
方法 | 定義自 | ||
---|---|---|---|
Flex calls this method when a new value needs to be added to the summary value. | DefaultSummaryCalculator | ||
Flex calls this method when a new summary value needs to be added to the already computed summary. | DefaultSummaryCalculator | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
Flex calls this method to end the computation of the summary value. | DefaultSummaryCalculator | ||
Flex calls this method to end the summary calculation. | DefaultSummaryCalculator | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
Flex calls this method to start the computation of a summary value. | DefaultSummaryCalculator | ||
Flex calls this method to start calculation of summary out of summary values. | DefaultSummaryCalculator | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
calculateSummary | () | 方法 |
public function calculateSummary(data:Object, field:SummaryField2, rowData:Object):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Flex calls this method when a new value needs to be added to the summary value.
參數
data:Object — The Object returned by the call to the summaryCalculationBegin() method,
or calculated by a previous call to the calculateSummary() method.
Use this Object to hold information necessary to perform the calculation.
This method modifies this Object; it does not return a value.
| |
field:SummaryField2 — The SummaryField2 for which the summary needs to calculated.
| |
rowData:Object — The object representing the rows data that is being analyzed.
|
calculateSummaryOfSummary | () | 方法 |
public function calculateSummaryOfSummary(oldValue:Object, newValue:Object, field:SummaryField2):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Flex calls this method when a new summary value needs to be added to the already computed summary.
參數
oldValue:Object — The Object returned by a call the summaryOfSummaryCalculationBegin() method,
or calculated by a previous call to the calculateSummaryOfSummary() method.
This method modifies this Object; it does not return a value.
| |
newValue:Object — The Object returned by the call to the returnSummary() method
for a previous aggregation.
| |
field:SummaryField2 — The SummaryField2 for which the summary needs to calculated.
|
returnSummary | () | 方法 |
public function returnSummary(data:Object, field:SummaryField2):Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Flex calls this method to end the computation of the summary value.
參數
data:Object — The Object returned by the call to the calculateSummary() method.
Use this Object to hold information necessary to perform the calculation.
| |
field:SummaryField2 — The SummaryField2 for which the summary needs to calculated.
|
Number — The summary value.
|
returnSummaryOfSummary | () | 方法 |
public function returnSummaryOfSummary(oldValue:Object, field:SummaryField2):Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Flex calls this method to end the summary calculation.
參數
oldValue:Object — The Object returned by a call to the calculateSummaryOfSummary() method
that is used to store the summary calculation results.
This method modifies this Object; it does not return a value.
| |
field:SummaryField2 — The SummaryField2 for which the summary needs to calculated.
|
Number — The summary value.
|
summaryCalculationBegin | () | 方法 |
public function summaryCalculationBegin(field:SummaryField2):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Flex calls this method to start the computation of a summary value.
參數
field:SummaryField2 — The SummaryField2 for which the summary needs to calculated.
|
Object — An Object initialized for the summary calculation.
Use this Object to hold any information necessary to perform the calculation.
You pass this Object to subsequent calls to the calculateSummary()
and returnSummary() methods.
|
summaryOfSummaryCalculationBegin | () | 方法 |
public function summaryOfSummaryCalculationBegin(value:Object, field:SummaryField2):Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Flex calls this method to start calculation of summary out of summary values. Calculating the average value of a group of averages is an example of an calculation of summary out of summary values.
參數
value:Object — The Object returned by the call to the calculateSummary() method
for a previous summary calculation.
Use this Object to hold the information necessary to perform the calculation.
| |
field:SummaryField2 — The SummaryField2 for which the summary needs to calculated.
|
Object — An Object initialized for the summary calculation.
Use this Object to hold any information necessary to perform the calculation.
You pass this Object to subsequent calls to the calculateSummaryOfSummary()
and returnSummaryOfSummary() methods.
|
Tue Jun 12 2018, 03:47 PM Z