Pakiet | mx.collections |
Klasa | public class DefaultSummaryCalculator |
Dziedziczenie | DefaultSummaryCalculator Object |
Implementuje | ISummaryCalculator |
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
SUM
, MIN
, MAX
, AVG
, and COUNT
operations.
Powiązane elementy interfejsu API
Metoda | Zdefiniowane przez | ||
---|---|---|---|
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 | ||
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | ||
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | ||
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | ||
Flex calls this method to end the computation of the summary value. | DefaultSummaryCalculator | ||
Flex calls this method to end the summary calculation. | DefaultSummaryCalculator | ||
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | 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 | ||
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | ||
Zwraca ciąg reprezentujący określony obiekt. | Object | ||
Zwraca pierwotną wartość dla określonego obiektu. | Object |
calculateSummary | () | metoda |
public function calculateSummary(data:Object, field:SummaryField2, rowData:Object):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Flex calls this method when a new value needs to be added to the summary value.
Parametry
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 | () | metoda |
public function calculateSummaryOfSummary(oldValue:Object, newValue:Object, field:SummaryField2):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Flex calls this method when a new summary value needs to be added to the already computed summary.
Parametry
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 | () | metoda |
public function returnSummary(data:Object, field:SummaryField2):Number
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Flex calls this method to end the computation of the summary value.
Parametry
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 | () | metoda |
public function returnSummaryOfSummary(oldValue:Object, field:SummaryField2):Number
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Flex calls this method to end the summary calculation.
Parametry
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 | () | metoda |
public function summaryCalculationBegin(field:SummaryField2):Object
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Flex calls this method to start the computation of a summary value.
Parametry
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 | () | metoda |
public function summaryOfSummaryCalculationBegin(value:Object, field:SummaryField2):Object
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 4 |
Wersje środowiska wykonawczego: | 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.
Parametry
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, 12:06 PM Z