包 | mx.printing |
类 | public class PrintAdvancedDataGrid |
继承 | PrintAdvancedDataGrid ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
语言版本: | ActionScript 3.0 |
产品版本: | Flex 3 |
运行时版本: | Flash Player 9, AIR 1.1 |

The <mx:PrintAdvancedDataGrid>
tag inherits the tag attributes
of its superclass; however, you do not use the properties, styles, events,
and effects (or methods) associated with user interaction.
The <mx:PrintAdvancedDataGrid>
tag adds the following tag attribute:
<mx:PrintAdvancedDataGrid Properties allowInteraction="true|false" displayIcons="true|false" sizeToPage="true|false" source="null" > ... </mx:PrintAdvancedDataGrid>
默认 MXML 属性dataProvider
相关 API 元素
属性 | 由以下参数定义 | ||
---|---|---|---|
![]() | accessibilityDescription : String
一个方便的存取器,用于访问此 UIComponent 的 accessibilityProperties 对象的 description 属性。 | UIComponent | |
![]() | accessibilityEnabled : Boolean
一个方便的存取器,用于访问此 UIComponent 的 accessibilityProperties 对象的 silent 属性。 | UIComponent | |
![]() | accessibilityImplementation : AccessibilityImplementation
InteractiveObject 实例的当前辅助功能实现 (AccessibilityImplementation)。 | InteractiveObject | |
![]() | accessibilityName : String
一个方便的存取器,用于访问此 UIComponent 的 accessibilityProperties 对象的 name 属性。 | UIComponent | |
![]() | accessibilityProperties : AccessibilityProperties
此显示对象的当前辅助功能选项。 | DisplayObject | |
![]() | accessibilityShortcut : String
一个方便的存取器,用于访问此 UIComponent 的 accessibilityProperties 对象的 shortcut 属性。 | UIComponent | |
![]() | activeEffects : Array [只读]
组件上当前播放的效果列表,如 EffectInstance 实例的 Array。 | UIComponent | |
allowInteraction : Boolean
如果返回 true,则允许与控件的某些交互操作,如调整列大小、重新排序列以及展开或折叠节点。 | PrintAdvancedDataGrid | ||
![]() | alpha : Number
表示指定对象的 Alpha 透明度值。 | DisplayObject | |
![]() | automationDelegate : Object
处理自动化相关功能的委托对象。 | UIComponent | |
![]() | automationEnabled : Boolean [只读]
如果此组件启用了自动化,则为 true;否则为 false。 | UIComponent | |
![]() | automationName : String
可用作此对象的标识符的名称。 | UIComponent | |
![]() | automationOwner : DisplayObjectContainer [只读]
用于自动化目的的此组件的所有者。 | UIComponent | |
![]() | automationParent : DisplayObjectContainer [只读]
用于自动化目的的此组件的父级。 | UIComponent | |
![]() | automationTabularData : Object [只读]
IAutomationTabularData 接口的实现,可用于检索数据。 | UIComponent | |
![]() | automationValue : Array [只读]
此值通常对应于对象的经呈示的外观,当对象在应用中以可视方式显示时,此值使标识符与该对象相关联。 | UIComponent | |
![]() | automationVisible : Boolean [只读]
如果此组件对于自动化是可见的,则为 true;否则为 false。 | UIComponent | |
![]() | baseline : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。 | UIComponent | |
![]() | baselinePosition : Number [只读]
组件第一行文本的基线的 y 坐标。 | UIComponent | |
![]() | blendMode : String
BlendMode 类中的一个值,用于指定要使用的混合模式。 | DisplayObject | |
![]() | blendShader : Shader [只写]
设置用于混合前景和背景的着色器。 | DisplayObject | |
![]() | borderMetrics : EdgeMetrics [只读]
返回 EdgeMetrics 对象,它具有四个属性:left、top、right 和 bottom。 | ScrollControlBase | |
![]() | bottom : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。 | UIComponent | |
![]() | buttonMode : Boolean
指定此 sprite 的按钮模式。 | Sprite | |
![]() | cacheAsBitmap : Boolean
如果设置为 true,则 Flash 运行时将缓存显示对象的内部位图表示形式。 | DisplayObject | |
![]() | cacheAsBitmapMatrix : Matrix
如果为非 null,则 Matrix 对象会定义显示对象在 cacheAsBitmap 设置为 true 时的呈现方式。 | DisplayObject | |
![]() | cacheHeuristic : Boolean [只写]
供 Flex 使用,表示建议为对象实施位图缓存。 | UIComponent | |
![]() | cachePolicy : String
指定此对象的位图缓存策略。 | UIComponent | |
![]() | className : String [只读]
此实例的类的名称,如“Button”。 | UIComponent | |
![]() | columns : Array
AdvancedDataGridColumn 对象的数组,每个这样的对象对应一个可显示的列。 | AdvancedDataGridBaseEx | |
![]() | columnWidth : Number
控件中列的宽度。 | AdvancedListBase | |
![]() | constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | |
![]() | contentMouseX : Number [只读]
返回鼠标在内容坐标系中的 x 位置。 | UIComponent | |
![]() | contentMouseY : Number [只读]
返回内容坐标系中鼠标的 y 位置。 | UIComponent | |
![]() | contextMenu : NativeMenu
指定与此对象相关联的上下文菜单。 | InteractiveObject | |
currentPageHeight : Number [只读]
sizeToPage 属性为 true 时 PrintAdvancedDataGrid 的高度,意为 PrintAdvancedDataGrid 仅显示完全可见的行,而不会显示部分行。 | PrintAdvancedDataGrid | ||
![]() | currentState : String
组件的当前视图状态。 | UIComponent | |
![]() | cursorManager : ICursorManager [只读]
获取控制此组件及其同级组件的光标的 CursorManager。 | UIComponent | |
![]() | data : Object
将此组件用作项呈示器或项目编辑器时,此组件应呈示的数据提供程序中的项目。 | AdvancedListBase | |
![]() | dataProvider : Object
要查看的数据集。 | AdvancedListBase | |
![]() | depth : Number
确定容器内各项目的呈示顺序。 | UIComponent | |
![]() | descriptor : UIComponentDescriptor
引用 UIComponentDescriptor(如果有),过去曾通过 createComponentFromDescriptor() 方法使用它来创建此 UIComponent 实例。 | UIComponent | |
![]() | designLayer : DesignLayer
指定与该可视元素关联的可选 DesignLayer 实例。 | UIComponent | |
![]() | displayDisclosureIcon : Boolean
控制显示图标在导航树中的创建和可见性。 | AdvancedDataGrid | |
displayIcons : Boolean
如果为 true,则显示导航树中的文件夹和叶图标。 | PrintAdvancedDataGrid | ||
![]() | displayItemsExpanded : Boolean
如果为 true,则展开导航树显示所有项目。 | AdvancedDataGrid | |
![]() | document : Object
引用与此 UIComponent 相关联的文档对象。 | UIComponent | |
![]() | enabled : Boolean
组件是否可以接受用户交互。 | UIComponent | |
![]() | enableIME : Boolean [只读]
一个标志,用于指示当组件获得焦点时是否应启用 IME。 | AdvancedDataGridBaseEx | |
![]() | errorString : String
当验证程序监视组件并且验证失败时,组件的错误提示中将显示的文本。 | UIComponent | |
![]() | explicitHeight : Number
指定该组件在组件坐标中显式高度(以像素为单位)的数字。 | UIComponent | |
![]() | explicitMaxHeight : Number
布局过程中父级要考虑的组件最大建议高度。 | UIComponent | |
![]() | explicitMaxWidth : Number
布局过程中父级要考虑的组件最大建议宽度。 | UIComponent | |
![]() | explicitMinHeight : Number
布局过程中父级要考虑的组件最小建议高度。 | UIComponent | |
![]() | explicitMinWidth : Number
布局过程中父级要考虑的组件最小建议宽度。 | UIComponent | |
![]() | explicitWidth : Number
指定该组件在组件坐标中显式宽度(以像素为单位)的数字。 | UIComponent | |
![]() | filters : Array
包含当前与显示对象关联的每个滤镜对象的索引数组。 | DisplayObject | |
![]() | firstVisibleItem : Object
与当前显示在 AdvancedDataGrid 控件顶行的项目对应的数据提供程序元素。 | AdvancedDataGrid | |
![]() | flexContextMenu : IFlexContextMenu
此 UIComponent 的上下文菜单。 | UIComponent | |
![]() | focusEnabled : Boolean
指示切换到此组件时,是否可以获得焦点。 | UIComponent | |
![]() | focusManager : IFocusManager
获取控制此组件及其同级组件的焦点的 FocusManager。 | UIComponent | |
![]() | focusPane : Sprite
与此对象相关联的焦点窗格。 | UIComponent | |
![]() | focusRect : Object
指定此对象是否显示焦点矩形。 | InteractiveObject | |
![]() | fontContext : IFlexModuleFactory
为此组件提供字体上下文的模块工厂。 | AdvancedDataGridBase | |
![]() | graphics : Graphics [只读]
指定属于此 sprite 的 Graphics 对象,在此 sprite 中可执行矢量绘图命令。 | Sprite | |
![]() | groupedColumns : Array
执行列分组时定义 AdvancedDataGridColumn 实例层次结构的 Array。 | AdvancedDataGrid | |
![]() | groupIconFunction : Function
用户提供的回调函数,用于对每个组项目运行以确定其在导航树中的分支图标。 | AdvancedDataGrid | |
![]() | groupItemRenderer : IFactory
指定用于显示导航树中与各组对应的分支节点的项呈示器。 | AdvancedDataGrid | |
![]() | groupLabelFunction : Function
针对每个项目运行的回调函数,可确定该项目在导航树中的标签。 | AdvancedDataGrid | |
![]() | groupRowHeight : Number
分组行的高度(以像素为单位)。 | AdvancedDataGrid | |
![]() | hasFocusableChildren : Boolean
一个标志,指示子对象是否能够获得焦点。 | UIComponent | |
![]() | hasLayoutMatrix3D : Boolean [只读]
如果元素具有 3D 矩阵,则为 true。 | UIComponent | |
![]() | headerHeight : Number
列的标题单元格的高度(以像素为单位)。 | AdvancedDataGridBase | |
![]() | headerRenderer : IFactory
用于显示列的标题行的标题呈示器。 | AdvancedDataGridBase | |
![]() | headerWordWrap : Boolean
如果为 true,则指定标题文本不适合一行时将换行。 | AdvancedDataGridBase | |
![]() | height : Number [覆盖]
指定组件在父坐标中的高度的数字(以像素为单位)。 | UIComponent | |
![]() | hierarchicalCollectionView : IHierarchicalCollectionView
该控件使用的 IHierarchicalCollectionView 实例。 | AdvancedDataGrid | |
![]() | hitArea : Sprite
指定一个 sprite 用作另一个 sprite 的点击区域。 | Sprite | |
![]() | horizontalCenter : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。 | UIComponent | |
![]() | horizontalScrollPosition : Number [覆盖]
内容与左边缘的偏移量。 | AdvancedDataGridBaseEx | |
![]() | iconField : String
数据提供程序对象中字段的名称,该字段用于确定显示为图标的对象。 | AdvancedListBase | |
![]() | iconFunction : Function
用户提供的函数,在每个项目上运行以确定其图标。 | AdvancedListBase | |
![]() | id : String
组件 ID。 | UIComponent | |
![]() | imeMode : String
指定 IME(输入法编辑器)模式。 | AdvancedDataGridBaseEx | |
![]() | includeInLayout : Boolean
指定此组件是否包含在父容器的布局中。 | UIComponent | |
![]() | inheritingStyles : Object
此组件的继承样式链的开头内容。 | UIComponent | |
![]() | initialized : Boolean
一个标志,用于确定某个对象是否已通过布局的所有三个阶段:提交、测量和布局(假设每个阶段都是必需的)。 | UIComponent | |
![]() | instanceIndex : int [只读]
重复组件的索引。 | UIComponent | |
![]() | instanceIndices : Array
一个 Array,包含从此 UIComponent 对象的父文档引用该对象所需的索引。 | UIComponent | |
![]() | is3D : Boolean [只读]
当元素为 3D 时,则为 true。 | UIComponent | |
![]() | isDocument : Boolean [只读]
如果此 UIComponent 实例为文档对象,则为 true。 | UIComponent | |
![]() | isPopUp : Boolean
PopUpManager 将其设置为 true 以指示已弹出该组件。 | UIComponent | |
![]() | itemEditorInstance : IListItemRenderer
对项目编辑器的当前活动实例(如果有)的引用。 | AdvancedDataGridBaseEx | |
![]() | itemIcons : Object
用于指定项目图标的对象。 | AdvancedDataGrid | |
![]() | itemRenderer : IFactory
控件的自定义项呈示器。 | AdvancedListBase | |
![]() | labelFunction : Function
用户提供的函数,在每个项目上运行以确定其标签。 | AdvancedListBase | |
![]() | layoutMatrix3D : Matrix3D [只写]
用于相对于其同级组件计算组件的布局的转换矩阵。 | UIComponent | |
![]() | left : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。 | UIComponent | |
![]() | listData : BaseListData
如果使用组件作为嵌入式项呈示器或嵌入式项目编辑器,则 Flex 将使用 list 控件中的其它数据初始化组件的 listData 属性。 | AdvancedListBase | |
![]() | liveScrolling : Boolean = true
一个标志,指示移动滚动栏滑块时实时滚动视图,还是释放滑块后才更新视图。 | ScrollControlBase | |
![]() | loaderInfo : LoaderInfo [只读]
返回一个 LoaderInfo 对象,其中包含加载此显示对象所属的文件的相关信息。 | DisplayObject | |
![]() | lockedColumnCount : int [覆盖]
滚动的控件中第一列的索引。 | AdvancedDataGrid | |
![]() | lockedRowCount : int [覆盖]
滚动的控件中第一行的索引。 | AdvancedDataGrid | |
![]() | lookAheadDuration : Number = 400
多字符查找的输入时寻找持续时间(以毫秒为单位)。 | AdvancedDataGridBaseEx | |
![]() | maintainProjectionCenter : Boolean
如果为 true,则该组件将使其投影矩阵在其边框的中央保持居中。 | UIComponent | |
![]() | mask : DisplayObject
调用显示对象被指定的 mask 对象遮罩。 | DisplayObject | |
![]() | maxHeight : Number
布局过程中父级要考虑的组件最大建议高度。 | UIComponent | |
![]() | maxWidth : Number
布局过程中父级要考虑的组件最大建议宽度。 | UIComponent | |
![]() | measuredHeight : Number
组件的默认高度(以像素为单位)。 | UIComponent | |
![]() | measuredMinHeight : Number
组件的默认最小高度(以像素为单位)。 | UIComponent | |
![]() | measuredMinWidth : Number
组件的默认最小宽度(以像素为单位)。 | UIComponent | |
![]() | measuredWidth : Number
组件的默认宽度(以像素为单位)。 | UIComponent | |
![]() | menuSelectionMode : Boolean = false
一个标志,指示是否应使用菜单样式选择。 | AdvancedListBase | |
![]() | metaData : Object
如果元数据是通过 PlaceObject4 标记与此 DisplayObject 的实例一起存储在 SWF 文件中的,则获取 DisplayObject 实例的元数据对象。 | DisplayObject | |
![]() | minColumnWidth : Number
列的最小宽度(以像素为单位)。 | AdvancedDataGridBaseEx | |
![]() | minHeight : Number
布局过程中父级要考虑的组件最小建议高度。 | UIComponent | |
![]() | minWidth : Number
布局过程中父级要考虑的组件最小建议宽度。 | UIComponent | |
![]() | moduleFactory : IFlexModuleFactory
模块工厂用作上下文,用于为此组件使用嵌入字体以及查找用于控制此组件样式的样式管理器。 | UIComponent | |
![]() | mouseChildren : Boolean
确定对象的子级是否支持鼠标或用户输入设备。 | DisplayObjectContainer | |
![]() | mouseEnabled : Boolean
指定此对象是否接收鼠标或其他用户输入、消息。 | InteractiveObject | |
![]() | mouseFocusEnabled : Boolean
单击时是否可获得焦点。 | UIComponent | |
![]() | mouseX : Number [只读]
表示此鼠标或用户输入设备位置的 x 坐标,以像素为单位。 | DisplayObject | |
![]() | mouseY : Number [只读]
表示此鼠标或用户输入设备位置的 y 坐标,以像素为单位。 | DisplayObject | |
![]() | name : String
表示 DisplayObject 的实例名称。 | DisplayObject | |
![]() | needsSoftKeyboard : Boolean
指定当该 InteractiveObject 实例获得焦点时,是否显示虚拟键盘(显示在屏幕上的软键盘)。 | InteractiveObject | |
![]() | nestLevel : int
此对象在所属关系层次结构中的深度。 | UIComponent | |
![]() | nonInheritingStyles : Object
此组件的非继承样式链的开头内容。 | UIComponent | |
![]() | numAutomationChildren : int [只读]
此容器包含的自动化子项数。 | UIComponent | |
![]() | numChildren : int [只读]
返回此对象的子项数目。 | DisplayObjectContainer | |
![]() | opaqueBackground : Object
指定显示对象是否由于具有某种背景颜色而不透明。 | DisplayObject | |
originalHeight : Number [只读]
PrintAdvancedDataGrid 的高度由用户设置。 | PrintAdvancedDataGrid | ||
![]() | owner : DisplayObjectContainer
此 IVisualElement 对象的所有者。 | UIComponent | |
![]() | parent : DisplayObjectContainer [覆盖] [只读]
此组件的父容器或组件。 | UIComponent | |
![]() | parentApplication : Object [只读]
引用包含此 UIComponent 实例的 Application 对象。 | UIComponent | |
![]() | parentDocument : Object [只读]
引用此 UIComponent 的父文档对象。 | UIComponent | |
![]() | percentHeight : Number
以组件父代大小百分比的方式指定组件高度。 | UIComponent | |
![]() | percentWidth : Number
以组件父代大小百分比的方式指定组件宽度。 | UIComponent | |
![]() | postLayoutTransformOffsets : mx.geom:TransformOffsets
定义能够应用于对象转换且在一定程度上对其父布局不可视的一组调整。 | UIComponent | |
![]() | processedDescriptors : Boolean
临时或延迟子项创建操作后设置为 true,具体取决于发生对象。 | UIComponent | |
![]() | rendererProviders : Array
AdvancedDataGridRendererProvider 实例 Array。 | AdvancedDataGrid | |
![]() | repeater : IRepeater [只读]
对生成此 UIComponent 的父文档中 Repeater 对象的引用。 | UIComponent | |
![]() | repeaterIndex : int [只读]
项目在生成此 UIComponent 的 Repeater 数据提供程序中的索引。 | UIComponent | |
![]() | repeaterIndices : Array
一个 Array,包含项目在生成此 UIComponent 的父文档的 Repeater 数据提供程序中的索引。 | UIComponent | |
![]() | repeaters : Array
一个 Array,包含对生成此 UIComponent 的父文档中 Repeater 对象的引用。 | UIComponent | |
![]() | resizableColumns : Boolean = true
一个标志,指示用户能否更改列的尺寸。 | AdvancedDataGridBaseEx | |
![]() | right : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。 | UIComponent | |
![]() | root : DisplayObject [只读]
对于加载的 SWF 文件中的显示对象,root 属性是此 SWF 文件所表示的显示列表树结构部分中的顶级显示对象。 | DisplayObject | |
![]() | rotation : Number [覆盖]
表示 DisplayObject 实例距其原始方向的旋转程度,以度为单位。 | UIComponent | |
![]() | rotationX : Number [覆盖]
表示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 x 轴旋转(以度为单位)。 | UIComponent | |
![]() | rotationY : Number [覆盖]
表示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 y 轴旋转(以度为单位)。 | UIComponent | |
![]() | rotationZ : Number [覆盖]
表示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 z 轴旋转(以度为单位)。 | UIComponent | |
![]() | rowCount : int
要显示的行数。 | AdvancedListBase | |
![]() | rowHeight : Number
行高(以像素为单位)。 | AdvancedListBase | |
![]() | scale9Grid : Rectangle
当前有效的缩放网格。 | DisplayObject | |
![]() | scaleX : Number [覆盖]
用于指定水平缩放系数的数字。 | UIComponent | |
![]() | scaleY : Number [覆盖]
用于指定垂直缩放系数的数字。 | UIComponent | |
![]() | scaleZ : Number [覆盖]
指定沿着 z 轴的缩放因子的数值。 | UIComponent | |
![]() | screen : Rectangle [只读]
返回包含此对象的基本绘图表面大小和位置的对象。 | UIComponent | |
![]() | scrollRect : Rectangle
显示对象的滚动矩形范围。 | DisplayObject | |
![]() | selectedCells : Array
包含行和列索引形式的单元格位置的 Array。 | AdvancedDataGrid | |
![]() | selectionMode : String
控件的选择模式。 | AdvancedDataGridBase | |
![]() | showHeaders : Boolean
指示控件是否应显示列标题的标志。 | AdvancedDataGridBase | |
![]() | showInAutomationHierarchy : Boolean
用于确定自动化对象是否显示在自动化层次中的标志。 | UIComponent | |
sizeToPage : Boolean = true
如果为 true,则 PrintAdvancedDataGrid 会重新调整高度以仅显示完全可见的行。 | PrintAdvancedDataGrid | ||
![]() | softKeyboard : String
控制软键盘的外观。 | InteractiveObject | |
![]() | softKeyboardInputAreaOfInterest : Rectangle
定义当显示软键盘时应在屏幕上保留的区域(在 iOS 上不支持)。 | InteractiveObject | |
![]() | sortableColumns : Boolean = true
一个标志,指示用户是否可以通过单击列的标题单元格对数据提供程序项目进行排序。 | AdvancedDataGridBaseEx | |
![]() | sortExpertMode : Boolean
默认情况下,sortExpertMode 属性设置为 false,这意味着在某列的标题区域单击,将按该列对 AdvancedDataGrid 控件的行进行排序。 | AdvancedDataGridBaseEx | |
![]() | sortItemRenderer : IFactory
用于在列标题中显示排序图标的排序项呈示器。 | AdvancedDataGridBase | |
![]() | soundTransform : flash.media:SoundTransform
控制此 sprite 中的声音。 | Sprite | |
source : AdvancedDataGrid
初始化 PrintAdvancedDataGrid 控件以及 AdvancedDataGrid 控件中为其指定的所有属性。 | PrintAdvancedDataGrid | ||
![]() | stage : Stage [只读]
显示对象的舞台。 | DisplayObject | |
![]() | states : Array
为此组件定义的视图状态。 | UIComponent | |
![]() | styleDeclaration : CSSStyleDeclaration
存储此对象的内嵌继承样式。 | UIComponent | |
![]() | styleFunction : Function
呈示每个单元格时调用的回调函数。 | AdvancedDataGridBase | |
![]() | styleManager : IStyleManager2 [只读]
返回此组件使用的 StyleManager 实例。 | UIComponent | |
![]() | styleName : Object
此组件使用的类样式。 | UIComponent | |
![]() | styleParent : IAdvancedStyleClient
组件的父项用于评估后代选择器。 | UIComponent | |
![]() | systemManager : ISystemManager
返回此组件使用的 SystemManager 对象。 | UIComponent | |
![]() | tabChildren : Boolean
确定对象的子项是否支持 Tab 键。 | DisplayObjectContainer | |
![]() | tabEnabled : Boolean
指定此对象是否遵循 Tab 键顺序。 | InteractiveObject | |
![]() | tabFocusEnabled : Boolean
一个标志,指示该对象是否能够通过 Tab 键获得焦点。这与 Flash Player 使用的 tabEnabled 属性类似。对于处理键盘输入的组件该标志通常为 true,但是控件栏中的一些组件将其设置为 false,因为它们不能像编辑器一样从另外的组件窃取焦点。 | UIComponent | |
![]() | tabIndex : int
指定 SWF 文件中的对象按 Tab 键顺序排列。 | InteractiveObject | |
![]() | textSnapshot : flash.text:TextSnapshot [只读]
返回此 DisplayObjectContainer 实例的 TextSnapshot 对象。 | DisplayObjectContainer | |
![]() | top : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。 | UIComponent | |
![]() | transform : flash.geom:Transform [覆盖]
一个对象,具有与显示对象的矩阵、颜色转换和像素范围有关的属性。 | UIComponent | |
![]() | transformX : Number
设置组件转换中心的 x 坐标。 | UIComponent | |
![]() | transformY : Number
设置组件转换中心的 y 坐标。 | UIComponent | |
![]() | transformZ : Number
设置组件转换中心的 z 坐标。 | UIComponent | |
![]() | transitions : Array
一个 Transition 对象 Array,其中的每个 Transition 对象都定义一组效果,用于在视图状态发生更改时播放。 | UIComponent | |
![]() | treeColumn : AdvancedDataGridColumn
显示该树的列。 | AdvancedDataGrid | |
![]() | tweeningProperties : Array
当前在此对象上进行补间的属性数组。 | UIComponent | |
![]() | uid : String
对象的唯一标识符。 | UIComponent | |
![]() | updateCompletePendingFlag : Boolean
一个标志,确定某个对象是否已通过所有三个阶段的布局验证(假设需要通过所有验证)。 | UIComponent | |
![]() | validationSubField : String
供验证程序用来将子字段与此组件相关联。 | UIComponent | |
validNextPage : Boolean [只读]
指示数据提供程序包含 PrintAdvancedDataGrid 控件当前显示的行之后的其它数据行。 | PrintAdvancedDataGrid | ||
validPreviousPage : Boolean [只读]
指示数据提供程序包含 PrintAdvancedDataGrid 控件当前显示的行之前的数据行。 | PrintAdvancedDataGrid | ||
![]() | value : Object [只读]
所选项目,或者所选项目的数据或标签字段。 | AdvancedListBase | |
![]() | variableRowHeight : Boolean
一个标志,指示各行是否可以采用不同的高度。 | AdvancedListBase | |
![]() | verticalCenter : Object
对于组件,此布局约束属性是基于类似命名的样式的外观。 | UIComponent | |
![]() | verticalScrollPosition : Number
顶边到内容的偏移量。 | ScrollControlBase | |
![]() | viewMetrics : EdgeMetrics [只读]
考虑滚动条(如果可见)的 EdgeMetrics 对象。 | ScrollControlBase | |
![]() | visible : Boolean [覆盖]
显示对象是否可见。 | UIComponent | |
![]() | width : Number [覆盖]
指定组件在父坐标中的宽度的数字(以像素为单位)。 | UIComponent | |
![]() | wordWrap : Boolean
一个标志,指示行中的文本是否应自动换行。 | AdvancedListBase | |
![]() | x : Number [覆盖]
指定组件在其父容器中的水平位置(以像素为单位)的数字。 | UIComponent | |
![]() | y : Number [覆盖]
指定组件在其父容器中的垂直位置(以像素为单位)的数字。 | UIComponent | |
![]() | z : Number [覆盖]
表示 DisplayObject 实例相对于 3D 父容器沿 z 轴的 z 坐标位置。 | UIComponent |
方法 | 由以下参数定义 | ||
---|---|---|---|
构造函数。 | PrintAdvancedDataGrid | ||
![]() |
将一个 DisplayObject 子实例添加到该 DisplayObjectContainer 实例中。 | DisplayObjectContainer | |
![]() |
将一个 DisplayObject 子实例添加到该 DisplayObjectContainer 实例中。 | DisplayObjectContainer | |
![]() |
如果正在运行数据更改效果,则添加项呈示器。 | AdvancedListBase | |
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | |
![]() |
将非可视样式客户端添加到该组件实例。 | UIComponent | |
![]() |
表示安全限制是否会导致出现以下情况:在列表中忽略了使用指定 point 点调用 DisplayObjectContainer.getObjectsUnderPoint() 方法时返回的所有显示对象。 | DisplayObjectContainer | |
![]() |
排队稍后调用的函数。 | UIComponent | |
![]() |
删除此组件实例的样式属性。 | UIComponent | |
![]() |
折叠导航树的所有节点。 | AdvancedDataGrid | |
![]() |
确定指定显示对象是 DisplayObjectContainer 实例的子项还是该实例本身。 | DisplayObjectContainer | |
![]() |
将 Point 对象由内容坐标转换为全局坐标。 | UIComponent | |
![]() |
将 Point 对象由内容坐标转换为本地坐标。 | UIComponent | |
![]() |
返回标识此容器中的子项的一组属性。 | UIComponent | |
![]() |
返回标识此容器中的子项的一组属性。 | UIComponent | |
![]() |
在 IUIComponent 对象的父项文档对象上创建对此对象的 id 引用。 | UIComponent | |
![]() |
在 IUIComponent 对象的父项文档对象上删除对此对象的 id 引用。 | UIComponent | |
![]() |
返回与此 UIComponent 的文本样式对应的 UITextFormat 对象。 | UIComponent | |
![]() | [覆盖]
将事件调度到事件流中。 | UIComponent | |
![]() |
在此组件周围显示或隐藏焦点指示符。 | UIComponent | |
![]() | drawRoundRect(x:Number, y:Number, w:Number, h:Number, r:Object = null, c:Object = null, alpha:Object = null, rot:Object = null, gradient:String = null, ratios:Array = null, hole:Object = null):void
通过编程方式在此外观的 Graphics 对象中绘制一个矩形。 | UIComponent | |
![]() |
结束组件上当前播放的所有效果。 | UIComponent | |
![]() |
执行 UIComponent 对象是目标的所有绑定。 | UIComponent | |
![]() |
扩展控件中导航树的所有节点。 | AdvancedDataGrid | |
![]() |
打开或关闭指定项目下的导航树的所有节点。 | AdvancedDataGrid | |
![]() | expandItem(item:Object, open:Boolean, animate:Boolean = false, dispatchEvent:Boolean = false, cause:Event = null):void
打开或关闭导航树的分支节点。 | AdvancedDataGrid | |
![]() |
根据某一字符串在列表中查找项目并选择该项目。 | AdvancedListBase | |
![]() |
打印完成后调用。 | UIComponent | |
![]() |
在指定的索引位置提供自动化对象。 | UIComponent | |
![]() |
提供自动化对象列表。 | UIComponent | |
![]() |
返回一个矩形,该矩形定义相对于 targetCoordinateSpace 对象坐标系的显示对象区域。 | DisplayObject | |
![]() |
按指定的元素大小,返回元素边界的 x 坐标。 | UIComponent | |
![]() |
按指定的元素大小,返回元素边界的 y 坐标。 | UIComponent | |
![]() |
返回位于指定索引处的子显示对象实例。 | DisplayObjectContainer | |
![]() |
返回具有指定名称的子显示对象。 | DisplayObjectContainer | |
![]() |
返回 DisplayObject 的 child 实例的索引位置。 | DisplayObjectContainer | |
![]() |
查找此 UIComponent 实例的类型选择器。 | UIComponent | |
![]() |
返回一个约束布局值,这与获取此组件的约束样式的方式类似。 | UIComponent | |
![]() |
确定是使用显式高度还是测量高度的一种简便方法
| UIComponent | |
![]() |
确定是使用显式宽度还是测量宽度的一种简便方法
| UIComponent | |
![]() |
返回一个包含列排序信息的 SortInfo 实例。 | AdvancedDataGridBaseEx | |
![]() |
获取当前具有焦点的对象。 | UIComponent | |
![]() |
返回元素的布局高度。 | UIComponent | |
![]() |
返回元素的布局宽度。 | UIComponent | |
![]() |
返回元素在屏幕上进行绘制时所用的 x 坐标。 | UIComponent | |
![]() |
返回元素在屏幕上进行绘制时所用的 y 坐标。 | UIComponent | |
![]() |
返回用于相对于其同级组件计算组件的布局的转换矩阵。 | UIComponent | |
![]() |
返回此元素的布局转换 Matrix3D。 | UIComponent | |
![]() |
返回元素的最大高度。 | UIComponent | |
![]() |
返回元素的最大宽度。 | UIComponent | |
![]() |
返回元素的最小高度。 | UIComponent | |
![]() |
返回元素的最小宽度。 | UIComponent | |
![]() |
返回对象的数组,这些对象位于指定点下,并且是该 DisplayObjectContainer 实例的子项(或孙子项,依此类推)。 | DisplayObjectContainer | |
![]() |
返回子项目的父项。 | AdvancedDataGrid | |
![]() |
返回元素的首选高度。 | UIComponent | |
![]() |
返回元素的首选宽度。 | UIComponent | |
![]() |
返回一个矩形,该矩形根据 targetCoordinateSpace 参数定义的坐标系定义显示对象的边界,但不包括形状上的任何笔触。 | DisplayObject | |
![]() |
返回项呈示器的特定语义属性值;如果尚未定义该属性(尽管数据效果正在运行),则返回 null。 | AdvancedListBase | |
![]() |
返回 dataProvider 中由指定的 Repeater 用来生成此 Repeater 的项目;如果此 Repeater 未重复,则返回 null。 | UIComponent | |
![]() |
获取已在此组件的样式查找链中的某个位置设置过的样式属性。 | UIComponent | |
![]() |
将 Point 对象由全局坐标转换为内容坐标。 | UIComponent | |
![]() |
将 point 对象从舞台(全局)坐标转换为显示对象的(本地)坐标。 | DisplayObject | |
![]() |
将二维点从舞台(全局)坐标转换为三维显示对象的(本地)坐标。 | DisplayObject | |
![]() |
如果 currentCSSState 不为 null,则返回 true。 | UIComponent | |
![]() |
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | |
![]() |
表示对象是否已经定义了指定的属性。 | Object | |
![]() |
确定是否已在此 UIComponent 上定义指定的状态。 | UIComponent | |
![]() |
计算显示对象的边框,以确定它是否与 obj 显示对象的边框重叠或相交。 | DisplayObject | |
![]() |
计算显示对象,以确定它是否与 x 和 y 参数指定的点重叠或相交。 | DisplayObject | |
![]() |
返回一个框 Matrix,在绘制水平渐变时可以将其作为 rot 参数传递给 drawRoundRect() 方法。 | UIComponent | |
![]() |
针对数据提供程序中某个项目的索引获取项呈示器(如果存在)。 | AdvancedListBase | |
![]() |
计算 colIndex 和 rowIndex 处项目的数据提供程序中的偏移量。 | AdvancedListBase | |
![]() |
初始化此组件的内部结构。 | UIComponent | |
![]() |
初始化用于跟踪此组件的重复实例的各个属性。 | UIComponent | |
![]() |
标记组件,以便在稍后屏幕更新期间调用该组件的 updateDisplayList() 方法。 | UIComponent | |
![]() |
由某个组件的项目进行调用,以指示其 depth 属性已更改。 | UIComponent | |
![]() |
当某元素的 layoutDirection 更改或其父代的 layoutDirection 更改时,该元素必须调用该方法。 | UIComponent | |
![]() |
在下次更新时刷新所有行。 | AdvancedListBase | |
![]() |
标记组件,以便在稍后屏幕更新期间调用该组件的 commitProperties() 方法。 | UIComponent | |
![]() |
标记组件,以便在稍后屏幕更新期间调用该组件的 measure() 方法。 | UIComponent | |
![]() |
如果指定的分支节点处于打开状态,则返回 true。 | AdvancedDataGrid | |
![]() |
确定数据提供程序项目的项呈示器是否可选。 | AdvancedListBase | |
![]() |
确定数据提供程序项的项呈示器是否为键盘导航后位于尖号下方的项。 | AdvancedListBase | |
![]() |
确定呈示器是否显示某个项目。 | AdvancedListBase | |
![]() |
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | |
![]() |
确定呈示器是否包含(或拥有)显示对象。 | AdvancedListBase | |
![]() |
返回通过此项呈示器呈示的该项目在数据提供程序中的项目索引。 | AdvancedListBase | |
![]() |
返回呈示器根据 dataTipField 和 dataTipFunction 属性显示给定数据对象的数据提示字符串。 | AdvancedListBase | |
![]() |
根据 iconField 和 iconFunction 属性返回表示数据项目图标的类(如果存在)。 | AdvancedListBase | |
![]() |
返回数据提供程序中给定项目的项呈示器(如果存在)。 | AdvancedListBase | |
![]() |
返回呈示器根据 labelField 和 labelFunction 属性显示给定数据对象的字符串。 | AdvancedListBase | |
![]() |
将三维显示对象的(本地)坐标的三维点转换为舞台(全局)坐标中的二维点。 | DisplayObject | |
![]() |
将 Point 对象由本地坐标转换为内容坐标。 | UIComponent | |
![]() |
将 point 对象从显示对象的(本地)坐标转换为舞台(全局)坐标。 | DisplayObject | |
![]() |
如果 cssState 与 currentCSSState 匹配,则返回 true。 | UIComponent | |
![]() |
确定此实例与给定类型相同,还是属于给定类型的子类。 | UIComponent | |
![]() |
使用当前项呈示器测量数据提供程序中的一组项目,并返回这些项目的高度之和。 | AdvancedListBase | |
![]() |
测量指定的 HTML 文本(该文本中可能包含 <font> 和 <b> 等 HTML 标签),假定该文本显示在单行 UITextField(使用由此 UIComponent 的样式确定的 UITextFormat)中。 | UIComponent | |
![]() |
测量指定的文本,假定该文本使用由此 UIComponent 的样式确定的 UITextFormat 显示在单行 UITextField(或 UIFTETextField)中。 | UIComponent | |
![]() |
使用当前项呈示器测量数据提供程序中的一组项目,并返回找到的最大宽度。 | AdvancedListBase | |
![]() |
将组件移动到其父项内的指定位置。 | UIComponent | |
![]() |
将焦点移至指定的列标题。 | AdvancedDataGridBaseEx | |
移动到与第一个可视行集相对应的 PrintAdvancedDataGrid 控件的第一页。 | PrintAdvancedDataGrid | ||
将下一个数据行集放在视图中,即将 PrintAdvancedDataGrid verticalScrollPosition 属性设置为 verticalScrollPosition +(可滚动行数)。 | PrintAdvancedDataGrid | ||
![]() |
将样式更改传播到子项。 | UIComponent | |
![]() |
如果 owner 属性链从 child 指向此 UIComponent,则返回 true。 | UIComponent | |
![]() |
当在父项中添加或删除 UIComponent 对象时由 Flex 调用。 | UIComponent | |
![]() |
准备 IFlexDisplayObject 用于打印。 | UIComponent | |
将上一个数据行集放在视图中,即将 PrintAdvancedDataGrid verticalScrollPosition 属性设置为 verticalScrollPosition -(上一个页面中的行数)。 | PrintAdvancedDataGrid | ||
![]() |
表示指定的属性是否存在、是否可枚举。 | Object | |
![]() |
为此组件及其所有后代生成或重新生成 CSS 样式缓存,前提条件是递归参数为 true。 | UIComponent | |
![]() |
针对每个效果事件,将 EffectManager 注册为一个事件侦听器。 | UIComponent | |
![]() |
从 DisplayObjectContainer 实例的子列表中删除指定的 child DisplayObject 实例。 | DisplayObjectContainer | |
![]() |
从 DisplayObjectContainer 的子列表中指定的 index 位置删除子 DisplayObject。 | DisplayObjectContainer | |
![]() |
从 DisplayObjectContainer 实例的子级列表中删除所有子 DisplayObject 实例。 | DisplayObjectContainer | |
![]() |
如果正在运行数据更改效果,则移除项呈示器。 | AdvancedListBase | |
![]() |
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | |
![]() |
从该组件实例删除非可视样式客户端。 | UIComponent | |
![]() |
重放指定的事件。 | UIComponent | |
![]() |
显示虚拟键盘。 | InteractiveObject | |
![]() |
使用提供的 ID 解析子项。 | UIComponent | |
![]() | [静态]
在调用 suspendBackgroundProcessing() 之后继续对使用 callLater() 排队的方法进行背景处理。 | UIComponent | |
![]() |
确保给定索引处的数据提供程序项目可见。 | AdvancedListBase | |
![]() |
调整对象大小。 | UIComponent | |
![]() |
更改现有子项在显示对象容器中的位置。 | DisplayObjectContainer | |
![]() |
设置一个布局约束值的方式,与设置此组件的约束样式的方式相同。 | UIComponent | |
![]() |
设置当前状态。 | UIComponent | |
![]() |
设置此组件的焦点。 | UIComponent | |
![]() |
在导航树中为项目设置关联的图标。 | AdvancedDataGrid | |
![]() |
设置元素在屏幕上进行绘制时所用的坐标。 | UIComponent | |
![]() |
设置元素的布局大小。 | UIComponent | |
![]() |
设置用于相对于其同级组件计算组件的布局大小和位置的转换 Matrix。 | UIComponent | |
![]() |
设置用于计算组件相对于其同级组件的布局大小和位置的转换 Matrix3D。 | UIComponent | |
![]() |
设置循环操作动态属性的可用性。 | Object | |
![]() |
对此组件实例设置样式属性。 | UIComponent | |
![]() |
当 visible 属性发生更改时调用。 | UIComponent | |
![]() |
使用户可以在启用触摸的设备上拖动指定的 Sprite。 | Sprite | |
![]() |
对源起于此对象的所有 MovieClip 递归停止时间轴执行。 | DisplayObjectContainer | |
![]() |
结束 startDrag() 方法。 | Sprite | |
![]() |
结束 startTouchDrag() 方法,用于启用触摸的设备。 | Sprite | |
![]() |
检测对样式属性的更改。 | UIComponent | |
![]() |
首次初始化组件样式时,Flex 会调用 stylesInitialized() 方法。 | UIComponent | |
![]() | [静态]
阻止对使用 callLater() 排队的方法进行背景处理,直到调用 resumeBackgroundProcessing() 为止。 | UIComponent | |
![]() |
交换两个指定子对象的 Z 轴顺序(从前到后顺序)。 | DisplayObjectContainer | |
![]() |
在子级列表中两个指定的索引位置,交换子对象的 Z 轴顺序(前后顺序)。 | DisplayObjectContainer | |
![]() |
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | |
![]() | [覆盖]
返回一个字符串,用于指示此对象在应用程序的 DisplayObject 层次结构中所处的位置。 | FlexSprite | |
![]() | transformAround(transformCenter:Vector3D, scale:Vector3D = null, rotation:Vector3D = null, translation:Vector3D = null, postLayoutScale:Vector3D = null, postLayoutRotation:Vector3D = null, postLayoutTranslation:Vector3D = null, invalidateLayout:Boolean = true):void
用于更新转换的旋转、缩放和平移的一种实用程序方法,同时保留某个特定点,该点是在组件自己的坐标空间中指定的,且在父项的坐标空间中是固定的。 | UIComponent | |
![]() |
一种实用程序方法,用于将以该对象的本地坐标指定的点转换为在该对象父坐标中的相应位置。 | UIComponent | |
![]() |
暂时停止使用控件的布局算法定位项呈示器。 | AdvancedListBase | |
![]() |
验证子项的位置和大小,并绘制其他可视内容。 | UIComponent | |
![]() |
验证并更新此对象的属性和布局,如果需要的话重绘对象。 | UIComponent | |
![]() |
由布局逻辑用于通过调用 commitProperties() 方法来验证组件的属性。 | UIComponent | |
![]() |
如果使用此 ILayoutManagerClient 调用 LayoutManager.invalidateSize() 方法,随后在测量时调用了 validateSize() 方法,则验证组件的度量大小。 | UIComponent | |
![]() |
处理分配给此组件的验证程序调度的 valid 和 invalid 事件。 | UIComponent | |
![]() |
返回指定对象的原始值。 | Object | |
![]() |
返回一个框 Matrix,在绘制垂直渐变时可以将其作为 rot 参数传递给 drawRoundRect()。 | UIComponent | |
![]() |
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
allowInteraction | 属性 |
currentPageHeight | 属性 |
displayIcons | 属性 |
originalHeight | 属性 |
sizeToPage | 属性 |
public var sizeToPage:Boolean = true
语言版本: | ActionScript 3.0 |
产品版本: | Flex 3 |
运行时版本: | Flash Player 9, AIR 1.1 |
如果为 true
,则 PrintAdvancedDataGrid 会重新调整高度以仅显示完全可见的行。
默认值为 true。
source | 属性 |
source:AdvancedDataGrid
语言版本: | ActionScript 3.0 |
产品版本: | Flex 3 |
运行时版本: | Flash Player 9, AIR 1.1 |
初始化 PrintAdvancedDataGrid 控件以及 AdvancedDataGrid 控件中为其指定的所有属性。
注意: PrintAdvancedDataGrid 控件的宽度和高度不可从源 AdvancedDataGrid 控件中提取。对于源 AdvancedDataGrid 控件的更改不会自动反映在 PrintAdvancedDataGrid 实例中。因此,您必须在更改源 AdvancedDataGrid 控件后重设 source
属性。
实现
public function get source():AdvancedDataGrid
public function set source(value:AdvancedDataGrid):void
validNextPage | 属性 |
validPreviousPage | 属性 |
PrintAdvancedDataGrid | () | 构造函数 |
public function PrintAdvancedDataGrid()
语言版本: | ActionScript 3.0 |
产品版本: | Flex 3 |
运行时版本: | Flash Player 9, AIR 1.1 |
构造函数。
构造一个没有滚动条、用户交互性、列排序、调整大小、拖动滚动、选择或键盘交互性的 PrintAdvancedDataGrid 控件。默认高度是 100% 的容器高度或者显示所有数据提供程序行所需的高度,取其中的较小值。
moveToFirstPage | () | 方法 |
public function moveToFirstPage():void
语言版本: | ActionScript 3.0 |
产品版本: | Flex 3 |
运行时版本: | Flash Player 9, AIR 1.1 |
移动到与第一个可视行集相对应的 PrintAdvancedDataGrid 控件的第一页。
nextPage | () | 方法 |
public function nextPage():void
语言版本: | ActionScript 3.0 |
产品版本: | Flex 3 |
运行时版本: | Flash Player 9, AIR 1.1 |
将下一个数据行集放在视图中,即将 PrintAdvancedDataGrid verticalScrollPosition
属性设置为 verticalScrollPosition
+(可滚动行数)。
previousPage | () | 方法 |
public function previousPage():void
语言版本: | ActionScript 3.0 |
产品版本: | Flex 3 |
运行时版本: | Flash Player 9, AIR 1.1 |
将上一个数据行集放在视图中,即将 PrintAdvancedDataGrid verticalScrollPosition
属性设置为 verticalScrollPosition
-(上一个页面中的行数)。
<?xml version="1.0"?> <!-- printing\ADGPrint.mxml --> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx:Script> <![CDATA[ import mx.printing.*; import mx.collections.ArrayCollection; import mx.printing.PrintAdvancedDataGrid; // Create a PrintJob instance. private function doPrint():void { // Create an instance of the FlexPrintJob class. var printJob:FlexPrintJob = new FlexPrintJob(); // Initialize the PrintAdvancedDataGrid control. var printADG:PrintAdvancedDataGrid = new PrintAdvancedDataGrid(); printADG.source = adg; // Add the print-specific control to the application. addElement(printADG); // Start the print job. if (printJob.start() == false) { // User cancelled print job. // Remove the print-specific control to free memory. removeElement(printADG); return; } // Add the object to print. Do not scale it. printJob.addObject(printADG, FlexPrintJobScaleType.NONE); // Send the job to the printer. printJob.send(); // Remove the print-specific control to free memory. removeElement(printADG); } [Bindable] private var dpHierarchy:ArrayCollection = new ArrayCollection([ {Region:"Southwest", children: [ {Region:"Arizona", children: [ {Territory_Rep:"Barbara Jennings", Actual:38865, Estimate:40000}, {Territory_Rep:"Dana Binn", Actual:29885, Estimate:30000}]}, {Region:"Central California", children: [ {Territory_Rep:"Joe Smith", Actual:29134, Estimate:30000}]}, {Region:"Nevada", children: [ {Territory_Rep:"Bethany Pittman", Actual:52888, Estimate:45000}]}, {Region:"Northern California", children: [ {Territory_Rep:"Lauren Ipsum", Actual:38805, Estimate:40000}, {Territory_Rep:"T.R. Smith", Actual:55498, Estimate:40000}]}, {Region:"Southern California", children: [ {Territory_Rep:"Alice Treu", Actual:44985, Estimate:45000}, {Territory_Rep:"Jane Grove", Actual:44913, Estimate:45000}]} ]} ]); ]]> </fx:Script> <mx:Panel title="PrintAdvancedDataGrid Control Example" height="75%" width="75%" layout="horizontal" paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10"> <mx:AdvancedDataGrid id="adg" width="100%" height="100%"> <mx:dataProvider> <mx:HierarchicalData source="{dpHierarchy}"/> </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:columns> </mx:AdvancedDataGrid> <mx:Button id="myButton" label="Print" click="doPrint();"/> </mx:Panel> </s:Application>
Tue Jun 12 2018, 11:04 AM Z