Adobe® Flash® Platform için ActionScript® 3.0 Başvurusu
Ana Sayfa  |  Paket ve Sınıf Listesini Gizle |  Paketler  |  Sınıflar  |  Yenilikler  |  Dizin  |  Ekler  |  Niçin İngilizce?
Filtreler: Sunucudan Veri Alınıyor...
Sunucudan Veri Alınıyor...
mx.collections 

SummaryField2  - AS3 Flex

Paketmx.collections
Sınıfpublic class SummaryField2
Miras AlmaSummaryField2 Inheritance Object

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

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

Note: In the previous release of Flex, you used the SummaryField class to create summary data. The SummaryField2 class is new for Flex 4 and provides better performance than SummaryField.

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 summaryOperation 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.

Or you can specify an ISummaryCalculator implementation to calculate the summaries.

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:SummaryField2 dataField="Actual" 
                    label="Min Actual" summaryOperation="MIN"/>
                  <mx:SummaryField2 dataField="Actual" 
                    label="Max Actual" summaryOperation="MAX"/>
                </mx:fields>
              </mx:SummaryRow>
            </mx:summaries>
          </mx:GroupingField>
          <mx:GroupingField name="Territory">
            <mx:summaries>
              <mx:SummaryRow summaryPlacement="group">
                <mx:fields>
                  <mx:SummaryField2 dataField="Actual" 
                    label="Min Actual" summaryOperation="MIN"/>
                  <mx:SummaryField2 dataField="Actual" 
                    label="Max Actual" summaryOperation="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 SözdizimiexpandedMXML Sözdizimini Gizle
The <mx.SummaryField2> inherits all the tag attributes of its superclass, and defines the following tag attributes:

  <mx:SummaryField2
  Properties 
    dataField="No default"
    label="No default"
    summaryOperation="SUM"
  />
  

İlgili API Öğeleri



Genel Özellikler
 ÖzellikTanımlayan:
 Inheritedconstructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru.
Object
  dataField : String
Data field for which the summary is computed.
SummaryField2
  label : String
The property used inside the summary object, an instance of the SummaryObject class, to hold summary information.
SummaryField2
  summaryOperation : Object = SUM
The summary performed on the children.
SummaryField2
Genel Yöntemler
 YöntemTanımlayan:
  
SummaryField2(dataField:String = null, summaryOperation:Object = SUM)
Constructor.
SummaryField2
 Inherited
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir.
Object
 Inherited
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir.
Object
 Inherited
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir.
Object
 Inherited
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar.
Object
 Inherited
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür.
Object
 Inherited
Belirtilen nesnenin dize olarak temsil edilen halini döndürür.
Object
 Inherited
Belirtilen nesnenin temel değerini döndürür.
Object
Özellik Ayrıntısı

dataField

özellik
public var dataField:String

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

Data field for which the summary is computed.

label

özellik 
public var label:String

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

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}

İlgili API Öğeleri

summaryOperation

özellik 
public var summaryOperation:Object = SUM

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

The summary performed on the children. The value of this property can be one of the following:

  • For numeric fields: SUM, MIN, MAX, AVG, or COUNT.
  • An instance of a class that implements the custom ISummaryCalculator interface to calculate a custom summary.

Varsayılan değer şudur SUM.

İlgili API Öğeleri

Yapıcı Ayrıntı

SummaryField2

()Yapıcı
public function SummaryField2(dataField:String = null, summaryOperation:Object = SUM)

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Flex 4
Çalışma Zamanı Sürümleri: Flash Player 10, AIR 1.5

Constructor.

Parametreler
dataField:String (default = null) — Data field for which the summary is computed.
 
summaryOperation:Object (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. Or you can specify an ISummaryCalculator implementation to calculate the summaries.




[ X ]Niçin İngilizce?
ActionScript 3.0 Başvurusu'ndaki içerik İngilizce görünür

ActionScript 3.0 Başvurusu'nun tüm bölümleri tüm dillere çevrilmemiştir. Bir dil öğesi çevrilmediğinde İngilizce görünür. Örneğin, ga.controls.HelpBox sınıfı hiçbir dile çevrilmez. Bu nedenle, başvurunun Türkçe versiyonunda ga.controls.HelpBox sınıfı İngilizce görünür.