| 包 | mx.controls.olapDataGridClasses |
| 类 | public class OLAPDataGridItemRendererProvider |
| 继承 | OLAPDataGridItemRendererProvider OLAPDataGridRendererProvider Object |
| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flex 3 |
| 运行时版本: | Flash Player 9, AIR 1.1 |
相关 API 元素
公共属性
| 属性 | 由以下参数定义 | ||
|---|---|---|---|
![]() | constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | |
| formatter : Formatter
Formatter 类的实例或 Formatter 类的子类的实例,该实例已应用于关联 IOLAPElement 的文本。 | OLAPDataGridItemRendererProvider | ||
![]() | renderer : IFactory
用于自定义 OLAPDataGrid 控件的呈示器对象。 | OLAPDataGridRendererProvider | |
![]() | styleName : String
控制单元格外观的 CSS 样式声明的名称。 | OLAPDataGridRendererProvider | |
![]() | type : int
指定是否将呈示器应用于轴的维度 (OLAPDataGrid.OLAP_DIMENSION)、层次结构 (OLAPDataGrid.OLAP_HIERARCHY)、级别 (OLAPDataGrid.OLAP_LEVEL) 或成员 (OLAPDataGrid.OLAP_MEMBER)。 | OLAPDataGridRendererProvider | |
![]() | uniqueName : String
对其应用呈示器的 IOLAPElement 的唯一名称。 | OLAPDataGridRendererProvider | |
属性详细信息
formatter | 属性 |
public var formatter:Formatter| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flex 3 |
| 运行时版本: | Flash Player 9, AIR 1.1 |
Formatter 类的实例或 Formatter 类的子类的实例,该实例已应用于关联 IOLAPElement 的文本。
例如,对 OLAPDataGrid 控件应用 CurrencyFormatter formatter,如以下示例所示:
<mx:CurrencyFormatter id="usdFormatter" precision="2"
currencySymbol="$" decimalSeparatorFrom="."
decimalSeparatorTo="." useNegativeSign="true"
useThousandsSeparator="true" alignSymbol="left"/>
...
<mx:OLAPDataGrid id="myOLAPDG"
width="100%" height="100%">
<mx:itemRendererProviders>
<mx:OLAPDataGridItemRendererProvider
uniqueName="[QuarterDim].[Quarter]"
type="{OLAPDataGrid.OLAP_HIERARCHY}"
formatter="{usdFormatter}"/>
</mx:itemRendererProviders>
</mx:OLAPDataGrid>
在此示例中,uniqueName 和 type 属性指定 Quarter 是 QuarterDim 尺寸的层次结构。
Tue Jun 12 2018, 11:04 AM Z
隐藏继承的公共属性
显示继承的公共属性