(仅限 Flex 数据可视化组件)
mx.controls
public class OLAPDataGrid
继承OLAPDataGrid Inheritance AdvancedDataGrid Inheritance AdvancedDataGridBaseEx Inheritance AdvancedDataGridBase Inheritance AdvancedListBase Inheritance ScrollControlBase Inheritance UIComponent Inheritance FlexSprite Inheritance Sprite Inheritance DisplayObjectContainer Inheritance InteractiveObject Inheritance DisplayObject Inheritance EventDispatcher Inheritance Object
子类 PrintOLAPDataGrid

OLAPDataGrid 控件扩展了 AdvancedDataGrid 控件的功能,可显示 OLAP 查询的结果。与所有 Flex 数据网格控件一样,OLAPDataGrid 控件设计用于使用行和列的二维表示形式显示数据。

由于向 OLAPDataGrid 控件传递数据的方式,它与 AdvancedDataGrid 控件存在以下几点差异:

您可以将数据提供程序设置为包含 OLAP 查询结果的 OLAPResult 类实例,以数据填充 OLAPDataGrid 控件。

MXML 语法expanded隐藏 MXML 语法

The <mx:OLAPDataGrid> tag inherits all of the tag attributes of its superclass, except for labelField, iconField, and iconFunction, and adds the following tag attributes:

  <mx:OLAPDataGrid 
    Properties
    defaultCellString="NaN"
    headerRendererProviders="[]"
    itemRendererProviders="[]"
     
    Styles
    columnAxisHeaderStyleName="undefined"
    rowAxisHeaderStyleName="undefined"
  />
   
  

查看示例

另请参见

mx.controls.AdvancedDataGrid
mx.olap.OLAPQuery
mx.olap.OLAPResult
Example using the OLAPDataGrid control
Creating an OLAP schema
Creating an OLAP schema
Creating OLAP queries
Creating OLAP queries
Creating OLAP queries
Creating OLAP queries
Writing a query for a simple OLAP cube
Writing a query for a complex OLAP cube
Creating a multidimensional axis in an OLAPDataGrid control
Creating a multidimensional axis in an OLAPDataGrid control
Configuring the display of an OLAPDataGrid


公共属性
 属性定义方
 InheritedaccessibilityProperties : AccessibilityProperties
此显示对象的当前辅助功能选项。
DisplayObject
 InheritedactiveEffects : Array
[只读 (read-only)] 组件上当前播放的效果列表,如 EffectInstance 实例的 Array。
UIComponent
 InheritedallowMultipleSelection : Boolean
一个标志,指示是否允许您同时选择多个项目。
AdvancedListBase
 Inheritedalpha : Number
指示指定对象的 Alpha 透明度值。
DisplayObject
 InheritedautomationDelegate : Object
处理自动化相关功能的委托对象。
UIComponent
 InheritedautomationName : String
可用作此对象的标识符的名称。
UIComponent
 InheritedautomationTabularData : Object
[只读 (read-only)] IAutomationTabularData 接口的实现,可用于检索数据。
UIComponent
 InheritedautomationValue : Array
[只读 (read-only)] 此值通常对应于对象的经渲染的外观,当对象在应用中以可视方式显示时,此值使标识符与该对象相关联。
UIComponent
 InheritedbaselinePosition : Number
[只读 (read-only)] 组件第一行文本的基线的 y 坐标。
UIComponent
 InheritedblendMode : String
BlendMode 类中的一个值,用于指定要使用的混合模式。
DisplayObject
 InheritedblendShader : Shader
[只写] 设置用于混合前景和背景的着色器。
DisplayObject
 InheritedborderMetrics : EdgeMetrics
[只读 (read-only)] 返回 EdgeMetrics 对象,它具有四个属性:left、top、right 和 bottom。
ScrollControlBase
 InheritedbuttonMode : Boolean
指定此 sprite 的按钮模式。
Sprite
 InheritedcacheAsBitmap : Boolean
如果设置为 true,则 Flash Player 或 Adobe AIR 将缓存显示对象的内部位图表示形式。
DisplayObject
 InheritedcacheHeuristic : Boolean
[只写] 供 Flex 使用,表示建议为对象实施位图缓存。
UIComponent
 InheritedcachePolicy : String
指定此对象的位图缓存策略。
UIComponent
 InheritedclassName : String
[只读 (read-only)] 此实例的类的名称,如“Button”。
UIComponent
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
 InheritedcontentMouseX : Number
[只读 (read-only)] 返回鼠标在内容坐标系中的 x 位置。
UIComponent
 InheritedcontentMouseY : Number
[只读 (read-only)] 返回内容坐标系中鼠标的 y 位置。
UIComponent
 InheritedcontextMenu : NativeMenu
指定与此对象相关联的上下文菜单。
InteractiveObject
 InheritedcurrentState : String
组件的当前视图状态。
UIComponent
 InheritedcursorManager : ICursorManager
[只读 (read-only)] 获取控制此组件及其同级组件的光标的 CursorManager。
UIComponent
 Inheriteddata : Object
将此组件用作项目渲染器或项目编辑器时,此组件应呈现的数据提供程序中的项目。
AdvancedListBase
  dataProvider : Object
OLAPDataGrid 只接受 IOLAPResult 作为 dataProvider,其它的 dataProvider 均忽略。
OLAPDataGrid
 InheriteddataTipField : String
数据提供程序项目中作为数据提示显示的字段名称。
AdvancedListBase
 InheriteddataTipFunction : Function
用户提供的函数,在各个项目上运行以确定其数据提示。
AdvancedListBase
  defaultCellString : String = "NaN"
当 IOLAPResult 实例返回的单元格数据为 null 或 NaN 时,该单元格中显示的字符串。
OLAPDataGrid
 Inheriteddescriptor : UIComponentDescriptor
引用 UIComponentDescriptor(如果有),过去曾通过 createComponentFromDescriptor() 方法使用它来创建此 UIComponent 实例。
UIComponent
 Inheriteddocument : Object
引用与此 UIComponent 相关联的文档对象。
UIComponent
 InheriteddoubleClickEnabled : Boolean
指定 UIComponent 对象是否接收 doubleClick 事件。
UIComponent
 Inheritedenabled : Boolean
组件是否可以接受用户交互。
UIComponent
 InheritederrorString : String
当验证程序监视组件并且验证失败时,组件的错误提示中将显示的文本。
UIComponent
 InheritedexplicitHeight : Number
指定该组件在组件坐标中显式高度(以像素为单位)的数字。
UIComponent
 InheritedexplicitMaxHeight : Number
布局过程中父级要考虑的组件最大建议高度。
UIComponent
 InheritedexplicitMaxWidth : Number
布局过程中父级要考虑的组件最大建议宽度。
UIComponent
 InheritedexplicitMinHeight : Number
布局过程中父级要考虑的组件最小建议高度。
UIComponent
 InheritedexplicitMinWidth : Number
布局过程中父级要考虑的组件最小建议宽度。
UIComponent
 InheritedexplicitWidth : Number
指定该组件在组件坐标中显式宽度(以像素为单位)的数字。
UIComponent
 Inheritedfilters : Array
包含当前与显示对象关联的每个滤镜对象的索引数组。
DisplayObject
 InheritedfirstVisibleItem : Object
与当前显示在 AdvancedDataGrid 控件顶行的项目对应的数据提供程序元素。
AdvancedDataGrid
 InheritedflexContextMenu : IFlexContextMenu
此 UIComponent 的上下文菜单。
UIComponent
 InheritedfocusEnabled : Boolean
指示切换到此组件时,是否可以接收焦点。
UIComponent
 InheritedfocusManager : IFocusManager
获取控制此组件及其同级组件的焦点的 FocusManager。
UIComponent
 InheritedfocusPane : Sprite
与此对象相关联的焦点窗格。
UIComponent
 InheritedfocusRect : Object
指定此对象是否显示焦点矩形。
InteractiveObject
 InheritedfontContext : IFlexModuleFactory
为此组件提供字体上下文的模块工厂。
AdvancedDataGridBase
 Inheritedgraphics : Graphics
[只读 (read-only)] 指定属于此 sprite 的 Graphics 对象,在此 sprite 中可执行矢量绘画命令。
Sprite
 InheritedgroupItemRenderer : IFactory
指定用于显示导航树中与各组对应的分支节点的项目渲染器。
AdvancedDataGrid
 InheritedgroupRowHeight : Number
分组行的高度(以像素为单位)。
AdvancedDataGrid
 InheritedheaderHeight : Number
列的标题单元格的高度(以像素为单位)。
AdvancedDataGridBase
 InheritedheaderRenderer : IFactory
用于显示列的标题行的标题渲染器。
AdvancedDataGridBase
  headerRendererProviders : Array
一个 OLAPDataGridHeaderRendererProvider 实例 Array,这些实例为控件的列指定自定义标题渲染器。
OLAPDataGrid
 InheritedheaderWordWrap : Boolean
如果为 true,则指定标题文本不适合一行时将换行。
AdvancedDataGridBase
 Inheritedheight : Number
指定组件在父坐标中的高度的数字(以像素为单位)。
UIComponent
 InheritedhitArea : Sprite
指定一个 sprite 用作另一个 sprite 的点击区域。
Sprite
 InheritedhorizontalScrollPolicy : String
指示水平滚动条是始终启用、始终禁用还是自动根据传递到 setScrollBarProperties() 方法的参数进行更改的属性。
ScrollControlBase
 InheritedhorizontalScrollPosition : Number
内容与左边缘的偏移量。
AdvancedDataGridBaseEx
 InheritediconField : String
数据提供程序对象中字段的名称,该字段用于确定显示为图标的对象。
AdvancedListBase
 InheritediconFunction : Function
用户提供的函数,在每个项目上运行以确定其图标。
AdvancedListBase
 Inheritedid : String
组件 ID。
UIComponent
 InheritedimeMode : String
指定 IME(输入法编辑器)模式。
AdvancedDataGridBaseEx
 InheritedincludeInLayout : Boolean
指定此组件是否包含在父容器的布局中。
UIComponent
 InheritedinheritingStyles : Object
此组件的继承样式链的开头内容。
UIComponent
 Inheritedinitialized : Boolean
一个标志,用于确定某个对象是否已通过布局的所有三个阶段:提交、测量和布局(假设每个阶段都是必需的)。
UIComponent
 InheritedinstanceIndex : int
[只读 (read-only)] 重复组件的索引。
UIComponent
 InheritedinstanceIndices : Array
一个 Array,包含从此 UIComponent 对象的父文档引用该对象所需的索引。
UIComponent
 InheritedisDocument : Boolean
[只读 (read-only)] 确定此 UIComponent 实例是否为文档对象,也就是说它是否位于 Flex 应用程序、MXML 组件或 ActionScript 组件层次结构的顶层。
UIComponent
 InheritedisPopUp : Boolean
PopUpManager 将其设置为 true 以指示已弹出该组件。
UIComponent
 InheriteditemRenderer : IFactory
控件的自定义项目渲染器。
AdvancedListBase
  itemRendererProviders : Array
一个 OLAPDataGridItemRendererProvider 实例 Array,这些实例为控件的单元格指定自定义项目渲染器。
OLAPDataGrid
 InheritedlistData : BaseListData
如果使用组件作为嵌入式项目渲染器或嵌入式项目编辑器,则 Flex 将使用 list 控件中的其它数据初始化组件的 listData 属性。
AdvancedListBase
 InheritedliveScrolling : Boolean = true
一个标志,指示移动滚动栏滑块时实时滚动视图,还是释放滑块后才更新视图。
ScrollControlBase
 InheritedloaderInfo : LoaderInfo
[只读 (read-only)] 返回一个 LoaderInfo 对象,其中包含加载此显示对象所属的文件的相关信息。
DisplayObject
 InheritedlockedRowCount : int
滚动的控件中第一行的索引。
AdvancedDataGrid
 Inheritedmask : DisplayObject
调用显示对象被指定的 mask 对象遮罩。
DisplayObject
 InheritedmaxHeight : Number
布局过程中父级要考虑的组件最大建议高度。
UIComponent
 InheritedmaxWidth : Number
布局过程中父级要考虑的组件最大建议宽度。
UIComponent
 InheritedmeasuredHeight : Number
组件的默认高度(以像素为单位)。
UIComponent
 InheritedmeasuredMinHeight : Number
组件的默认最小高度(以像素为单位)。
UIComponent
 InheritedmeasuredMinWidth : Number
组件的默认最小宽度(以像素为单位)。
UIComponent
 InheritedmeasuredWidth : Number
组件的默认宽度(以像素为单位)。
UIComponent
 InheritedmenuSelectionMode : Boolean = false
一个标志,指示是否应使用菜单样式选择。
AdvancedListBase
 InheritedminColumnWidth : Number
列的最小宽度(以像素为单位)。
AdvancedDataGridBaseEx
 InheritedminHeight : Number
布局过程中父级要考虑的组件最小建议高度。
UIComponent
 InheritedminWidth : Number
布局过程中父级要考虑的组件最小建议宽度。
UIComponent
 InheritedmoduleFactory : IFlexModuleFactory
用于在正确的 SWF 上下文中创建 TextFields 的 moduleFactory。
UIComponent
 InheritedmouseChildren : Boolean
确定对象的子项是否支持鼠标。
DisplayObjectContainer
 InheritedmouseEnabled : Boolean
指定此对象是否接收鼠标消息。
InteractiveObject
 InheritedmouseFocusEnabled : Boolean
单击时是否可接收焦点。
UIComponent
 InheritedmouseX : Number
[只读 (read-only)] 指示鼠标位置的 x 坐标,以像素为单位。
DisplayObject
 InheritedmouseY : Number
