| 包 | mx.controls.olapDataGridClasses |
| 类 | public class OLAPDataGridRendererProvider |
| 继承 | OLAPDataGridRendererProvider Object |
| 子类 | OLAPDataGridHeaderRendererProvider, OLAPDataGridItemRendererProvider |
| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flex 3 |
| 运行时版本: | Flash Player 9, AIR 1.1 |
OLAPDataGrid 控件中的各单元格是由沿行排列的成员和沿列排列的成员相交而成的。但是,为 OLAPDataGrid 控件分配项呈示器时,您仅为其中一个维度(行或列)指定 uniqueName 和 type 属性。因此,您可以创建一种情形,在这种情形中,将两个不同的项呈示器分配到控件的同一单元格中。
为了避免两个或多个项呈示器之间发生冲突,OLAPDataGrid 控件将根据下列优先顺序应用项呈示器:
-
type=OLAPDataGrid.OLAP_MEMBER -
type=OLAPDataGrid.OLAP_LEVEL -
type=OLAPDataGrid.OLAP_HIERARCHY -
type=OLAPDataGrid.OLAP_DIMENSION
因此,如果将类型值为 OLAPDataGrid.OLAP_LEVEL 的项呈示器和类型值为 OLAPDataGrid.OLAP_HIERARCHY 的项呈示器应用于同一单元格,则 OLAPDataGrid 控件将应用类型值为 OLAPDataGrid.OLAP_LEVEL 的项呈示器。
如果两个项呈示器的类型属性值相同,OLAPDataGrid 控件将确定与该项目最匹配的项呈示器并使用它。
相关 API 元素
| 属性 | 由以下参数定义 | ||
|---|---|---|---|
![]() | constructor : 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 | ||
renderer | 属性 |
styleName | 属性 |
public var styleName:String| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flex 3 |
| 运行时版本: | Flash Player 9, AIR 1.1 |
控制单元格外观的 CSS 样式声明的名称。
例如,在应用程序中定义以下样式,然后使用 styleName 属性将该样式与 OLAP 架构中的特定层次结构关联起来:
<Style>
.monthStyle
{
color:0x755762
fontSize:14
}
</Style>
<mx:ODGHeaderRendererProvider
type="OLAPDataGrid.OLAP_HIERARCHY"
uniqueName="[Time][Month]" styleName="monthStyle"/>
type | 属性 |
type:int| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flex 3 |
| 运行时版本: | Flash Player 9, AIR 1.1 |
指定是否将呈示器应用于轴的维度 (OLAPDataGrid.OLAP_DIMENSION)、层次结构 (OLAPDataGrid.OLAP_HIERARCHY)、级别 (OLAPDataGrid.OLAP_LEVEL) 或成员 (OLAPDataGrid.OLAP_MEMBER)。
根据 uniqueName 属性的设置来设置此属性。例如,如果 uniqueName 属性引用 OLAP 架构的层次结构,请将此属性设置为 OLAPDataGrid.OLAP_HIERARCHY。
实现
public function get type():int public function set type(value:int):voiduniqueName | 属性 |
uniqueName:String| 语言版本: | ActionScript 3.0 |
| 产品版本: | Flex 3 |
| 运行时版本: | Flash Player 9, AIR 1.1 |
对其应用呈示器的 IOLAPElement 的唯一名称。例如,“[TimeDim][YearHier][2007]”是一个唯一的名称,其中级别“2007”属于“TimeDim”尺寸的“YearHier”层次结构。
uniqueName 属性和 type 属性共同指定项呈示器的目标。由于“[TimeDim][YearHier][2007]”的唯一名称指定 OLAP 架构的级别,因此请将 type 属性设置为 OLAPDataGrid.OLAP_LEVEL。
实现
public function get uniqueName():String public function set uniqueName(value:String):voidTue Jun 12 2018, 11:04 AM Z
隐藏继承的公共属性
显示继承的公共属性