ActionScript® 3.0 — dokumentacja dla platformy Adobe® Flash®
Strona główna  |  Ukryj listę pakietów i klas |  Pakiety  |  Klasy  |  Nowości  |  Indeks  |  Dodatki  |  Dlaczego język angielski?
Filtry: Pobieranie danych z serwera...
Pobieranie danych z serwera...
mx.olap.aggregators 

AverageAggregator  - AS3 Flex

Pakietmx.olap.aggregators
Klasapublic class AverageAggregator
DziedziczenieAverageAggregator Inheritance Object
Implementuje IOLAPCustomAggregator

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

The AverageAggregator class implements the average aggregator. The average aggregator returns the average value of the measures. Flex uses this aggregator when you set the OLAPMeasure.aggregator property to "AVG".

Powiązane elementy interfejsu API



Właściwości publiczne
 WłaściwośćZdefiniowane przez
 Inheritedconstructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu.
Object
Metody publiczne
 MetodaZdefiniowane przez
  
Flex calls this method to start the computation of an aggregation value.
AverageAggregator
  
computeEnd(data:Object, dataField:String):Number
Flex calls this method to end the computation of the aggregation value.
AverageAggregator
  
computeLoop(data:Object, dataField:String, rowData:Object):void
Flex calls this method when a new value needs to be added to the aggregation.
AverageAggregator
  
Flex calls this method to start aggregation of aggregated values.
AverageAggregator
  
computeObjectEnd(oldValue:Object, dataField:String):Number
Flex calls this method to end the computation.
AverageAggregator
  
computeObjectLoop(oldValue:Object, newValue:Object):void
Flex calls this method when a new aggregated value needs to be added to the aggregation.
AverageAggregator
 Inherited
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość.
Object
 Inherited
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr.
Object
 Inherited
Wskazuje, czy określona właściwość istnieje i jest przeliczalna.
Object
 Inherited
Ustawia dostępność właściwości dynamicznej używanej w pętlach.
Object
 Inherited
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych.
Object
 Inherited
Zwraca ciąg reprezentujący określony obiekt.
Object
 Inherited
Zwraca pierwotną wartość dla określonego obiektu.
Object
Szczegół metody

computeBegin

()metoda
public function computeBegin(dataField:String):Object

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

Flex calls this method to start the computation of an aggregation value.

Parametry

dataField:String — The name of the OLAPMeasure.dataField property for the measure to be aggregated.

Zwraca
Object — An Object initialized for the aggregation. Use this Object to hold any information necessary to perform the aggregation. You pass this Object to subsequent calls to the computeLoop() and computeEnd() methods.

computeEnd

()metoda 
public function computeEnd(data:Object, dataField:String):Number

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

Flex calls this method to end the computation of the aggregation value.

Parametry

data:Object — The Object returned by the call to the computeLoop() method. Use this Object to hold information necessary to perform the aggregation.
 
dataField:String — The name of the OLAPMeasure.dataField property for the measure to be aggregated.

Zwraca
Number — The aggregated value.

computeLoop

()metoda 
public function computeLoop(data:Object, dataField:String, rowData:Object):void

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

Flex calls this method when a new value needs to be added to the aggregation.

Parametry

data:Object — The Object returned by the call to the computeBegin() method, or calculated by a previous call to the computeLoop() method. Use this Object to hold information necessary to perform the aggregation. This method modifies this Object; it does not return a value.
 
dataField:String — The name of the OLAPMeasure.dataField property for the measure to be aggregated.
 
rowData:Object — The object representing the rows data that is being analyzed.

computeObjectBegin

()metoda 
public function computeObjectBegin(value:Object):Object

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

Flex calls this method to start aggregation of aggregated values. Calculating the average value of a group of averages is an example of an aggregation of aggregated values.

Parametry

value:Object — The Object returned by the call to the computeEnd() method for a previous aggregation. Use this Object to hold the information necessary to perform the aggregation.

Zwraca
Object — An Object initialized for the aggregation. Use this Object to hold any information necessary to perform the aggregation. You pass this Object to subsequent calls to the computeObjectLoop() and computeObjectEnd() methods.

computeObjectEnd

()metoda 
public function computeObjectEnd(oldValue:Object, dataField:String):Number

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

Flex calls this method to end the computation.

Parametry

oldValue:Object — The Object returned by a call to the computeObjectLoop() method that is used to store the aggregation results. This method modifies this Object; it does not return a value.
 
dataField:String — The name of the OLAPMeasure.dataField property for the measure to be aggregated.

Zwraca
Number — The aggregated value.

computeObjectLoop

()metoda 
public function computeObjectLoop(oldValue:Object, newValue:Object):void

Wersja języka: ActionScript 3.0
Wersja produktu: Flex 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

Flex calls this method when a new aggregated value needs to be added to the aggregation.

Parametry

oldValue:Object — The Object returned by a call the computeObjectBegin() method, or calculated by a previous call to the computeObjectLoop() method. This method modifies this Object; it does not return a value.
 
newValue:Object — The Object returned by the call to the computeEnd() method for a previous aggregation.





[ X ]Dlaczego język angielski?
Treść dokumentacji języka ActionScript 3.0 wyświetlana w języku angielskim

Niektóre części dokumentacji języka ActionScript 3.0 nie są przetłumaczone na poszczególne języki. Gdy element nie jest przetłumaczony na dany język, jest wyświetlany tekst angielski. Na przykład opis klasy ga.controls.HelpBox nie jest przetłumaczony na żaden dodatkowy język. Z tego powodu polska wersja dokumentacji zawiera opis klasy ga.controls.HelpBox w języku angielskim.