[只读 (read-only)] 指示鼠标位置的 y 坐标,以像素为单位。
DisplayObject
 Inheritedname : String
指示 DisplayObject 的实例名称。
DisplayObject
 InheritednestLevel : int
此对象在所属关系层次结构中的深度。
UIComponent
 InheritednonInheritingStyles : Object
此组件的非继承样式链的开头内容。
UIComponent
 InheritednumAutomationChildren : int
[只读 (read-only)] 此容器包含的自动化子项数。
UIComponent
 InheritednumChildren : int
[只读 (read-only)] 返回此对象的子项数目。
DisplayObjectContainer
 InheritedopaqueBackground : Object
指定显示对象是否由于具有某种背景颜色而不透明。
DisplayObject
 Inheritedowner : DisplayObjectContainer
此 UIComponent 的所有者。
UIComponent
 Inheritedparent : DisplayObjectContainer
[只读 (read-only)] 此组件的父容器或组件。
UIComponent
 InheritedparentApplication : Object
[只读 (read-only)] 引用包含此 UIComponent 实例的 Application 对象。
UIComponent
 InheritedparentDocument : Object
[只读 (read-only)] 引用此 UIComponent 的父文档对象。
UIComponent
 InheritedpercentHeight : Number
以组件父项大小百分比的方式指定组件高度的数字。
UIComponent
 InheritedpercentWidth : Number
以组件父项大小百分比形式指定其宽度的数字。
UIComponent
 InheritedprocessedDescriptors : Boolean
临时或延迟子项创建操作后设置为 true,具体取决于发生对象。
UIComponent
 Inheritedprototype : Object
[静态] 对类或函数对象的原型对象的引用。
Object
 Inheritedrepeater : IRepeater
[只读 (read-only)] 对生成此 UIComponent 的父文档中 Repeater 对象的引用。
UIComponent
 InheritedrepeaterIndex : int
[只读 (read-only)] 项目在生成此 UIComponent 的 Repeater 数据提供程序中的索引。
UIComponent
 InheritedrepeaterIndices : Array
一个 Array,包含项目在生成此 UIComponent 的父文档的 Repeater 数据提供程序中的索引。
UIComponent
 Inheritedrepeaters : Array
一个 Array,包含对生成此 UIComponent 的父文档中 Repeater 对象的引用。
UIComponent
 InheritedresizableColumns : Boolean = true
一个标志,指示用户能否更改列的尺寸。
AdvancedDataGridBaseEx
 Inheritedroot : DisplayObject
[只读 (read-only)] 对于加载的 SWF 文件中的显示对象,root 属性是此 SWF 文件所表示的显示列表树结构部分中的顶级显示对象。
DisplayObject
 Inheritedrotation : Number
指示 DisplayObject 实例距其原始方向的旋转程度,以度为单位。
DisplayObject
 InheritedrotationX : Number
指示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 x 轴旋转(以度为单位)。
DisplayObject
 InheritedrotationY : Number
指示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 y 轴旋转(以度为单位)。
DisplayObject
 InheritedrotationZ : Number
指示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 z 轴旋转(以度为单位)。
DisplayObject
 InheritedrowCount : int
要显示的行数。
AdvancedListBase
 InheritedrowHeight : Number
行高(以像素为单位)。
AdvancedListBase
 Inheritedscale9Grid : Rectangle
当前有效的缩放网格。
DisplayObject
 InheritedscaleX : Number
用于指定水平缩放系数的数字。
UIComponent
 InheritedscaleY : Number
用于指定垂直缩放系数的数字。
UIComponent
 InheritedscaleZ : Number
指示从对象的注册点开始应用的对象的深度缩放比例(百分比)。
DisplayObject
 Inheritedscreen : Rectangle
[只读 (read-only)] 返回包含此对象的基本绘图表面大小和位置的对象。
UIComponent
 InheritedscrollRect : Rectangle
显示对象的滚动矩形范围。
DisplayObject
 InheritedscrollTipFunction : Function
将要显示的字符串作为 ScrollTip 计算的函数。
ScrollControlBase
 Inheritedselectable : Boolean
一个标志,指示列表是否将所选项目显示为选中状态。
AdvancedListBase
 InheritedselectedCells : Array
包含行和列索引形式的单元格位置的 Array。
AdvancedDataGrid
 InheritedselectedIndex : int
所选项目的数据提供程序中的索引。
AdvancedListBase
 InheritedselectedIndices : Array
数据提供程序中所选项目的索引的数组。
AdvancedListBase
 InheritedselectedItem : Object
对数据提供程序中所选项目的引用。
AdvancedListBase
 InheritedselectedItems : Array
对数据提供程序中所选项目的引用的 Array。
AdvancedListBase
 InheritedselectionMode : String
控件的选择模式。
AdvancedDataGridBase
 InheritedshowInAutomationHierarchy : Boolean
用于确定自动化对象是否显示在自动化层次中的标志。
UIComponent
 InheritedshowScrollTips : Boolean = false
一个标志,指示拖动滚动滑块时是否应在其旁边显示工具提示。
ScrollControlBase
 InheritedsoundTransform : SoundTransform
控制此 sprite 中的声音。
Sprite
 Inheritedstage : Stage
[只读 (read-only)] 显示对象的舞台。
DisplayObject
 Inheritedstates : Array
为此组件定义的视图状态。
UIComponent
 InheritedstyleDeclaration : CSSStyleDeclaration
存储此对象的内嵌继承样式。
UIComponent
  styleFunction : Function
[只写] 一个回调函数,当单元格数据区域中呈现每个单元格时调用此函数。
OLAPDataGrid
 InheritedstyleName : Object
此组件使用的类样式。
UIComponent
 InheritedsystemManager : ISystemManager
返回此组件使用的 SystemManager 对象。
UIComponent
 InheritedtabChildren : Boolean
确定对象的子项是否支持 Tab 键。
DisplayObjectContainer
 InheritedtabEnabled : Boolean
指定此对象是否遵循 Tab 键顺序。
InteractiveObject
 InheritedtabIndex : int
指定 SWF 文件中的对象按 Tab 键顺序排列。
InteractiveObject
 InheritedtextSnapshot : TextSnapshot
[只读 (read-only)] 返回此 DisplayObjectContainer 实例的 TextSnapshot 对象。
DisplayObjectContainer
 InheritedtoolTip : String
要在 ToolTip 中显示的文本。
UIComponent
 Inheritedtransform : Transform
一个对象,具有与显示对象的矩阵、颜色转换和像素范围有关的属性。
DisplayObject
 Inheritedtransitions : Array
一个 Transition 对象 Array,其中的每个 Transition 对象都定义一组效果,用于在视图状态发生更改时播放。
UIComponent
 InheritedtreeColumn : AdvancedDataGridColumn
显示该树的列。
AdvancedDataGrid
 InheritedtweeningProperties : Array
当前在此对象上进行补间的属性数组。
UIComponent
 Inheriteduid : String
对象的唯一标识符。
UIComponent
 InheritedupdateCompletePendingFlag : Boolean
一个标志,确定某个对象是否已通过所有三个阶段的布局验证(假设需要通过所有验证)。
UIComponent
 InheriteduseHandCursor : Boolean
布尔值,指示当鼠标滑过其 buttonMode 属性设置为 true 的 sprite 时是否显示手指形(手形光标)。
Sprite
 InheritedvalidationSubField : String
供验证程序用来将子字段与此组件相关联。
UIComponent
 Inheritedvalue : Object
[只读 (read-only)] 所选项目,或者所选项目的数据或标签字段。
AdvancedListBase
 InheritedvariableRowHeight : Boolean
一个标志,指示各行是否可以采用不同的高度。
AdvancedListBase
 InheritedverticalScrollPolicy : String
指示垂直滚动条是始终启用、始终禁用还是自动根据传递到 setScrollBarProperties() 方法的参数进行更改的属性。
ScrollControlBase
 InheritedverticalScrollPosition : Number
顶边到内容的偏移量。
ScrollControlBase
 InheritedviewMetrics : EdgeMetrics
[只读 (read-only)] 考虑滚动条(如果可见)的 EdgeMetrics 对象。
ScrollControlBase
 Inheritedvisible : Boolean
控制此 UIComponent 的可见性。
UIComponent
 Inheritedwidth : Number
指定组件在父坐标中的宽度的数字(以像素为单位)。
UIComponent
 InheritedwordWrap : Boolean
一个标志,指示行中的文本是否应自动换行。
AdvancedListBase
 Inheritedx : Number
指定组件在其父容器中的水平位置(以像素为单位)的数字。
UIComponent
 Inheritedy : Number
指定组件在其父容器中的垂直位置(以像素为单位)的数字。
UIComponent
 Inheritedz : Number
指示 DisplayObject 实例相对于 3D 父容器沿 z 轴的 z 坐标位置。
DisplayObject
受保护的属性
 属性定义方
 InheritedactualCollection : ICollectionView
通常存储于运行数据更改效果时使用的 collection 属性中的值副本。
AdvancedListBase
 InheritedactualIterator : IViewCursor
通常存储于运行数据更改效果时使用的 iterator 属性中的值副本。
AdvancedListBase
 InheritedanchorBookmark : CursorBookmark
作为锚点的项目的书签。
AdvancedListBase
 InheritedanchorColumnIndex : int = -1
当前锚记的列索引。
AdvancedDataGrid
 InheritedanchorIndex : int = -1
作为选择锚点的数据提供程序中项目的偏移量。
AdvancedListBase
 Inheritedborder : IFlexDisplayObject
边框对象。
ScrollControlBase
 InheritedcachedDataChangeEffect : Effect = null
当控件的数据提供程序中发生更改时播放的效果。
AdvancedListBase
 InheritedcaretBookmark : CursorBookmark
尖号下方项目的书签。
AdvancedListBase
 InheritedcaretColumnIndex : int = -1
尖号下的项目的列名称。
AdvancedDataGrid
 InheritedcaretIndex : int = -1
位于选择尖号点处的数据提供程序中项目的偏移量。
AdvancedListBase
 InheritedcaretIndicator : Sprite
包含图形的 DisplayObject,该图形指示哪个渲染器是尖号。
AdvancedListBase
 InheritedcaretItemRenderer : IListItemRenderer
尖号下方项目的渲染器。
AdvancedListBase
 InheritedcaretUID : String
尖号下方项目的 UID。
AdvancedListBase
 InheritedcellSelectionTweens : Object
所选内容补间的哈希表。
AdvancedDataGrid
 Inheritedcollection : ICollectionView
用于提供数据提供程序的 ICollectionView。
AdvancedListBase
 InheritedcolumnMap : Object
项目渲染器到列的映射。
AdvancedDataGridBase
 InheritedcurrentColNum : int
包含当前正为其创建渲染器的列的索引。
AdvancedDataGridBase
 InheritedcurrentItemTop : Number
包含当前创建的渲染器的顶部位置。
AdvancedDataGridBase
 InheritedcurrentRowHeight : Number
当前行的高度(以像素为单位)。
AdvancedDataGridBase
 InheritedcurrentRowNum : int
包含当前正为其创建渲染器的行的索引。
AdvancedDataGridBase
 InheriteddataEffectCompleted : Boolean = false
一个标志,指示数据更改效果已完成。
AdvancedListBase
 InheriteddataItemWrappersByRenderer : Dictionary
将项目渲染器映射到 ItemWrappers(用于提供其数据)的 dictionary。
AdvancedListBase
 InheriteddefaultColumnCount : int = 4
要显示的默认列数。
AdvancedListBase
 InheriteddefaultRowCount : int = 4
要显示的默认行数。
AdvancedListBase
 InheritedexplicitColumnCount : int = -1
显式设置 columnCount 属性时需要的列计数。
AdvancedListBase
 InheritedexplicitColumnWidth : Number
显式设置 columnWidth 时需要的列宽。
AdvancedListBase
 InheritedexplicitRowCount : int = -1
显式设置 rowCount 时需要的行计数。
AdvancedListBase
 InheritedexplicitRowHeight : Number
显式设置 rowHeight 时需要的行高。
AdvancedListBase
 InheritedfreeItemRenderers : Array
闲置项目渲染器的堆栈。
AdvancedListBase
 InheritedheaderInfos : Array
控件中所有列的 AdvancedDataGridHeaderInfo 实例 Array。
AdvancedDataGridBase
 InheritedheaderRowInfo : Array
缓存 headerItems 数组中标题的标题高度及其它相关信息的 ListRowInfo 实例 Array。
AdvancedDataGridBase
 InheritedhighlightColumnIndex : int = -1
当前在光标上或下滚动的项目的列索引。
AdvancedDataGrid
 InheritedhighlightIndicator : Sprite
包含图形的 DisplayObject,用以指示加亮哪个渲染器。
AdvancedListBase
 InheritedhighlightItemRenderer : IListItemRenderer
当前滚动到尖号上方或下方的渲染器。
AdvancedListBase
 InheritedhighlightUID : String
当前滚动到尖号上方或下方的项目的 UID。
AdvancedListBase
 InheritedhorizontalScrollBar : ScrollBar
水平滚动条。
ScrollControlBase
 InheritedisKeyPressed : Boolean = false
如果 key press 事件正在进行中,则包含 true。
AdvancedDataGridBaseEx
 InheriteditemRendererToFactoryMap : Dictionary
将项目渲染器映射到创建其的 Factory 实例。
AdvancedDataGridBase
 InheriteditemsNeedMeasurement : Boolean = true
一个标志,指示是否需要计算 columnWidth 和 rowHeight 属性。
AdvancedListBase
 InheriteditemsSizeChanged : Boolean = false
