包 | com.adobe.mosaic.layouts |
类 | public class FlowLayout |
继承 | FlowLayout MosaicLayoutBase LayoutBase OnDemandEventDispatcher Object |
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
属性 | 由以下参数定义 | ||
---|---|---|---|
animationDuration : int
The amount of time to give any annimation to run its course. | MosaicLayoutBase | ||
clipAndEnableScrolling : Boolean
如果为 true,指定将子代剪切到视区的边界。 | LayoutBase | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
dropIndicator : DisplayObject
该布局在拖放操作过程中用于拖放指示符的 DisplayObject。 | LayoutBase | ||
effectEndHandler : Function
The function used to handle EffectEvent events. | MosaicLayoutBase | ||
horizontalGap : int
The spacing between the columns. | MosaicLayoutBase | ||
horizontalScrollPosition : Number
组件的坐标系中视域原点(默认值为 (0,0),与组件的左上角相对应)的 x 坐标。 | LayoutBase | ||
orientation : String
The layout can be filled either column-wise (default) or row-wise. | FlowLayout | ||
paddingBottom : int
The space between the container edge and the bottom row of items. | MosaicLayoutBase | ||
paddingLeft : int
The space between the container edge and the left column of items. | MosaicLayoutBase | ||
paddingRight : int
The space between the container edge and the right column of items. | MosaicLayoutBase | ||
paddingTop : int
The space between the container edge and the top row of items. | MosaicLayoutBase | ||
target : GroupBase [覆盖]
Called when the target group is set for this layout. | MosaicLayoutBase | ||
typicalLayoutElement : ILayoutElement
当请求固定的行/列大小而未指定某个特定大小时,由布局所使用。 | LayoutBase | ||
useVirtualLayout : Boolean
一个容器可包含任意数量的子项。 | LayoutBase | ||
verticalGap : int
The spacing between the rows. | MosaicLayoutBase | ||
verticalScrollPosition : Number
组件的坐标系中视区的原点(默认值为 (0,0),与组件的左上角相对应)的 y 坐标。 | LayoutBase |
方法 | 由以下参数定义 | ||
---|---|---|---|
Constructor
| FlowLayout | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | OnDemandEventDispatcher | ||
[覆盖]
Returns the location of the drop based on the event given. | MosaicLayoutBase | ||
如果 useVirtualLayout 为 true,则当布局目标改变时,布局目标可以使用此方法来清除已缓存布局信息。 | LayoutBase | ||
将事件调度到事件流中。 | OnDemandEventDispatcher | ||
[覆盖]
Called whenever an element is added to the target. | MosaicLayoutBase | ||
[覆盖]
Called whenever an element is removed. | MosaicLayoutBase | ||
如果索引无效、相应的元素为 null、includeInLayout=false,或者如果此布局的 target 属性为 null,则将指定元素的布局界限返回为 Rectangle 或 null。 | LayoutBase | ||
返回对水平滚动位置的更改以处理不同的滚动选项。 | LayoutBase | ||
Returns the ILayoutChild that occupies the given display list index. | MosaicLayoutBase | ||
getNavigationDestinationIndex(currentIndex:int, navigationUnit:uint, arrowKeysWrapFocus:Boolean):int
确定根据 NavigationUnit、基于当前处于焦点的项目和用户输入要导航到哪个项目的委派方法。 | LayoutBase | ||
计算所需的 verticalScrollPosition 和 horizontalScrollPosition delta,以将处于指定索引处的元素滚动到视图中。 | LayoutBase | ||
返回对垂直滚动位置的更改以处理不同的滚动选项。 | LayoutBase | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | OnDemandEventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
隐藏由 showDropIndicator() 方法创建的先前显示的拖放指示符,将其从显示列表中删除,还将停止拖放滚动。 | LayoutBase | ||
When a value of true is return, this layout is currently showing a maximized child element. | MosaicLayoutBase | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
Maximizes the given element to take up entire target space (minus
padding, of course). | MosaicLayoutBase | ||
基于目标的内容测量其默认大小,并(可选)测量目标的默认最小大小。 | LayoutBase | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | OnDemandEventDispatcher | ||
Restores an element that has been maximized. | MosaicLayoutBase | ||
Handles the layout side of restoring a previously minimized element by
making it appear. | MosaicLayoutBase | ||
设置循环操作动态属性的可用性。 | Object | ||
根据指定的拖放位置调整拖放指示符的大小、确定其位置并设置其父代。 | LayoutBase | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
调整目标的元素的大小并定位这些元素。 | LayoutBase | ||
在其 updateDisplayList 的结尾由目标调用,以使布局更新其 scrollRect。 | LayoutBase | ||
返回指定对象的原始值。 | Object | ||
Handles the layout side of a minimized element by making it disappear. | MosaicLayoutBase | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | OnDemandEventDispatcher |
方法 | 由以下参数定义 | ||
---|---|---|---|
calculateColumnLayout(width:Number, height:Number, updateInPlace:Boolean, returnArray:Boolean):Array
Determines the size and position of the elements in a column-oriented flow. | FlowLayout | ||
计算在拖放动作中为指定 dropLocation 滚动的数量。 | LayoutBase | ||
[覆盖]
Locates the item under the point using a simple look-up, accounting for horizontal
and vertical gaps. | MosaicLayoutBase | ||
[覆盖]
Creates the bounding rectangle for the drop indicator. | FlowLayout | ||
calculateLayoutPositions(width:Number, height:Number, updateInPlace:Boolean, returnArray:Boolean):Array [覆盖]
Determines where the elements are positioned in the flow, based on the setting
of orientation. | FlowLayout | ||
Determines the size and position of the elements in a row-oriented flow. | FlowLayout | ||
Generates a series of Move and Resize effects for item being placing them into their new
positions. | MosaicLayoutBase | ||
返回跨越 scrollRect 的顶边或在其顶边之上的第一个布局元素的界限。 | LayoutBase | ||
返回跨越 scrollRect 的底边或在其底边之下的第一个布局元素的界限。 | LayoutBase | ||
返回跨越 scrollRect 的左边或在其左边左侧的第一个布局元素的界限。 | LayoutBase | ||
返回跨越 scrollRect 的右边或在其右边右侧的第一个布局元素的界限。 | LayoutBase | ||
返回布局坐标中目标的滚动矩形的界限。 | LayoutBase | ||
Sizes and positions the maximized element. | MosaicLayoutBase | ||
The layout to use when operating in a non-maximized mode. | MosaicLayoutBase | ||
Called when the effects are over to reset the elementBeingMoved
value. | MosaicLayoutBase | ||
verticalScrollPosition 或 horizontalScrollPosition 属性更改时调用。 | LayoutBase |
orientation | 属性 |
orientation:String
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
The layout can be filled either column-wise (default) or row-wise. When the layout is being filled column-wise, the items flow from left to right, top to bottom. When the layout is filled row-wise, the items flow from top to bottom, left to right.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get orientation():String
public function set orientation(value:String):void
FlowLayout | () | 构造函数 |
public function FlowLayout()
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Constructor
calculateColumnLayout | () | 方法 |
protected function calculateColumnLayout(width:Number, height:Number, updateInPlace:Boolean, returnArray:Boolean):Array
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Determines the size and position of the elements in a column-oriented flow.
参数
width:Number — The maximum horizontal space allowed.
| |
height:Number — The vertical space.
| |
updateInPlace:Boolean — If true, the elements are positioned.
| |
returnArray:Boolean — If true, an array of positions are returned.
|
Array — Array of child positions or null.
|
calculateDropIndicatorBounds | () | 方法 |
override protected function calculateDropIndicatorBounds(dropLocation:DropLocation):Rectangle
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Creates the bounding rectangle for the drop indicator. This will either appear left of the item at the drop location or to its right, depending on the position of the mouse within the item.
参数
dropLocation:DropLocation — The position within the layout where the drop can be expected.
|
Rectangle — A rectangle the describes the area of the drop.
|
calculateLayoutPositions | () | 方法 |
override protected function calculateLayoutPositions(width:Number, height:Number, updateInPlace:Boolean, returnArray:Boolean):Array
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Determines where the elements are positioned in the flow, based on the setting of orientation.
参数
width:Number — The maximum allowed width.
| |
height:Number — The maximum allowed height.
| |
updateInPlace:Boolean — If true, the elements are sized and positioned.
| |
returnArray:Boolean — If true, an Array of sizes and positions are returned.
|
Array — Array of sizes and positions or null. Each item of the array should have:
{child (the element), newX, newY, newWidth, newHeight}
|
calculateRowLayout | () | 方法 |
protected function calculateRowLayout(width:Number, height:Number, updateInPlace:Boolean, returnArray:Boolean):Array
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Determines the size and position of the elements in a row-oriented flow.
参数
width:Number — The maximum horizontal space allowed.
| |
height:Number — The maximum vertical space.
| |
updateInPlace:Boolean — If true, the elements are positioned.
| |
returnArray:Boolean — If true, an array of positions are returned.
|
Array — Array of child positions or null.
|
Tue Jun 12 2018, 11:04 AM Z