| 包 | mx.controls.olapDataGridClasses |
| 类 | public class OLAPDataGridItemRendererProvider |
| 继承 | OLAPDataGridItemRendererProvider OLAPDataGridRendererProvider Object |
另请参见
| 属性 | 定义方 | ||
|---|---|---|---|
![]() | constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | |
| formatter : Formatter Formatter 类的实例或 Formatter 类的子类的实例,该实例已应用于关联 IOLAPElement 的文本。 | OLAPDataGridItemRendererProvider | ||
![]() | prototype : Object [静态]
对类或函数对象的原型对象的引用。 | Object | |
![]() | 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:FormatterFormatter 类的实例或 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 尺寸的层次结构。