一个标志,指示渲染器的大小可能已更改。
AdvancedListBase
 Inheritediterator : IViewCursor
用于从数据提供程序中获取项目并将这些项目传递给渲染器的主 IViewCursor 实例。
AdvancedListBase
 InheritediteratorValid : Boolean = true
一个标志,指示发生页面错误和迭代器位置无效(未放置在所显示的最上方项目处)。
AdvancedListBase
 InheritedkeySelectionPending : Boolean = false
一个标志,指示键盘选择是否由于页面错误而中断。
AdvancedListBase
 InheritedlastSeekPending : ListBaseSeekPending
导致页面错误的最新一次搜寻。
AdvancedListBase
 InheritedlistContent : AdvancedListBaseContentHolder
一个内部显示对象,是所有项目渲染器、选择内容、亮显指示符以及其它支持图形的父级。
AdvancedListBase
 InheritedlistItems : Array
一个由数组组成的 Array,其中包含用于呈现各个数据提供程序项目的项目渲染器实例。
AdvancedListBase
 InheritedmaskShape : Shape
遮罩。
ScrollControlBase
 InheritedmodifiedCollectionView : ModifiedCollectionView
集合视图,用于暂时保留上次的数据提供程序状态,以方便运行数据更改效果。
AdvancedListBase
 InheritedrendererChanged : Boolean = false
一个标志,指示渲染器已更改。
AdvancedListBase
 InheritedreservedItemRenderers : Object
当前闲置但近期可能会用到的项目渲染器的哈希映射。
AdvancedListBase
 InheritedresourceManager : IResourceManager
[只读 (read-only)] 引用管理所有应用程序本地化资源的对象。
UIComponent
 InheritedrowInfo : Array
ListRowInfo 对象数组,用于缓存行高和 listItems 属性中行的其它跟踪信息。
AdvancedListBase
 InheritedrowMap : Object
项目渲染器与其各自 ListRowInfo 对象的哈希映射。
AdvancedListBase
 InheritedrunDataEffectNextUpdate : Boolean = false
一个标志,指示下次更新显示时是否应该启动数据效果。
AdvancedListBase
 InheritedrunningDataEffect : Boolean = false
一个标志,指示当前是否正在运行数据更改效果
AdvancedListBase
 InheritedscrollAreaChanged : Boolean
一个标志,指示滚动区域随滚动条的出现或消失进行更改。
ScrollControlBase
 InheritedselectedColumnIndex : int = -1
所选单元格的列。
AdvancedDataGrid
 InheritedselectedData : Object
用于跟踪当前所选项目的 ListBaseSelectionData 对象的哈希表。
AdvancedListBase
 InheritedselectionIndicators : Object
所选指示符的哈希表。
AdvancedListBase
 InheritedselectionLayer : Sprite
listContent 中的图层,用于绘制所有选择内容和加亮指示符。
AdvancedListBase
 InheritedselectionTweens : Object
所选内容补间的哈希表。
AdvancedListBase
 InheritedshowCaret : Boolean
一个标志,指示是否显示尖号。
AdvancedListBase
 InheritedtreeColumnIndex : int
[只读 (read-only)] 树列编号。
AdvancedDataGrid
 Inheritedtween : Object
设置行动画的补间对象,用户可以将事件侦听器添加到此 Object,以便在补间开始、更新和结束时获取通知。
AdvancedDataGrid
 InheritedunconstrainedRenderers : Object
不受列表布局算法影响的项目渲染器的哈希映射
AdvancedListBase
 InheritedunscaledHeight : Number
[只读 (read-only)] 用于确定组件的未缩放高度的简便方法。
UIComponent
 InheritedunscaledWidth : Number
[只读 (read-only)] 用于确定组件的未缩放宽度的简便方法。组件的绘图和子布局的所有设置均应在以此宽度为宽的矩形边框中完成,还应将此宽度作为参数传递到 updateDisplayList() 中。
UIComponent
 InheritedverticalScrollBar : ScrollBar
垂直滚动条。
ScrollControlBase
 InheritedvisibleCellRenderers : Object
视图中当前使用的数据提供程序项目渲染器的哈希表。
AdvancedDataGrid
 InheritedvisibleData : Object
视图中当前使用的数据提供程序项目渲染器的哈希表。
AdvancedListBase
 InheritedvisibleHeaderInfos : Array
为可显示列定义标题项目渲染器的 AdvancedDataGridHeaderRenderer 实例 Array。
AdvancedDataGridBase
 InheritedwordWrapChanged : Boolean = false
一个标志,指示自上次更新显示列表后 wordWrap 属性值是否已更改。
AdvancedListBase
公共方法
 方法定义方
  
构造函数。
OLAPDataGrid
 Inherited
将一个 DisplayObject 子实例添加到该 DisplayObjectContainer 实例中。
DisplayObjectContainer
 Inherited
将一个 DisplayObject 子实例添加到该 DisplayObjectContainer 实例中。
DisplayObjectContainer
 Inherited
如果正在运行数据更改效果,则添加项目渲染器。
AdvancedListBase
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。
EventDispatcher
 Inherited
指示安全限制是否会导致出现以下情况:在列表中忽略了使用指定 point 点调用 DisplayObjectContainer.getObjectsUnderPoint() 方法时返回的所有显示对象。
DisplayObjectContainer
 Inherited
callLater(method:Function, args:Array = null):void
排队稍后调用的函数。
UIComponent
 Inherited
删除此组件实例中的样式属性。
UIComponent
 Inherited
确定指定显示对象是 DisplayObjectContainer 实例的子项还是该实例本身。
DisplayObjectContainer
 Inherited
将 Point 对象由内容坐标转换为全局坐标。
UIComponent
 Inherited
将 Point 对象由内容坐标转换为本地坐标。
UIComponent
 Inherited
返回标识此容器中的子项的一组属性。
UIComponent
 Inherited
在 IUIComponent 对象的父项文档对象上创建对此对象的 id 引用。
UIComponent
 Inherited
在 IUIComponent 对象的父项文档对象上删除对此对象的 id 引用。
UIComponent
 Inherited
返回与此 UIComponent 的文本样式对应的 UITextFormat 对象。
UIComponent
 Inherited
将事件调度到事件流中。
UIComponent
 Inherited
在此组件周围显示或隐藏焦点指示符。
UIComponent
 Inherited
drawRoundRect(x:Number, y:Number, width:Number, height:Number, cornerRadius:Object = null, color:Object = null, alpha:Object = null, gradientMatrix:Matrix = null, gradientType:String = "linear", gradientRatios:Array = null, hole:Object = null):void
通过编程方式在此外观的 Graphics 对象中绘制一个矩形。
UIComponent
 Inherited
停止在组件上播放效果实例时,由效果实例调用。
UIComponent
 Inherited
开始在组件上播放效果实例时,由效果实例调用。
UIComponent
 Inherited
结束组件上当前播放的所有效果。
UIComponent
 Inherited
executeBindings(recurse:Boolean = false):void
将数据绑定到此 UIComponent 对象。
UIComponent
 Inherited
根据某一字符串在列表中查找项目并选择该项目。
AdvancedListBase
 Inherited
打印完成后调用。
UIComponent
 Inherited
在指定的索引位置提供自动化对象。
UIComponent
 Inherited
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
返回一个矩形,该矩形定义相对于 targetCoordinateSpace 对象坐标系的显示对象区域。
DisplayObject
 Inherited
返回位于指定索引处的子显示对象实例。
DisplayObjectContainer
 Inherited
返回具有指定名称的子显示对象。
DisplayObjectContainer
 Inherited
返回 DisplayObject 的 child 实例的索引位置。
DisplayObjectContainer
 Inherited
查找此 UIComponent 实例的类型选择器。
UIComponent
 Inherited
getConstraintValue(constraintName:String):*
返回一个约束布局值,这与获取此组件的约束样式的方式类似。
UIComponent
 Inherited
确定是使用显式高度还是测量高度的一种简便方法
UIComponent
 Inherited
确定是使用显式宽度还是测量宽度的一种简便方法
UIComponent
 Inherited
获取当前具有焦点的对象。
UIComponent
 Inherited
返回对象的数组,这些对象位于指定点下,并且是该 DisplayObjectContainer 实例的子项(或孙子项,依此类推)。
DisplayObjectContainer
 Inherited
getRect(targetCoordinateSpace:DisplayObject):Rectangle
返回一个矩形,该矩形根据 targetCoordinateSpace 参数定义的坐标系定义显示对象的边界,但不包括形状上的任何笔触。
DisplayObject
 Inherited
getRendererSemanticValue(target:Object, semanticProperty:String):Object
返回项目渲染器的特定语义属性值;如果尚未定义该属性(尽管数据效果正在运行),则返回 null。
AdvancedListBase
 Inherited
getRepeaterItem(whichRepeater:int = -1):Object
返回 dataProvider 中由指定的 Repeater 用来生成此 Repeater 的项目;如果此 Repeater 未重复,则返回 null。
UIComponent
 Inherited
getStyle(styleProp:String):*
获取已在此组件的样式查找链中的某个位置设置过的样式属性。
UIComponent
 Inherited
将 Point 对象由全局坐标转换为内容坐标。
UIComponent
 Inherited
将 point 对象从舞台(全局)坐标转换为显示对象的(本地)坐标。
DisplayObject
 Inherited
将二维点从舞台(全局)坐标转换为三维显示对象的(本地)坐标。
DisplayObject
 Inherited
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
EventDispatcher
 Inherited
指示对象是否已经定义了指定的属性。
Object
 Inherited
计算显示对象,以确定它是否与 obj 显示对象重叠或相交。
DisplayObject
 Inherited
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
计算显示对象,以确定它是否与 x 和 y 参数指定的点重叠或相交。
DisplayObject
 Inherited
返回一个框 Matrix,在绘制水平渐变时可以将其作为 rot 参数传递给 drawRoundRect() 方法。
UIComponent
 Inherited
针对数据提供程序中某个项目的索引获取项目渲染器(如果存在)。
AdvancedListBase
 Inherited
indicesToIndex(rowIndex:int, colIndex:int):int
计算 colIndex 和 rowIndex 处项目的数据提供程序中的偏移量。
AdvancedListBase
 Inherited
初始化此组件的内部结构。
UIComponent
 Inherited
初始化用于跟踪此组件的重复实例的各个属性。
UIComponent
 Inherited
标记组件,以便在稍后屏幕更新期间调用该组件的 updateDisplayList() 方法。
UIComponent
 Inherited
在下次更新时刷新所有行。
AdvancedListBase
 Inherited
标记组件,以便在稍后屏幕更新期间调用该组件的 commitProperties() 方法。
UIComponent
 Inherited
标记组件,以便在稍后屏幕更新期间调用该组件的 measure() 方法。
UIComponent
 Inherited
确定是否加亮显示数据提供程序项目的项目渲染器(当鼠标滑过它,或者通过键盘导航使它位于尖号下方时)。
AdvancedListBase
 Inherited
确定数据提供程序项目的项目渲染器是否可选。
AdvancedListBase
 Inherited
确定是否已选中数据提供程序项目的项目渲染器。
AdvancedListBase
 Inherited
确定渲染器是否显示某个项目。
AdvancedListBase
 Inherited
指示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
确定渲染器是否包含(或拥有)显示对象。
AdvancedListBase
 Inherited
返回通过此项目渲染器呈现的该项目在数据提供程序中的项目索引。
AdvancedListBase
 Inherited
返回渲染器根据 dataTipField 和 dataTipFunction 属性显示给定数据对象的数据提示字符串。
AdvancedListBase
 Inherited
根据 iconField 和 iconFunction 属性返回表示数据项目图标的类(如果存在)。
AdvancedListBase
 Inherited
返回数据提供程序中给定项目的项目渲染器(如果存在)。
AdvancedListBase
 Inherited
返回渲染器根据 labelField 和 labelFunction 属性显示给定数据对象的字符串。
AdvancedListBase
 Inherited
将三维显示对象的(本地)坐标的三维点转换为舞台(全局)坐标中的二维点。
DisplayObject
 Inherited
将 Point 对象由本地坐标转换为内容坐标。
UIComponent
 Inherited
将 point 对象从显示对象的(本地)坐标转换为舞台(全局)坐标。
DisplayObject
 Inherited
measureHeightOfItems(index:int = -1, count:int = 0):Number
使用当前项目渲染器测量数据提供程序中的一组项目,并返回这些项目的高度之和。
AdvancedListBase
 Inherited
测量指定的 HTML 文本(该文本中可能包含 <font> 和 <b> 等 HTML 标记),假定该文本显示在单行 UITextField(使用由此 UIComponent 的样式确定的 UITextFormat)中。
UIComponent
 Inherited
测量指定的文本,假定该文本显示在单行 UITextField(使用由此 UIComponent 的样式确定的 UITextFormat)中。
UIComponent
 Inherited
measureWidthOfItems(index:int = -1, count:int = 0):Number
使用当前项目渲染器测量数据提供程序中的一组项目,并返回找到的最大宽度。
AdvancedListBase
 Inherited
将组件移动到其父项内的指定位置。
UIComponent
 Inherited
moveFocusToHeader(columnIndex:int = -1):void
将焦点移至指定的列标题。
AdvancedDataGridBaseEx
 Inherited
将样式更改传播到子项。
UIComponent
 Inherited
如果 owner 属性链从 child 指向此 UIComponent,则返回 true。
UIComponent
 Inherited
当在父项中添加或删除 UIComponent 对象时由 Flex 调用。
UIComponent
 Inherited
准备 IFlexDisplayObject 用于打印。
UIComponent
 Inherited
