包 | ga.views |
类 | public class TreeView |
继承 | TreeView Node ArrayCollection ListCollectionView Proxy |
实现 | IGuideView |
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Guides 9 |
运行时版本: | AIR 1.0, Flash Player 10.2 |
TreeListView
class provides the Guide sections and panels in a
tree structure that mimics the Guide tree created in the Guide Design perspective
within Adobe Digital Enterprise Platform Document Services - Workbench 10.0.
默认 MXML 属性source
相关 API 元素
公共属性
属性 | 由以下参数定义 | ||
---|---|---|---|
filterFunction : Function
视图用来消除不符合函数条件的项目的函数。 | ListCollectionView | ||
includeNestedSections : Boolean
Indicates if nested sections should appear in the tree. | TreeView | ||
instance : ga.views:TreeView [静态] [只读]
The common instance of this class. | TreeView | ||
length : int [只读]
此视图中的项目数。 | ListCollectionView | ||
list : IList
此集合视图所封装的 IList。 | ListCollectionView | ||
selectedIndex : int
Not implemented for this view. | TreeView | ||
selectedItem : Object
[bindable] The selected panel. | TreeView | ||
sort : ISort
将应用于 ICollectionView 的 ISort。 | ListCollectionView | ||
source : Array
ArrayCollection 中的数据源。 | ArrayCollection |
受保护的属性
公共方法
方法 | 由以下参数定义 | ||
---|---|---|---|
TreeView()
Sets up the event listeners and initializes the tree structure. | TreeView | ||
向当前列表添加一组项目,将它们按传入顺序放置在列表的末尾。 | ListCollectionView | ||
向当前列表添加一组项目,将它们放置在传递给函数的索引指定的位置。 | ListCollectionView | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | ListCollectionView | ||
向列表末尾添加指定项目。 | ListCollectionView | ||
在指定的索引处添加项目。 | ListCollectionView | ||
返回指示视图是否包含指定对象的信息。 | ListCollectionView | ||
创建使用此视图的新 IViewCursor。 | ListCollectionView | ||
防止视图调度对集合本身和集合中的项目的更改。 | ListCollectionView | ||
将事件调度到事件流中。 | ListCollectionView | ||
启用自动更新。 | ListCollectionView | ||
获取指定索引处的项目。 | ListCollectionView | ||
如果项目位于列表中(这样的话 getItemAt(index) == item),则返回该项目的索引。 | ListCollectionView | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | ListCollectionView | ||
如果 ListCollectionView 是使用 MXML 标签创建的,则由 MXML 编译器自动调用。 | ListCollectionView | ||
itemUpdated(item:Object, property:Object = null, oldValue:Object = null, newValue:Object = null):void
通知视图,某个项目已更新。 | ListCollectionView | ||
Forwards events that can cause panel changes to the event listeners. | TreeView | ||
将排序和滤镜应用到视图。 | ListCollectionView | ||
删除列表中的所有项目。 | ListCollectionView | ||
从 EventDispatcher 对象中删除侦听器。 | ListCollectionView | ||
删除指定索引处的项目并返回该项目。 | ListCollectionView | ||
在指定的索引处放置项目。 | ListCollectionView | ||
返回与 IList 实现的填充顺序相同的 Array。 | ListCollectionView | ||
将此视图的内容输出到字符串并返回该字符串。 | ListCollectionView | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | ListCollectionView |
事件
事件 | 摘要 | 由以下参数定义 | ||
---|---|---|---|---|
以某种方式更新 ICollectionView 后调度。 | ListCollectionView | |||
Dispatched when a repeating panel is added to a Guide. | TreeView | |||
Dispatched when a repeating panel is removed from a Guide. | TreeView | |||
Dispatched when a panel is selected. | TreeView |
属性详细信息
includeNestedSections | 属性 |
includeNestedSections:Boolean
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Guides 9 |
运行时版本: | AIR 1.0, Flash Player 10.2 |
Indicates if nested sections should appear in the tree. The default value is True.
实现
public function get includeNestedSections():Boolean
public function set includeNestedSections(value:Boolean):void
instance | 属性 |
instance:ga.views:TreeView
[只读] 语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Guides 9 |
运行时版本: | AIR 1.0, Flash Player 10.2 |
The common instance of this class.
实现
public static function get instance():ga.views:TreeView
selectedIndex | 属性 |
selectedIndex:int
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Guides 9 |
运行时版本: | AIR 1.0, Flash Player 10.2 |
Not implemented for this view. This method always returns -1.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get selectedIndex():int
public function set selectedIndex(value:int):void
selectedItem | 属性 |
selectedItem:Object
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Guides 9 |
运行时版本: | AIR 1.0, Flash Player 10.2 |
[bindable] The selected panel.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get selectedItem():Object
public function set selectedItem(value:Object):void
构造函数详细信息
TreeView | () | 构造函数 |
public function TreeView()
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Guides 9 |
运行时版本: | AIR 1.0, Flash Player 10.2 |
Sets up the event listeners and initializes the tree structure.
方法详细信息
pageChange | () | 方法 |
事件详细信息
pageAdd | 事件 |
事件对象类型:
属性 GAEvent.type =
ga.model.GAEvent
属性 GAEvent.type =
ga.model.GAEvent.PAGE_ADD
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Guides 9 |
运行时版本: | AIR 1.0, Flash Player 10.2 |
Dispatched when a repeating panel is added to a Guide.
The properties of the event object have the following values:
Property | Value |
---|---|
page | The page that was added. |
section | The section that contains the added page. |
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
pageRemove | 事件 |
事件对象类型:
属性 GAEvent.type =
ga.model.GAEvent
属性 GAEvent.type =
ga.model.GAEvent.PAGE_REMOVE
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Guides 9 |
运行时版本: | AIR 1.0, Flash Player 10.2 |
Dispatched when a repeating panel is removed from a Guide.
The properties of the event object have the following values:
Property | Value |
---|---|
page | The page that was removed. |
section | The section that contained the removed page. |
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
pageSelectionChange | 事件 |
事件对象类型:
属性 GAEvent.type =
ga.model.GAEvent
属性 GAEvent.type =
ga.model.GAEvent.PAGE_SELECTION_CHANGE
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Document Services - Guides 9 |
运行时版本: | AIR 1.0, Flash Player 10.2 |
Dispatched when a panel is selected.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
Tue Jun 12 2018, 11:04 AM Z