指示指定的属性是否存在、是否可枚举。
Object
 Inherited
为此组件构建或重新构建 CSS 样式缓存;如果 recursive 参数为 true,还会为此组件的所有后代执行同样的操作。
UIComponent
 Inherited
针对每个效果事件,将 EffectManager 注册为一个事件侦听器。
UIComponent
 Inherited
从 DisplayObjectContainer 实例的子列表中删除指定的 child DisplayObject 实例。
DisplayObjectContainer
 Inherited
从 DisplayObjectContainer 的子列表中指定的 index 位置删除子 DisplayObject。
DisplayObjectContainer
 Inherited
如果正在运行数据更改效果,则移除项目渲染器。
AdvancedListBase
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
从 EventDispatcher 对象中删除侦听器。
EventDispatcher
 Inherited
重放指定的事件。
UIComponent
 Inherited
使用提供的 ID 解析子项。
UIComponent
 Inherited
[静态] 在调用 suspendBackgroundProcessing() 之后继续对使用 callLater() 排队的方法进行背景处理。
UIComponent
 Inherited
确保给定索引处的数据提供程序项目可见。
AdvancedListBase
 Inherited
调整对象大小。
UIComponent
 Inherited
更改现有子项在显示对象容器中的位置。
DisplayObjectContainer
 Inherited
setConstraintValue(constraintName:String, value:*):void
设置一个布局约束值的方式,与设置此组件的约束样式的方式相同。
UIComponent
 Inherited
setCurrentState(stateName:String, playTransition:Boolean = true):void
设置当前状态。
UIComponent
 Inherited
设置此组件的焦点。
UIComponent
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
setStyle(styleProp:String, newValue:*):void
对此组件实例设置样式属性。
UIComponent
 Inherited
setVisible(value:Boolean, noEvent:Boolean = false):void
当 visible 属性发生更改时调用。
UIComponent
  
检测对样式属性的更改。
OLAPDataGrid
 Inherited
首次初始化组件样式时,Flex 会调用 stylesInitialized() 方法。
UIComponent
 Inherited
[静态] 阻止对使用 callLater() 排队的方法进行背景处理,直到调用 resumeBackgroundProcessing() 为止。
UIComponent
 Inherited
交换两个指定子对象的 Z 轴顺序(从前到后顺序)。
DisplayObjectContainer
 Inherited
swapChildrenAt(index1:int, index2:int):void
在子级列表中两个指定的索引位置,交换子对象的 Z 轴顺序(前后顺序)。
DisplayObjectContainer
 Inherited
返回一个字符串,用于指示此对象在应用程序的 DisplayObject 层次结构中所处的位置。
FlexSprite
 Inherited
暂时停止使用控件的布局算法定位项目渲染器。
AdvancedListBase
 Inherited
验证子项的位置和大小,并绘制其它可视内容。
UIComponent
 Inherited
验证并更新此对象的属性和布局,如果需要的话重绘对象。
UIComponent
 Inherited
由布局逻辑用于通过调用 commitProperties() 方法来验证组件的属性。
UIComponent
 Inherited
validateSize(recursive:Boolean = false):void
如果使用此 ILayoutManagerClient 调用 LayoutManager.invalidateSize() 方法,随后在测量时调用了 validateSize() 方法,则验证组件的度量大小。
UIComponent
 Inherited
处理分配给此组件的验证程序调度的 valid 和 invalid 事件。
UIComponent
 Inherited
返回指定对象的原始值。
Object
 Inherited
返回一个框 Matrix,在绘制垂直渐变时可以将其作为 rot 参数传递给 drawRoundRect()。
UIComponent
 Inherited
检查是否用此 EventDispatcher 对象或其任何始祖为指定事件类型注册了事件侦听器。
EventDispatcher
受保护的方法
 方法定义方
 Inherited
将绝对列索引转换为显示列中的相应索引。
AdvancedDataGridBaseEx
 Inherited
将绝对列索引转换为可见列中相应的索引。
AdvancedDataGridBaseEx
 Inherited
absoluteToVisibleIndices(rowIndex:int, columnIndex:int):Object
将绝对行索引和列索引转换为控件按当前方式显示项目的相应行索引和列索引。
AdvancedDataGridBaseEx
 Inherited
将单元格选择信息添加到控件,好像您是使用鼠标选择的单元格。
AdvancedDataGrid
 Inherited
将渲染器添加到循环使用的渲染器列表,使其不可见并清除对该渲染器的引用。
AdvancedListBase
 Inherited
调整焦点矩形。
UIComponent
 Inherited
adjustListContent(unscaledWidth:Number = -1, unscaledHeight:Number = -1):void
从 updateDisplayList() 方法调用,用以调整列表内容的大小和位置。
AdvancedListBase
 Inherited
applyCellSelectionEffect(indicator:Sprite, uid:String, columnIndex:int, itemRenderer:IListItemRenderer):void
设置应用选择指示符的效果。
AdvancedDataGrid
 Inherited
设置应用选择指示符的效果。
AdvancedListBase
 Inherited
将 AdvancedDatagrid 控件中的样式应用到项目渲染器中。
AdvancedDataGrid
 Inherited
如果 Object 至少包含一个属性,这意味着词典中至少有一个键,则返回 true。
AdvancedDataGrid
 Inherited
这是一个内部方法,供 Flex 框架用于支持 Dissolve 效果。
UIComponent
 Inherited
在执行拖放操作时计算放置指示符的 y 位置。
AdvancedListBase
 Inherited
calculateRowHeight(data:Object, hh:Number, skipVisible:Boolean = false):Number
计算一行中列的行高。
AdvancedDataGridBase
 Inherited
创建子对象后执行任何最终处理。
UIComponent
 Inherited
清除关于单元格选择的信息。
AdvancedDataGrid
 Inherited
删除所有选定、加亮显示和尖号指示符。
AdvancedDataGrid
 Inherited
clearSelected(transition:Boolean = false):void
清除所选项目组,并移除表示那些项目的选定状态的所有图形。
AdvancedListBase
 Inherited
clearSelectedCells(transition:Boolean = false):void
清除 selectedCells 属性。
AdvancedDataGrid
 Inherited
删除通常用于调整列大小的列标题分隔符。
AdvancedDataGridBaseEx
 Inherited
当数据发生更改时,处理从数据提供程序中调度的 CollectionEvent。
AdvancedListBase
 Inherited
按当前显示方式返回列索引。
AdvancedDataGridBaseEx
 Inherited
根据是否已显式设置 columnCountcolumnWidth、rowHeight 和 rowCount 等属性来计算列宽、行高以及行数和列数。
AdvancedListBase
 Inherited
根据行数、列数以及可查看的行和列配置 ScrollBar。
AdvancedListBase
 Inherited
copySelectedItems(useDataField:Boolean = true):Array
按所选项目的选择顺序为其制作副本。
AdvancedListBase
 Inherited
为此组件创建边框。
ScrollControlBase
 Inherited
创建对象作为此 ListBase 的子对象,在这种情况下为将控制所有项目渲染器的 listContent 对象。
AdvancedListBase
 Inherited
创建列标题。
AdvancedDataGridBase
 Inherited
createHeaderSeparators(n:int, seperators:Array, headerLines:UIComponent):void
创建列标题之间的标题分隔符,并使用创建的分隔符填充分隔符 Array。
AdvancedDataGridBaseEx
 Inherited
根据所用的嵌入字体使用上下文创建新对象。
UIComponent
 Inherited
使用给定的 moduleFactory 创建对象。
UIComponent
 Inherited
createLockedRows(left:Number, top:Number, right:Number, bottom:Number):void
创建锁定行(如有必要)。
AdvancedDataGridBase
 Inherited
将列的当前显示列索引转换为其相应的绝对索引。
AdvancedDataGridBaseEx
 Inherited
drawCaretIndicator(indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):void
使用指定的颜色在给定的 Sprite 中采用指定的位置、宽度和高度绘制尖号指示符。
AdvancedListBase
 Inherited
使用建议的颜色为列绘制列背景。
AdvancedDataGridBaseEx
 Inherited
在给定的 UIComponent 中绘制标题的背景。
AdvancedDataGridBaseEx
 Inherited
drawHighlightIndicator(indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):void
使用指定的颜色在给定的 Sprite 中采用指定的位置、宽度和高度绘制加亮指示符。
AdvancedListBase
 Inherited
drawHorizontalLine(s:Sprite, rowIndex:int, color:uint, y:Number):void
绘制行之间的直线。
AdvancedDataGridBaseEx
 Inherited
drawItem(item:IListItemRenderer, selected:Boolean = false, highlighted:Boolean = false, caret:Boolean = false, transition:Boolean = false):void
绘制带有指示符(加亮显示的或选中的)或尖号的渲染器。
AdvancedListBase
 Inherited
在列之间及列背景之间绘制线条。
AdvancedDataGridBaseEx
 Inherited
drawRowBackground(s:Sprite, rowIndex:int, y:Number, height:Number, color:uint, dataIndex:int):void
使用指定的颜色在指定的位置按指定的高度绘制行背景。
AdvancedDataGridBaseEx
 Inherited
绘制行中所有交替行的颜色、边框和背景。
AdvancedListBase
 Inherited
drawSelectionIndicator(indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):void
使用指定的颜色在给定的 Sprite 中采用指定的位置、宽度和高度绘制选择指示符。
AdvancedListBase
 Inherited
创建用户通常用于调整列大小的列标题分隔符并将其显示出来。
AdvancedDataGridBaseEx
 Inherited
drawVerticalLine(s:Sprite, colIndex:int, color:uint, x:Number):void
在各列之间绘制垂直线。
AdvancedDataGrid
 Inherited
drawVisibleItem(uid:String, selected:Boolean = false, highlighted:Boolean = false, caret:Boolean = false, transition:Boolean = false):void
绘制与指定的 UID 相对应的项目渲染器。
AdvancedDataGridBase
 Inherited
findKey(eventCode:int):Boolean
尝试在数据提供程序中查找下一个以 eventCode 参数中的字符开头的项目。
AdvancedListBase
 Inherited
在数据更改效果运行完毕后,通过恢复原始集合和迭代器并移除此效果使用的所有缓存值进行清理。
AdvancedListBase
 Inherited
基于 caretIndex 和 anchorIndex 属性设置所选项目。
AdvancedDataGrid
 Inherited
当 UIComponent 对象获得焦点时调用的事件处理函数。
UIComponent
 Inherited
当 UIComponent 对象失去焦点时调用的事件处理函数。
UIComponent
  
确定对特定单元格使用哪个渲染器。
OLAPDataGrid
  
对字符串值应用与特定单元格关联的格式设置。
OLAPDataGrid
 Inherited
返回标题项目渲染器。
AdvancedDataGridBase
  
返回渲染器中标签的缩进(以像素为单位)。
OLAPDataGrid
 Inherited
检索已创建但当前未使用的项目渲染器。
AdvancedListBase
 Inherited
getRowHeight(itemData:Object = null):Number
返回行高。
AdvancedDataGridBase
 Inherited
getSeparator(i:int, seperators:Array, headerLines:UIComponent):UIComponent
返回列标题之间的标题分隔符,并使用返回的分隔符填充分隔符 Array。
AdvancedDataGridBaseEx
 Inherited
indexToColNum(columnIndex:int):int
按当前显示方式返回当前显示列的列数。
AdvancedDataGridBaseEx
 Inherited
给定索引处数据提供程序项目所在的列。
AdvancedListBase
 Inherited
给定索引处数据提供程序项目所在的行。
AdvancedListBase
 Inherited
完成对此组件的初始化。
UIComponent
 Inherited
初始化此组件的辅助功能代码。
UIComponent
 Inherited
initiateDataChangeEffect(unscaledWidth:Number, unscaledHeight:Number):void
当数据提供程序中发生更改时应用数据更改效果。
AdvancedListBase
 Inherited
初始化由 AdvancedDataGrid 项目渲染器使用的 AdvancedDataGridListData 对象。
AdvancedDataGrid
 Inherited
如果 selectedMode 为 SINGLE_CELL 或 MULTIPLE_CELLS,则返回 true。
AdvancedDataGridBase
 Inherited
isColumnFullyVisible(columnIndex:int, rowIndex:int = -1):Boolean
如果某一列中的指定行可见,则返回 true。
AdvancedDataGridBaseEx
 Inherited
检查是否允许编辑组或摘要行。
AdvancedDataGridBaseEx
 Inherited
通常由包含 UITextField 对象的组件覆盖,其中 UITextField 对象获取焦点。
UIComponent
 Inherited
如果项目渲染器不再根据列表的布局算法定位,则返回 true,尽管由于调用 unconstrainRenderer() 方法正在运行数据更改效果。
AdvancedListBase
 Inherited
如果 selectedMode 为 SINGLE_ROW 或 MULTIPLE_ROWS,则返回 true。
AdvancedDataGridBase
 Inherited
返回包含项目渲染器的列索引和行索引的 Point 实例。
AdvancedListBase
 Inherited
确定数据提供程序项目的 UID。
AdvancedListBase
 Inherited
为 keyDown 事件调用的事件处理函数。
UIComponent
 Inherited
为 keyUp 事件调用的事件处理函数。
UIComponent
 Inherited
layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void
通过设置此控件边框的位置和大小来响应大小更改。
ScrollControlBase
 Inherited
makeListData(data:Object, uid:String, rowNum:int, columnNum:int, column:AdvancedDataGridColumn):BaseListData
创建 AdvancedDataGridListData 新实例,并根据输入数据提供程序项目填充字段。
AdvancedDataGridBase
 Inherited
根据 rowCount、columnCount、rowHeight 和 columnWidth 属性计算组件的度量宽度和高度。
AdvancedListBase
 Inherited
处理列表中所有鼠标目标(包括渲染器)的 MouseEvent.MOUSE_CLICK 事件。
AdvancedListBase
 Inherited
处理列表中所有鼠标目标(包括渲染器)的 MouseEvent.MOUSE_DOUBLE_CLICK 事件。
AdvancedListBase
 Inherited
处理列表中所有鼠标目标(包括渲染器)的 MouseEvent.MOUSE_DOWN 事件。
AdvancedListBase
 Inherited
确定哪种项目渲染器位于鼠标下方。
AdvancedListBase
 Inherited
处理列表中所有鼠标目标(包括渲染器)的 MouseEvent.MOUSE_MOVE 事件。
AdvancedListBase
 Inherited
处理列表中所有鼠标目标(包括渲染器)的 MouseEvent.MOUSE_OUT 事件。
AdvancedListBase
 Inherited
处理列表中所有鼠标目标(包括渲染器)的 MouseEvent.MOUSE_OVER 事件。
AdvancedListBase
 Inherited
处理列表中所有鼠标目标(包括渲染器)的 MouseEvent.MOUSE_DOWN 事件。
AdvancedListBase
 Inherited
通过更改滚动位置处理 mouseWheel 事件。
AdvancedListBase
 Inherited
moveIndicators(uid:String, offset:int, absolute:Boolean):void
当控件滚动其显示内容时,按给定的偏移量上下移动单元格和行选择指示符。
AdvancedDataGrid
 Inherited
水平移动所选项目并加亮指示符.
AdvancedListBase
 Inherited
moveIndicatorsVertically(uid:String, moveBlockDistance:Number):void
垂直移动所选项目并加亮指示符.
AdvancedListBase
 Inherited
沿水平方向移动所选项目,以响应用户使用向左箭头或向右箭键头以及功能键(如 Shift 和 Ctrl 键)选择项目的操作。
AdvancedListBase
 Inherited
沿垂直方向移动所选项目,以响应用户使用向上箭头或向下箭头键以及功能键(如 Shift 和 Ctrl 键)选择项目的操作。
AdvancedListBase
 Inherited
从控件中删除单元格选择信息。
AdvancedDataGrid
 Inherited
清理数据提供程序中给定项目的选项亮显及其它关联图形。
AdvancedListBase
 Inherited
构建 UIComponent 时将调用此方法,并且每当 ResourceManager 调度“change”事件用于指示本地化资源已经过某种更改时,都会再次调用此方法。
UIComponent
 Inherited
roomForScrollBar(bar:ScrollBar, unscaledWidth:Number, unscaledHeight:Number):Boolean
确定此组件中的空间是否足以显示给定的滚动条。
ScrollControlBase
 Inherited
scroll 事件的默认事件处理函数。
ScrollControlBase
 Inherited
scrollHorizontally(pos:int, deltaPos:int, scrollUp:Boolean):void
调整渲染器以响应滚动位置的更改。
AdvancedListBase
 Inherited
scrollPositionToIndex(horizontalScrollPosition:int, verticalScrollPosition:int):int
返回给定滚动位置第一个可见行和列处的项目的数据提供程序索引。
AdvancedListBase
 Inherited
scrollToViewColumn(newColumnIndex:int, columnIndex:int):void
更改 horizontalScrollPosition 属性的值以使指定的列可见。
AdvancedDataGridBaseEx
 Inherited
scrollVertically(pos:int, deltaPos:int, scrollUp:Boolean):void
调整渲染器以响应滚动位置的更改。
AdvancedListBase
 Inherited
当由于页面错误而导致寻找失败时的默认故障处理函数。
AdvancedListBase
 Inherited
当由于页面错误而导致寻找失败时的默认结果处理函数。
AdvancedListBase
 Inherited
selectCellItem(item:IListItemRenderer, shiftKey:Boolean, ctrlKey:Boolean, transition:Boolean = true):Boolean
更新所选单元格的列表,假定用鼠标单击了指定的项目渲染器且键盘功能键处于指定的状态。
AdvancedDataGrid
 Inherited
选择指定的列标题。
AdvancedDataGridBaseEx
 Inherited
selectItem(item:IListItemRenderer, shiftKey:Boolean, ctrlKey:Boolean, transition:Boolean = true):Boolean
如果使用鼠标单击提供的项目渲染器,并且键盘功能键处于给定状态,则更新所选项目组。
AdvancedDataGrid
 Inherited
设置 rowCount 属性不会导致 invalidation,也不会设置将永久锁定行数的 explicitRowCount 属性。
AdvancedListBase
 Inherited
设置 rowHeight 属性不会导致 invalidation,也不会设置将永久锁定行高的 explicitRowHeight。
AdvancedListBase
 Inherited
setScrollBarProperties(totalColumns:int, visibleColumns:int, totalRows:int, visibleRows:int):void
使 ScrollControlBase 基于传递的参数显示或隐藏滚动条。
ScrollControlBase
 Inherited
设置由 uid 定义的单元格以使用 item 所指定的项目渲染器。
AdvancedDataGridBase
 Inherited
unselectColumnHeader(columnNumber:int, completely:Boolean = false):void
取消对指定列标题的选择。
AdvancedDataGridBaseEx
 Inherited
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
当可显示的项目数发生更改时添加或移除项目渲染器。
AdvancedListBase
 Inherited
立即刷新所有行。
AdvancedListBase
 Inherited
将列的当前可见列索引转换为其相应的绝对索引。
AdvancedDataGridBaseEx
事件
 事件 摘要 定义方
 Inherited[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。EventDispatcher
 Inherited使用 addChild() 或 addChildAt() 方法将组件作为内容子项添加到容器时调度。UIComponent
 Inherited将显示对象添加到显示列表中时调度。DisplayObject
 Inherited在将显示对象直接添加到舞台显示列表或将包含显示对象的子树添加至舞台显示列表中时调度。DisplayObject
 Inherited当用户操作导致 selectedIndex 或 selectedItem 属性更改时调度此事件。AdvancedListBase
 Inherited当用户从文本上下文菜单中选择“清除”(或“删除”)时调度。InteractiveObject
 Inherited用户在同一 InteractiveObject 上按下并释放用户指针设备的主按钮时调度。InteractiveObject
 Inherited当用户更改列宽时调度,指示此列中显示的数据量可能会更改。AdvancedDataGridBaseEx
 Inherited当用户在 AIR 应用程序中选择与此交互式对象相关联的上下文菜单时调度。InteractiveObject
 Inherited当用户激活特定于平台的复制操作的快捷键组合或从文本上下文菜单中选择“复制”时调度。InteractiveObject
 Inherited当组件完成其构建、属性处理、测量、布置和绘制时调度。UIComponent
 Inherited视图状态更改后调度。UIComponent
 Inherited在 currentState 属性更改后但视图状态更改前调度。UIComponent
 Inherited当用户激活特定于平台的剪切操作的快捷键组合或从文本上下文菜单中选择“剪切”时调度。InteractiveObject
 Inherited当 data 属性更改时进行调度。AdvancedListBase
 Inherited[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。EventDispatcher
 Inherited如果 InteractiveObject 的 doubleClickEnabled 标志设置为 true,当用户在该对象上快速连续按下两次并释放指针设备的主按钮时调度。InteractiveObject
 Inherited启动拖动操作时,由拖动启动器调度。UIComponent
 Inherited在一个效果结束后调度。UIComponent
 Inherited在即将开始播放效果前调度。UIComponent
 Inherited[播放事件] 播放头进入新帧时调度。DisplayObject
 Inherited组件返回到根视图状态之后调度。UIComponent
 Inherited[广播事件] 播放头退出当前帧时调度。DisplayObject
 Inherited组件退出根视图状态之前调度。UIComponent
 Inherited显示对象获得焦点后调度。InteractiveObject
 Inherited显示对象失去焦点后调度。InteractiveObject
 Inherited[广播事件] 在帧显示对象的构造函数运行之后但在帧脚本运行之前调度。DisplayObject
 Inherited当对象的状态从可见变为不可见时调度。UIComponent
 Inherited当组件完成构建并设置了所有初始化属性后调度。UIComponent
 Inherited当组件由 Validator 监控且未通过验证时调度。UIComponent
 Inherited当用户单击控件中的某个项目时调度此事件。AdvancedListBase
 Inherited当用户双击控件中的某个项目时调度此事件。AdvancedListBase
 Inherited当项目渲染器获得焦点时调度。在以下情况下项目渲染器可能会获得焦点:当用户单击 AdvancedDataGrid 控件中的某一项目或使用键盘导航至该项目时。AdvancedDataGridBaseEx
 Inherited当项目渲染器失去焦点时调度。在以下情况下项目渲染器可能会失去焦点:当用户单击 AdvancedDataGrid 控件中的另一项目、在控件外部单击或使用键盘导航到 AdvancedDataGrid 控件中或控件外部的另一项目时。AdvancedDataGridBaseEx
 Inherited当用户将鼠标指针移出控件中的某个项目时调度此事件。AdvancedListBase
 Inherited当用户将鼠标指针滚至控件中的某个项目时调度此方法。AdvancedListBase
 Inherited用户按下某个键时调度。InteractiveObject
 Inherited用户尝试使用键盘导航更改焦点时调度。InteractiveObject
 Inherited用户释放某个键时调度。InteractiveObject
 Inherited当用户在同一 InteractiveObject 上按下并释放用户指针设备的中间按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上按下指针设备的中间按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上释放指针设备按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上按下指针设备按钮时调度。InteractiveObject
 Inherited当用户在使用 PopUpManager 打开的某个组件外部单击时,从该组件调度。UIComponent
 Inherited用户尝试使用指针设备更改焦点时调度。InteractiveObject
 Inherited用户移动 InteractiveObject 上的指针设备时调度。InteractiveObject
 Inherited用户将指针设备从 InteractiveObject 实例上移开时调度。InteractiveObject
 Inherited用户将指针设备移动到 InteractiveObject 实例上时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上释放指针设备按钮时调度。InteractiveObject
 Inherited当鼠标滚轮滚动到 InteractiveObject 实例上时调度。InteractiveObject
 Inherited当用户使用鼠标滚轮滚动到使用 PopUpManager 打开的某个组件外部时,从该组件调度。UIComponent
 Inherited移动对象后调度。UIComponent
 Inherited当用户释放拖动动作时由拖动启动器 InteractiveObject 调度。InteractiveObject
 Inherited在将拖动对象放置到目标上且已通过对 DragManager.acceptDragDrop() 的调用接受该放置操作时,由目标 InteractiveObject 调度。InteractiveObject
 Inherited当拖动动作进入其边界时由 InteractiveObject 调度。InteractiveObject
 Inherited当拖动动作离开其边界时由 InteractiveObject 调度。InteractiveObject
 Inherited当拖动动作保持在其边界内时,由 InteractiveObject 持续调度。InteractiveObject
 Inherited在拖动操作开始时由在 DragManager.doDrag() 调用中指定为拖动启动器的 InteractiveObject 调度。InteractiveObject
 Inherited在拖动操作期间由在 DragManager.doDrag() 调用中指定为拖动启动器的 InteractiveObject 调度。InteractiveObject
 Inherited当用户激活特定于平台的粘贴操作的快捷键组合或从文本上下文菜单中选择“粘贴”时调度。InteractiveObject
 Inherited在组件初始化序列开始时调度。UIComponent
 Inherited使用 removeChild() 或 removeChildAt() 方法将组件作为内容子项从容器中删除时调度。UIComponent
 Inherited将要从显示列表中删除显示对象时调度。DisplayObject
 Inherited在从显示列表中直接删除显示对象或删除包含显示对象的子树时调度。DisplayObject
 Inherited[广播事件] 将要更新和呈现显示列表时调度。DisplayObject
 Inherited在调整组件大小时调度。UIComponent
 Inherited当用户在同一 InteractiveObject 上按下并释放用户指针设备的右按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上按下指针设备按钮时调度。InteractiveObject
 Inherited当用户在 InteractiveObject 实例上释放指针设备按钮时调度。InteractiveObject
 Inherited用户将指针设备从 InteractiveObject 实例上移开时调度。InteractiveObject
 Inherited用户将指针设备移动到 InteractiveObject 实例上时调度。InteractiveObject
 Inherited当滚动内容时调度。ScrollControlBase
 Inherited当用户激活特定于平台的全选操作的快捷键组合或从文本上下文菜单中选择“全选”时调度。InteractiveObject
 Inherited当对象的状态从不可见变为可见时调度。UIComponent
 Inherited要对 AdvancedDataGrid 控件进行排序时调度。AdvancedDataGridBaseEx
 Inherited对象的 tabChildren 标志值发生更改时调度。InteractiveObject
 Inherited对象的 tabEnabled 标志发生更改时调度。InteractiveObject
 Inherited对象的 tabIndex 属性值发生更改时调度。InteractiveObject
 Inherited要创建 ToolTip 时由组件调度。UIComponent
 Inherited已隐藏组件的 ToolTip 并要将其放弃时由组件调度。UIComponent
 Inherited要隐藏组件的 ToolTip 时由组件调度。UIComponent
 Inherited要显示组件的 ToolTip 时由组件调度。UIComponent
 Inherited显示组件的 ToolTip 时由组件调度。UIComponent
 Inherited用户将鼠标移动到设置了 toolTip 属性的组件上方后,由该组件调度。UIComponent
 Inherited当调用了对象的 commitProperties()、measure() 和 updateDisplayList() 方法后调度(如果需要)。UIComponent
 Inherited当组件由 Validator 监控并且成功通过验证时调度。UIComponent
 Inherited当以编程方式或通过用户交互更改值时调度。UIComponent
样式
 样式 说明 定义方
 Inherited类型: Array 格式: Color CSS 继承: yes
交替模式中行的颜色。此值可以是由多种颜色中任意两种所组成的数组。对于 AdvancedDataGrid 控件,行中的所有项目都使用相同的背景颜色,而且每行的背景颜色都由颜色 Array 确定。仅在未指定 backgroundColor 属性时使用。.
AdvancedDataGrid
 Inherited类型: Number CSS 继承: no
backgroundColor 属性定义的颜色和 backgroundImage 样式定义的图像或 SWF 文件的 Alpha 级别。有效值范围为从 0.
ScrollControlBase
 Inherited类型: uint 格式: Color CSS 继承: no
组件的背景颜色。您可以同时设置 backgroundColorbackgroundImage。一些组件没有背景。DataGrid 控件会忽略此样式。默认值为 undefined,即不进行设置。如果此样式和 backgroundImage 样式都为 undefined,则控件将采用透明背景。

对于 Application 容器,此样式指定应用程序加载时的背景色以及运行该应用程序时的背景渐变。Flex 计算比指定颜色略深的颜色和比指定颜色略浅的颜色之间的渐变。

大多数 Flex 控件的默认外观为半透明。因此,容器的背景颜色将在某种程度上“渗入”该容器中的控件。通过将控件的 fillAlphas 属性的 alpha 值设置为 1 可以避免此情况,如以下示例所示:

 <mx: Container backgroundColor="0x66CC66"/> <mx: ControlName ...
ScrollControlBase
 Inherited类型: uint 格式: Color CSS 继承: yes
禁用组件时的组件的背景颜色。全局默认值为 undefined。List 控件的默认值为 0xDDDDDD(浅灰)。如果禁用了容器,背景将变暗,而暗淡程度由 disabledOverlayAlpha 样式控制。.
ScrollControlBase
 Inherited类型: Object 格式: File CSS 继承: no
组件的背景图像。此样式可以是绝对或相对 URL 或类。您可以同时设置 backgroundColorbackgroundImage。背景图像显示在背景色上面。默认值为 undefined,表示“未设置”。如果此样式和 backgroundColor 样式都未定义,则控件将采用透明背景。

大多数 Flex 控件的默认外观为半透明。因此,容器的背景图像将在某种程度上“渗入”该容器中的控件。通过将控件的 fillAlphas 属性的 alpha 值设置为 1 可以避免此情况,如以下示例所示:

 <mx: Container backgroundColor="0x66CC66"/> <mx: ControlName ...
ScrollControlBase
 Inherited类型: String CSS 继承: no
backgroundImage 指定的图像缩放到不同的百分比大小。"100%" 值将拉抻该图像以适应整个组件。要指定百分比值,您必须输入百分号 (%)。Application 容器的默认值为 100%。所有其它容器的默认值为 auto,此值将保持图像的原始大小。.
ScrollControlBase
 Inherited类型: String CSS 继承: no
从内容区域的上边缘到控件的基线位置的垂直距离(以像素为单位)。如果设置此样式,则组件的基线锚定在其内容区域的上边缘;调整组件容器大小后,这两个边缘将保持它们的间距。

此样式仅在 Canvas 容器中的组件上,或在 Panel 或 Application 容器(layout 属性设置为 absolute)中的组件上使用时才发挥作用。

默认值为 undefined,即不进行设置。

.
UIComponent
 Inherited类型: uint 格式: Color CSS 继承: no
边框颜色。默认值取决于组件类;如果没有覆盖该类的默认值,则默认值为 0xB7BABC。.
ScrollControlBase
 Inherited类型: String CSS 继承: no
边框边。指定要显示的边框边的以空格分隔的 String。此 String 可以任意顺序包含 "left""top""right""bottom"。默认值为 "left top right bottom",此值会显示所有四条边。仅当 borderStyle 为 "solid" 时才使用此样式。.
ScrollControlBase
 Inherited类型: Class CSS 继承: no
组件的边框外观类。mx.
ScrollControlBase
 Inherited类型: String CSS 继承: no
边框样式。可能值为 "none""solid""inset""outset"。默认值取决于组件类;如果没有覆盖该类的默认值,则默认值为 "inset"。大多数容器的默认值为 "none"。.
ScrollControlBase
 Inherited类型: Number 格式: Length CSS 继承: no
边框厚度。仅在将 borderStyle 设置为 "solid" 时使用。.
ScrollControlBase
 Inherited类型: String CSS 继承: no
从组件的下边缘到其内容区域的下边缘的垂直距离(以像素为单位)。如果设置此样式,则组件的下边缘锚定在其内容区域的下边缘;调整组件容器大小后,这两个边缘将保持它们的间距。

此样式仅在 Canvas 容器中的组件上,或在 Panel 或 Application 容器(layout 属性设置为 absolute)中的组件上使用时才发挥作用。

默认值为 undefined,即不进行设置。

.
UIComponent
 Inherited类型: uint 格式: Color CSS 继承: yes
组件中文本(包括组件标签)的颜色。.
ScrollControlBase
  
columnAxisHeaderStyleName
类型: String CSS 继承: no
CSS 样式声明的名称,用于控制列轴标题外观的各个方面。默认值为 undefined,表示它使用 headerStyleName 样式的值。
OLAPDataGrid
 Inherited类型: Class CSS 继承: no
用作要调整大小的列的外观的类。.
AdvancedDataGridBaseEx
 Inherited类型: Object CSS 继承: no
控件的数据提供程序中发生更改时使用的效果。这可以是类引用(对效果子类的引用),也可以是 Effect 对象实例。前者适用于 CSS,后者适用于组件中的内嵌定义。.
AdvancedListBase
 Inherited类型: uint 格式: Color CSS 继承: yes
禁用时组件中文本的颜色。.
ScrollControlBase
 Inherited类型: uint 格式: Color CSS 继承: yes
已禁用外观中图标的颜色。例如,CheckBoxIcon 外观类可使用此样式来绘制禁用的 CheckBox 控件的复选标记;ComboBoxSkin 类可使用此样式来绘制禁用的 ComboBox 控件的向下箭头;DateChooserMonthArrowSkin 外观类可使用此样式来绘制禁用的 DateChooser 控件的月箭头。默认值取决于组件类;如果此类未覆盖默认值,则默认值为 0x999999。.
AdvancedDataGridBaseEx
 Inherited类型: Class 格式: EmbeddedFile CSS 继承: no
在导航树的关闭分支节点旁边显示的图标。默认值为 assets.
AdvancedDataGrid
 Inherited类型: Class 格式: EmbeddedFile CSS 继承: no
在导航树的打开分支节点旁边显示的图标。默认值为 assets.
AdvancedDataGrid
 Inherited类型: Class CSS 继承: no
用于指示所拖动项目的放置位置的外观。如果 AdvancedListBase 派生的组件可能是拖放操作的放置目标,则调用 showDropFeedback() 方法将生成此类的一个实例,并将其放置在所放置项目之后项目的项目渲染器上方一个像素处(如果进行放置)。.
AdvancedListBase
 Inherited类型: uint 格式: Color CSS 继承: yes
投影颜色。.
ScrollControlBase
 Inherited类型: Boolean CSS 继承: no
指定组件是否具有可见投影的布尔值属性。此样式与 borderStyle="solid" 一起使用。默认值为 false

注意:对于显示在容器上的投影,需设置 backgroundColorbackgroundImage 属性。否则,由于容器的背景默认为透明,阴影将显示在容器后。

.
ScrollControlBase
 Inherited类型: uint 格式: Color CSS 继承: yes
验证失败时,组件加亮部分的颜色。验证失败时,Flex 还会将组件的 borderColor 样式设置为 errorColor。.
UIComponent
 Inherited类型: Number CSS 继承: no
指定焦点外观的 alpha 透明度值。.
AdvancedListBase
 Inherited类型: String CSS 继承: no
焦点矩形使用的混合模式。有关详细信息,请参阅 flash.
UIComponent
 Inherited类型: String CSS 继承: no
指定焦点矩形的哪些角应该是圆角。此值是使用空格分隔的 String,该 String 可以是 "tl""tr""bl""br" 的任意组合。例如,要指定右侧的角为圆角,左侧的角为直角,应使用 "tr br"cornerRadius 样式属性指定圆角的半径。默认值取决于组件类;如果未覆盖该类的默认值,则默认值为 "tl tr bl br"。.
AdvancedListBase
 Inherited类型: Class CSS 继承: no
用于绘制焦点矩形的外观。.
UIComponent
 Inherited类型: Number 格式: Length CSS 继承: no
焦点矩形轮廓的粗细,以像素为单位。.
UIComponent
 Inherited类型: String CSS 继承: yes
设置内部 TextField 的 antiAliasType 属性。可能值为 "normal" (flash.
ScrollControlBase
 Inherited类型: String CSS 继承: yes
使用的字体的名称。与在完全 CSS 实现中不同,这里不支持逗号分隔的列表。您可以使用任何字体系列名称。如果您指定通用字体名称,它将转换为相应的设备字体。.
ScrollControlBase
 Inherited类型: String CSS 继承: yes
设置用于表示 Flex 控件文本的内部 TextField 的 gridFitType 属性。可能值为 "none" (flash.
ScrollControlBase
 Inherited类型: Number CSS 继承: yes
设置用于表示 Flex 控件文本的内部 TextField 的 sharpness 属性。此属性指定字型边缘的清晰度。可能值为从 -400 到 400 之间的数字。

仅当使用嵌入字体并将 fontAntiAliasType 属性设置为 "advanced" 时,才应用此属性。

此样式对系统字体不起作用。

此样式适用于 TextField 子控件中的所有文本;但不适用于部分字符。

.
ScrollControlBase
 Inherited类型: Number 格式: Length CSS 继承: yes
文本的高度,以像素为单位。除 ColorPicker 控件之外,所有控件的默认值都为 10。ColorPicker 控件的默认值为 11。.
ScrollControlBase
 Inherited类型: String CSS 继承: yes
确定文本是否使用斜体。可识别的值为 "normal""italic"。.
ScrollControlBase
 Inherited类型: Number CSS 继承: yes
设置用于表示 Flex 控件文本的内部 TextField 的 thickness 属性。此属性指定字型边缘的粗细。可能值为从 -200 到 200 之间的数字。

仅当使用嵌入字体并将 fontAntiAliasType 属性设置为 "advanced" 时,才应用此属性。

此样式对系统字体不起作用。

此样式适用于 TextField 子控件中的所有文本;但不适用于部分字符。

.
ScrollControlBase
 Inherited类型: String CSS 继承: yes
确定文本是否使用粗体。可识别的值为 normalbold。Button 控件的默认值为 bold。所有其它控件的默认值为 normal。.
ScrollControlBase
 Inherited类型: Class CSS 继承: no
用作外观的类,可用于定义 AdvancedDataGrid 控件中列标题的背景外观。.
AdvancedDataGridBaseEx
 Inherited类型: Array 格式: Color CSS 继承: yes
用于绘制标题背景渐变的两种颜色的数组。第一种颜色是顶层颜色。第二种颜色是底层颜色。.
AdvancedDataGridBaseEx
 Inherited类型: Class CSS 继承: no
要用作外观的类,可定义 AdvancedDataGrid 控件中不同深度的列标题之间分隔符的外观。.
AdvancedDataGrid
 Inherited类型: Class CSS 继承: no
用作外观的类,可用于定义 AdvancedDataGrid 控件中列标题之间分隔符的外观。.
AdvancedDataGridBaseEx
 Inherited类型: String CSS 继承: no
从组件内容区域的中心到组件中心的水平距离(以像素为单位)。如果设置此样式,则组件的中心锚定在其内容区域的中心;调整组件容器大小后,这两个中心将保持它们的水平间距。

此样式仅在 Canvas 容器中的组件上,或在 Panel 或 Application 容器(layout 属性设置为 absolute)中的组件上使用时才发挥作用。

默认值为 undefined,即不进行设置。

.
UIComponent
 Inherited类型: uint 格式: Color CSS 继承: yes
水平网格线的颜色。.
AdvancedDataGridBaseEx
 Inherited类型: Boolean CSS 继承: no
一个标志,指示是否显示行之间的水平网格线。如果为 true,则显示水平网格线。如果为 false,则隐藏水平网格线。.
AdvancedDataGridBaseEx
 Inherited类型: Class CSS 继承: no
用作外观的类,可定义 AdvancedDataGrid 控件中锁定行与未锁定行之间的分隔符的外观。默认情况下,AdvancedDataGrid 控件使用 drawHorizontalLine()drawVerticalLine() 方法绘制分隔符。.
AdvancedDataGridBaseEx
 Inherited类型: String CSS 继承: no
水平 scrollbar 的样式名称。通过它,可以更精细地控制滚动条的外观。.
ScrollControlBase
 Inherited类型: Class CSS 继承: no
用作外观的类,可用于定义 AdvancedDataGrid 控件中行之间分隔符的外观。默认情况下,AdvancedDataGrid 控件使用 drawHorizontalLine()drawVerticalLine() 方法绘制分隔符。.
AdvancedDataGridBaseEx
 Inherited类型: uint 格式: Color CSS 继承: yes
某个外观中图标的颜色。例如,CheckBoxIcon 外观类可使用此样式来绘制 CheckBox 控件的复选标记;ComboBoxSkin 类可使用此样式来绘制 ComboBox 控件的向下箭头;DateChooserMonthArrowSkin 外观类可使用此样式来绘制 DateChooser 控件的月箭头。默认值取决于组件类;如果此类未覆盖默认值,则默认值为 0x111111。.
AdvancedDataGridBaseEx
 Inherited类型: Number CSS 继承: no
导航树中每个节点的缩进(以像素为单位)。.
AdvancedDataGrid
 Inherited类型: Boolean CSS 继承: yes
一个布尔值,指示是启用 (true) 还是禁用 (false) 字距调整。字距调整会调整某些字符对之间的间隔以提高可读性,并应只在必要时(例如使用大字体标题时)使用。仅嵌入字体支持字距调整。某些字体(如宋体)和等宽字体(如 Courier New)不支持字距调整。.
ScrollControlBase
 Inherited类型: Number 格式: Length CSS 继承: yes
文本行之间附加的垂直空间。

默认值为 2。

ComboBox 控件的默认值为 0。

.
ScrollControlBase
 Inherited类型: String CSS 继承: no
从组件内容区域的左边缘到组件左边缘的水平距离(以像素为单位)。如果设置此样式,则组件的左边缘锚定在其内容区域的左边缘;调整组件容器大小后,这两个边缘将保持它们的间距。

此样式仅在 Canvas 容器中的组件上,或在 Panel 或 Application 容器(layout 属性设置为 absolute)中的组件上使用时才发挥作用。

默认值为 undefined,即不进行设置。

.
UIComponent
 Inherited类型: Number CSS 继承: yes
各字符之间显示的附加像素数。如果为正值,则会在正常间距的基础上增加字符间距;如果为负值,则减小此间距。.
ScrollControlBase
 Inherited类型: Number 格式: Length CSS 继承: no
行的底部与该行中渲染器底部之间的像素数目。.
AdvancedListBase
 Inherited类型: Number 格式: Length CSS 继承: no
控件左边框与内容区域左边缘之间的像素数目。.
AdvancedDataGrid
 Inherited类型: Number 格式: Length CSS 继承: no
控件右边框与内容区域右边缘之间的像素数目。.
AdvancedDataGrid
 Inherited类型: Number 格式: Length CSS 继承: no
行的顶部与该行中渲染器顶部之间的像素数目。.
AdvancedListBase
 Inherited类型: String CSS 继承: no
从组件的右边缘到其内容区域的右边缘的水平距离(以像素为单位)。如果设置此样式,则组件的右边缘锚定在其内容区域的右边缘;调整组件容器大小后,这两个边缘将保持它们的间距。

此样式仅在 Canvas 容器中的组件上,或在 Panel 或 Application 容器(layout 属性设置为 absolute)中的组件上使用时才发挥作用。

默认值为 undefined,即不进行设置。

.
UIComponent
 Inherited类型: uint 格式: Color CSS 继承: yes
用户将鼠标滑过行时的行背景颜色。.
AdvancedDataGridBaseEx
  
rowAxisHeaderStyleName
类型: String CSS 继承: no
CSS 样式声明的名称,用于控制行轴标题外观的各个方面。默认值为 undefined,表示它使用 headerStyleName 样式的值。
OLAPDataGrid
 Inherited类型: uint 格式: Color CSS 继承: yes
用户选择行中的项目渲染器时的行背景颜色。.
AdvancedDataGridBaseEx
 Inherited类型: uint 格式: Color CSS 继承: yes
列表项目的禁用颜色。.
AdvancedDataGrid
 Inherited类型: Number 格式: Time CSS 继承: no
选择效果的持续时间。如果选中了某个项目,则在背景着色时会播放相应的效果。设置为 0 可禁用此效果。.
AdvancedListBase
 Inherited类型: Function CSS 继承: no
对用于控制以编程方式补间的 easingFunction 函数的引用。

默认值为 undefined

.
AdvancedDataGrid
 Inherited类型: String CSS 继承: no
投影方向。可能值包括 "left""center""right"。.
ScrollControlBase
 Inherited类型: Number 格式: Length CSS 继承: no
投影距离。如果将此属性设置为负值,此阴影将出现在组件的上方。.
ScrollControlBase
 Inherited类型: Class CSS 继承: no
用作指示可调整列大小的光标外观的类。.
AdvancedDataGridBaseEx
 Inherited类型: String CSS 继承: yes
容器内文本的对齐情况。可能值有:"left""right""center"

大多数组件的默认值为 "left"。对于 FormItem 组件,默认值为 "right"。对于 Button、LinkButton 和 AccordionHeader 组件,默认值为 "center",且仅当将 labelPlacement 属性设置为 "left""right" 时,才能识别此属性。如果将 labelPlacement 设置为 "top""bottom",将居中文本及所有图标。

.
ScrollControlBase
 Inherited类型: String CSS 继承: yes
确定文本是否加下划线。可能值有:"none""underline"。.
ScrollControlBase
 Inherited类型: Number 格式: Length CSS 继承: yes
文本第一行偏离容器左侧的距离(以像素为单位)。.
ScrollControlBase
 Inherited类型: uint 格式: Color CSS 继承: yes
用户将鼠标滑过某行时的文本颜色。.
AdvancedDataGrid
 Inherited类型: uint 格式: Color CSS 继承: yes
用户选择某行时的文本颜色。.
AdvancedDataGrid
 Inherited类型: uint 格式: Color CSS 继承: yes
组件的主题颜色。此属性控制加亮内容的外观、选中组件时的外观和其它相似的形象化提示,但是它对此组件的常规边框和背景颜色不起作用。虽然可以使用任意有效的颜色值,但首选值为 haloGreenhaloBluehaloOrangehaloSilver

rollOverColorselectionColor 样式的默认值基于 themeColor 值。

.
UIComponent
 Inherited类型: String CSS 继承: no
从控件内容区域的上边缘到组件上边缘的垂直距离(以像素为单位)。如果设置此样式,则组件的上边缘锚定在其内容区域的上边缘;调整其容器大小后,这两个边缘将保持其间距。

此样式仅在 Canvas 容器中的组件上,或在 Panel 或 Application 容器(layout 属性设置为 absolute)中的组件上使用时才发挥作用。

默认值为 undefined,即不进行设置。

.
UIComponent
 Inherited类型: Boolean CSS 继承: no
一个标志,控制当鼠标滚过项目时是否加亮显示该项目。如果为 true,则当鼠标滚过行时加亮显示这些行。如果为 false,则只在选中行时才进行加亮显示。.
AdvancedListBase
 Inherited类型: String CSS 继承: no
垂直对齐行中的渲染器。可能值包括 "top""middle""bottom"。DataGrid 根据此样式以及 paddingToppaddingBottom 样式在行中定位渲染器。如果某一行上各列中项目的高度不等,则其它列表类不使用 verticalAlign,但项目渲染器可以检查此样式属性,并根据检查结果调整其布局。.
AdvancedListBase
 Inherited类型: String CSS 继承: no
从组件内容区域的中心到组件中心的垂直距离(以像素为单位)。如果设置此样式,则组件的中心锚定在其内容区域的中心;调整其容器大小后,这两个中心将保持其垂直间距。

此样式仅在 Canvas 容器中的组件上,或在 Panel 或 Application 容器(layout 属性设置为 absolute)中的组件上使用时才发挥作用。

默认值为 undefined,即不进行设置。

.
UIComponent
 Inherited类型: uint 格式: Color CSS 继承: yes
垂直网格线的颜色。.
AdvancedDataGridBaseEx
 Inherited类型: Boolean CSS 继承: no
一个标志,指示是否显示列之间的垂直网格线。如果为 true,则显示垂直网格线。如果为 false,则隐藏垂直网格线。.
AdvancedDataGridBaseEx
 Inherited类型: Class CSS 继承: no
用作外观的类,可定义 AdvancedDataGrid 控件中锁定列与未锁定列之间的分隔符的外观。默认情况下,AdvancedDataGrid 控件使用 drawHorizontalLine()drawVerticalLine() 方法绘制分隔符。.
AdvancedDataGridBaseEx
 Inherited类型: String CSS 继承: no
垂直 scrollbar 的样式名称。通过它,可以更精细地控制滚动条的外观。.
ScrollControlBase
 Inherited类型: Class CSS 继承: no
用作外观的类,可定义 AdvancedDataGrid 控件中列之间的分隔符的外观。默认情况下,AdvancedDataGrid 控件使用 drawHorizontalLine()drawVerticalLine() 方法绘制分隔符。.
AdvancedDataGridBaseEx
效果
 效果 说明 定义方
 Inherited 触发事件: added
将组件作为子项添加到 Container 时播放。
UIComponent
 Inherited 触发事件: creationComplete
创建组件时播放。
UIComponent
 Inherited 触发事件: focusIn
组件获得键盘焦点时播放。
UIComponent
 Inherited 触发事件: focusOut
组件失去键盘焦点时播放。
UIComponent
 Inherited 触发事件: hide
组件变为不可见时播放。
UIComponent
 Inherited 触发事件: mouseDown
用户在组件上方按下鼠标按键时播放。
UIComponent
 Inherited 触发事件: mouseUp
用户在组件上方释放鼠标按键时播放。
UIComponent
 Inherited 触发事件: move
移动组件时播放。
UIComponent
 Inherited 触发事件: removed
从 Container 中删除组件时播放。
UIComponent
 Inherited 触发事件: resize
调整组件大小时播放。
UIComponent
 Inherited 触发事件: rollOut
用户将鼠标指针滚离组件上方时播放。
UIComponent
 Inherited 触发事件: rollOver
用户将鼠标指针滚动到组件上方时播放。
UIComponent
 Inherited 触发事件: show
组件变为可见时播放。
UIComponent
公共常量
 常量定义方
  COLUMN_AXIS : int = 0
[静态] 对应于列轴的常数。
OLAPDataGrid
 InheritedDEFAULT_MAX_HEIGHT : Number = 10000
[静态] maxHeight 属性的默认值。
UIComponent
 InheritedDEFAULT_MAX_WIDTH : Number = 10000
[静态] maxWidth 属性的默认值。
UIComponent
 InheritedDEFAULT_MEASURED_HEIGHT : Number = 22
[静态] measuredHeight 属性的默认值。
UIComponent
 InheritedDEFAULT_MEASURED_MIN_HEIGHT : Number = 22
[静态] measuredMinHeight 属性的默认值。
UIComponent
 InheritedDEFAULT_MEASURED_MIN_WIDTH : Number = 40
[静态] measuredMinWidth 属性的默认值。
UIComponent
 InheritedDEFAULT_MEASURED_WIDTH : Number = 160
[静态] measuredWidth 属性的默认值。
UIComponent
 InheritedHEADER_ICON_PART : String = "headerIconPart"
[静态] 指示鼠标悬停在标题的标头部分上。
AdvancedDataGrid
 InheritedHEADER_TEXT_PART : String = "headerTextPart"
[静态] 指示鼠标悬停在标题的文本部分上。
AdvancedDataGrid
 InheritedMULTIPLE_CELLS : String = "multipleCells"
[静态] selectionMode 属性的常量定义,允许选择多个单元格。
AdvancedDataGridBase
 InheritedMULTIPLE_ROWS : String = "multipleRows"
[静态] selectionMode 属性的常量定义,允许选择多行。
AdvancedDataGridBase
 InheritedNONE : String = "none"
[静态] selectionMode 属性的常量定义。
AdvancedDataGridBase
  OLAP_DIMENSION : int = 3
[静态] 对应于轴中成员的常数。
OLAPDataGrid
  OLAP_HIERARCHY : int = 2
[静态] 对应于轴中成员的常数。
OLAPDataGrid
  OLAP_LEVEL : int = 1
[静态] 对应于轴级别的常数。
OLAPDataGrid
  OLAP_MEMBER : int = 0
[静态] 对应于轴中成员的常数。
OLAPDataGrid
  ROW_AXIS : int = 1
[静态] 对应于行轴的常数。
OLAPDataGrid
 InheritedSINGLE_CELL : String = "singleCell"
[静态] selectionMode 属性的常量定义,允许选择单个单元格。
AdvancedDataGridBase
 InheritedSINGLE_ROW : String = "singleRow"
[静态] selectionMode 属性的常量定义,允许选择单行。
AdvancedDataGridBase
  SLICER_AXIS : int = 2
[静态] 对应于切片器轴的常数。
OLAPDataGrid
属性详细信息
dataProvider属性
dataProvider:Object  [读写]

OLAPDataGrid 只接受 IOLAPResult 作为 dataProvider,其它的 dataProvider 均忽略。用户可以将 dataProvider 设置为 null,以重置该控件。



实现
    public function get dataProvider():Object
    public function set dataProvider(value:Object):void
defaultCellString属性 
public var defaultCellString:String = "NaN"

当 IOLAPResult 实例返回的单元格数据为 null 或 NaN 时,该单元格中显示的字符串。

默认值为 "NaN".

headerRendererProviders属性 
headerRendererProviders:Array  [读写]

一个 OLAPDataGridHeaderRendererProvider 实例 Array,这些实例为控件的列指定自定义标题渲染器。您可以使用多个标题渲染器提供者指定用于控件中不同列的自定义标题渲染器。



实现
    public function get headerRendererProviders():Array
    public function set headerRendererProviders(value:Array):void
itemRendererProviders属性 
itemRendererProviders:Array  [读写]

一个 OLAPDataGridItemRendererProvider 实例 Array,这些实例为控件的单元格指定自定义项目渲染器。您可以使用多个渲染器提供者指定用于控件中不同位置的自定义项目渲染器。



实现
    public function get itemRendererProviders():Array
    public function set itemRendererProviders(value:Array):void
styleFunction属性 
styleFunction:Function  [只写]

一个回调函数,当单元格数据区域中呈现每个单元格时调用此函数。回调函数的签名为:

function myStyleFunction(row:IOLAPAxisPosition, column:IOLAPAxisPosition, value:Number):Object

其中,row 是在行轴上与此单元格关联的 IOLAPAxisPosition,column 是在列轴上与此单元格关联的 IOLAPAxisPosition,value 是单元格值。

返回值应是以样式作为属性的 Object。例如:{ color:0xFF0000, fontWeight:"bold" }

当单元格中的值为 NaN 时,将调用此函数,并将 NaN 作为最后一个参数



实现
    public function set styleFunction(value:Function):void
构造函数详细信息
OLAPDataGrid()构造函数
public function OLAPDataGrid()

构造函数。

方法详细信息
getCellRendererInfo()方法
protected function getCellRendererInfo(row:IOLAPAxisPosition, column:IOLAPAxisPosition):OLAPDataGridItemRendererProvider

确定对特定单元格使用哪个渲染器。单元格位于行轴和列轴上某个位置的相交处,因此它遵从 itemRendererProviders 属性为这两个轴定义的规则。此方法为行轴赋予了高于列轴的优先级,并搜索要用于渲染器的正确的 itemRendererProviders 属性值。

参数

row:IOLAPAxisPosition — 该单元格在行轴中的位置。
 
column:IOLAPAxisPosition — 该单元格在列轴中的位置。

返回
OLAPDataGridItemRendererProvider — 要用于行轴和列轴相交处单元格的项目渲染器。
getFormattedCellValue()方法 
protected function getFormattedCellValue(label:String, row:IOLAPAxisPosition, col:IOLAPAxisPosition):String

对字符串值应用与特定单元格关联的格式设置。单元格位于行轴和列轴上某个位置的相交处。

参数

label:String — 要格式化的字符串值。
 
row:IOLAPAxisPosition — 具有关联 formatter 的单元格在行轴中的位置。
 
col:IOLAPAxisPosition — 具有关联 formatter 的单元格在列轴中的位置。

返回
Stringlabel 的格式化值;如果单元格不存在或单元格没有应用 formatter,则返回 label
getIndent()方法 
protected function getIndent(position:IOLAPAxisPosition, m:IOLAPMember, mIndex:int):int

返回渲染器中标签的缩进(以像素为单位)。

参数

position:IOLAPAxisPosition — 渲染器在轴上的位置。
 
m:IOLAPMember — 需要缩进的维度上的成员。
 
mIndex:intposition.membersm 的索引。

返回
int — 渲染器中标签的缩进(以像素为单位)。
styleChanged()方法 
override public function styleChanged(styleProp:String):void

检测对样式属性的更改。设置任何样式属性后,Flex 将调用 styleChanged() 方法,向其传递所设置样式的名称。

此方法是一种高级方法,可在创建 UIComponent 的子类时覆盖。创建自定义组件时,可以覆盖 styleChanged() 方法,以检查传递给它的样式名称,并对更改进行相应处理。这允许您覆盖现有样式的默认行为或添加自己的自定义样式属性。

如果您处理样式属性,覆盖 styleChanged() 方法时应调用 invalidateDisplayList() 方法,以使 Flex 在下次更新屏幕时执行组件的 updateDisplayList() 方法。

参数

styleProp:String — 所更改的样式属性的名称。

常量详细信息
COLUMN_AXIS常量
public static const COLUMN_AXIS:int = 0

对应于列轴的常数。

OLAP_DIMENSION常量 
public static const OLAP_DIMENSION:int = 3

对应于轴中成员的常数。

OLAP_HIERARCHY常量 
public static const OLAP_HIERARCHY:int = 2

对应于轴中成员的常数。

OLAP_LEVEL常量 
public static const OLAP_LEVEL:int = 1

对应于轴级别的常数。

OLAP_MEMBER常量 
public static const OLAP_MEMBER:int = 0

对应于轴中成员的常数。

ROW_AXIS常量 
public static const ROW_AXIS:int = 1

对应于行轴的常数。

SLICER_AXIS常量 
public static const SLICER_AXIS:int = 2

对应于切片器轴的常数。

示例 如何使用示例
OLAPDataGridExample.mxml
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        creationComplete="creationCompleteHandler();">

    <mx:Script>
      <![CDATA[
        import mx.rpc.AsyncResponder;
        import mx.rpc.AsyncToken;
        import mx.olap.OLAPQuery;
        import mx.olap.OLAPSet;
        import mx.olap.IOLAPQuery;
        import mx.olap.IOLAPQueryAxis;
        import mx.olap.IOLAPCube;
        import mx.olap.OLAPResult;
        import mx.events.CubeEvent;
        import mx.controls.Alert;
        import mx.collections.ArrayCollection;
        
        
        //
        // Format of Objects in the ArrayCollection:
        //
        //  data:Object = {
        //    customer:"AAA", 
        //    product:"ColdFusion",
        //    quarter:"Q1"
        //    revenue: "100.00" 
        //  }
        //

        [Bindable]
        private var flatData:ArrayCollection = new ArrayCollection(
        [
         {customer:"AAA", product:"ColdFusion", quarter:"Q1", revenue:210, cost:25},
         {customer:"AAA", product:"Flex", quarter:"Q2", revenue:210, cost:25},
         {customer:"AAA", product:"Dreamweaver", quarter:"Q3", revenue:250, cost:125},
         {customer:"AAA", product:"Flash", quarter:"Q4", revenue:430, cost:75},

         {customer:"BBB", product:"ColdFusion", quarter:"Q2", revenue:125, cost:20},
         {customer:"BBB", product:"Flex", quarter:"Q3", revenue:210, cost:20},
         {customer:"BBB", product:"Dreamweaver", quarter:"Q4", revenue:320, cost:120},
         {customer:"BBB", product:"Flash", quarter:"Q1", revenue:280, cost:70},

         {customer:"CCC", product:"ColdFusion", quarter:"Q3", revenue:375, cost:120},
         {customer:"CCC", product:"Flex", quarter:"Q4", revenue:430, cost:120},
         {customer:"CCC", product:"Dreamweaver", quarter:"Q1", revenue:470, cost:220},
         {customer:"CCC", product:"Flash", quarter:"Q2", revenue:570, cost:170},
    
         {customer:"AAA", product:"ColdFusion", quarter:"Q4", revenue:215, cost:90},
         {customer:"AAA", product:"Flex", quarter:"Q1", revenue:210, cost:90},
         {customer:"AAA", product:"Dreamweaver", quarter:"Q2", revenue:175, cost:190},
         {customer:"AAA", product:"Flash", quarter:"Q3", revenue:670, cost:75},
    
         {customer:"BBB", product:"ColdFusion", quarter:"Q1", revenue:175, cost:20},
         {customer:"BBB", product:"Flex", quarter:"Q2", revenue:210, cost:20},
         {customer:"BBB", product:"Dreamweaver",quarter:"Q3", revenue:120, cost:120},
         {customer:"BBB", product:"Flash", quarter:"Q4", revenue:310, cost:70},
    
         {customer:"CCC", product:"ColdFusion", quarter:"Q1", revenue:385, cost:120},
         {customer:"CCC", product:"Flex", quarter:"Q2", revenue:340, cost:120},
         {customer:"CCC", product:"Dreamweaver", quarter:"Q3", revenue:470, cost:220},
         {customer:"CCC", product:"Flash", quarter:"Q4", revenue:270, cost:170},
    
         {customer:"AAA", product:"ColdFusion", quarter:"Q1", revenue:100, cost:25},
         {customer:"AAA", product:"Flex", quarter:"Q2", revenue:150, cost:25},
         {customer:"AAA", product:"Dreamweaver", quarter:"Q3", revenue:200, cost:125},
         {customer:"AAA", product:"Flash", quarter:"Q4", revenue:300, cost:75},
    
         {customer:"BBB", product:"ColdFusion", quarter:"Q2", revenue:175, cost:20},
         {customer:"BBB", product:"Flex", quarter:"Q3", revenue:100, cost:20},
         {customer:"BBB", product:"Dreamweaver", quarter:"Q4", revenue:270, cost:120},
         {customer:"BBB", product:"Flash", quarter:"Q1", revenue:370, cost:70},
    
         {customer:"CCC", product:"ColdFusion", quarter:"Q3", revenue:410, cost:120},
         {customer:"CCC", product:"Flex", quarter:"Q4", revenue:300, cost:320},
         {customer:"CCC", product:"Dreamweaver", quarter:"Q1", revenue:510, cost:220},
         {customer:"CCC", product:"Flash", quarter:"Q2", revenue:620, cost:170},
    
         {customer:"AAA", product:"ColdFusion", quarter:"Q4", revenue:215, cost:90},
         {customer:"AAA", product:"Flex", quarter:"Q1", revenue:210, cost:90},
         {customer:"AAA", product:"Dreamweaver", quarter:"Q2", revenue:175, cost:190},
         {customer:"AAA", product:"Flash", quarter:"Q3", revenue:420, cost:75},
    
         {customer:"BBB", product:"ColdFusion", quarter:"Q1", revenue:240, cost:20},
         {customer:"BBB", product:"Flex", quarter:"Q2", revenue:100, cost:20},
         {customer:"BBB", product:"Dreamweaver", quarter:"Q3", revenue:270, cost:120},
         {customer:"BBB", product:"Flash", quarter:"Q4", revenue:370, cost:70},
    
         {customer:"CCC", product:"ColdFusion", quarter:"Q1", revenue:375, cost:120},
         {customer:"CCC", product:"Flex", quarter:"Q2", revenue:420, cost:120},
         {customer:"CCC", product:"Dreamweaver", quarter:"Q3", revenue:680, cost:220},
         {customer:"CCC", product:"Flash", quarter:"Q4", revenue:570, cost:170}         
        ]);
    
        private function creationCompleteHandler():void {
            // You must initialize the cube before you 
            // can execute a query on it.
            myMXMLCube.refresh();
        }

        // Create the OLAP query.
        private function getQuery(cube:IOLAPCube):IOLAPQuery {
            // Create an instance of OLAPQuery to represent the query. 
            var query:OLAPQuery = new OLAPQuery;
            
            // Get the row axis from the query instance.
            var rowQueryAxis:IOLAPQueryAxis = 
                query.getAxis(OLAPQuery.ROW_AXIS);
            // Create an OLAPSet instance to configure the axis.
            var productSet:OLAPSet = new OLAPSet;
            // Add the Product to the row to aggregate data 
            // by the Product dimension.
            productSet.addElements(
                cube.findDimension("ProductDim").findAttribute("Product").children);
            // Add the OLAPSet instance to the axis.
            rowQueryAxis.addSet(productSet);
            
            // Get the column axis from the query instance, and configure it
            // to aggregate the columns by the Quarter dimension. 
            var colQueryAxis:IOLAPQueryAxis = 
                query.getAxis(OLAPQuery.COLUMN_AXIS);         
            var quarterSet:OLAPSet= new OLAPSet;
            quarterSet.addElements(
                cube.findDimension("QuarterDim").findAttribute("Quarter").children);
            colQueryAxis.addSet(quarterSet);
            
            return query;       
        }

        // Event handler to execute the OLAP query 
        // after the cube completes initialization.
        private function runQuery(event:CubeEvent):void {
            // Get cube.
            var cube:IOLAPCube = IOLAPCube(event.currentTarget);
            // Create a query instance.
            var query:IOLAPQuery = getQuery(cube);
            // Execute the query.
            var token:AsyncToken = cube.execute(query);
            // Setup handlers for the query results.
            token.addResponder(new AsyncResponder(showResult, showFault));
        }

        // Handle a query fault.
        private function showFault(result:Object, token:Object):void {
            Alert.show("Error in query.");
        }

        // Handle a successful query by passing the query results to 
        // the OLAPDataGrid control..
        private function showResult(result:Object, token:Object):void {
            if (!result) {
                Alert.show("No results from query.");
                return;
            }
            myOLAPDG.dataProvider= result as OLAPResult;            
        }        
      ]]>
    </mx:Script>

    <mx:OLAPCube name="FlatSchemaCube" 
        dataProvider="{flatData}" 
        id="myMXMLCube"
        complete="runQuery(event);">
         
        <mx:OLAPDimension name="CustomerDim">
            <mx:OLAPAttribute name="Customer" dataField="customer"/>
            <mx:OLAPHierarchy name="CustomerHier" hasAll="true">
                <mx:OLAPLevel attributeName="Customer"/>
            </mx:OLAPHierarchy>
        </mx:OLAPDimension>
        
        <mx:OLAPDimension name="ProductDim">
            <mx:OLAPAttribute name="Product" dataField="product"/>
            <mx:OLAPHierarchy name="ProductHier" hasAll="true">
                <mx:OLAPLevel attributeName="Product"/>
            </mx:OLAPHierarchy>
        </mx:OLAPDimension>
    
        <mx:OLAPDimension name="QuarterDim">
            <mx:OLAPAttribute name="Quarter" dataField="quarter"/>
            <mx:OLAPHierarchy name="QuarterHier" hasAll="true">
                <mx:OLAPLevel attributeName="Quarter"/>
            </mx:OLAPHierarchy> 
        </mx:OLAPDimension>
        
        <mx:OLAPMeasure name="Revenue" 
            dataField="revenue" 
            aggregator="SUM"/>
    </mx:OLAPCube>
    
    <mx:Panel title="OLAPCube Control Example"
        height="75%" width="75%" layout="horizontal"
        paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">

        <mx:OLAPDataGrid id="myOLAPDG" width="100%" height="100%"/>
    </mx:Panel>
</mx:Application>