套件 | mx.core |
介面 | public interface IUIComponent extends IFlexDisplayObject , IBitmapDrawable , IEventDispatcher |
實作者 | PostScaleAdapter, UIComponent |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
屬性 | 定義自 | ||
---|---|---|---|
accessibilityProperties : AccessibilityProperties
此顯示物件的目前輔助功能選項。 | IFlexDisplayObject | ||
alpha : Number
指出所指定物件的 Alpha 透明度值。 | IFlexDisplayObject | ||
baselinePosition : Number [唯讀]
The y-coordinate of the baseline
of the first line of text of the component. | IUIComponent | ||
blendMode : String
來自 BlendMode 類別的值,會指定要使用何種混合模式。 | IFlexDisplayObject | ||
cacheAsBitmap : Boolean
如果設定為 true,Flash 執行階段會快取顯示物件的內部點陣圖表示法。 | IFlexDisplayObject | ||
document : Object
A reference to the document object associated with this component. | IUIComponent | ||
enabled : Boolean
Whether the component can accept user interaction. | IUIComponent | ||
explicitHeight : Number
The explicitly specified height for the component,
in pixels, as the component's coordinates. | IUIComponent | ||
explicitMaxHeight : Number [唯讀]
Number that specifies the maximum height of the component,
in pixels, as the component's coordinates. | IUIComponent | ||
explicitMaxWidth : Number [唯讀]
Number that specifies the maximum width of the component,
in pixels, as the component's coordinates. | IUIComponent | ||
explicitMinHeight : Number [唯讀]
Number that specifies the minimum height of the component,
in pixels, as the component's coordinates. | IUIComponent | ||
explicitMinWidth : Number [唯讀]
Number that specifies the minimum width of the component,
in pixels, as the component's coordinates. | IUIComponent | ||
explicitWidth : Number
The explicitly specified width for the component,
in pixels, as the component's coordinates. | IUIComponent | ||
filters : Array
索引的陣列,其中包含目前和顯示物件相關的每個濾鏡物件。 | IFlexDisplayObject | ||
focusPane : Sprite
A single Sprite object that is shared among components
and used as an overlay for drawing the focus indicator. | IUIComponent | ||
height : Number
會指出顯示物件的高度,以像素為單位。 | IFlexDisplayObject | ||
includeInLayout : Boolean
Specifies whether this component is included in the layout of the
parent container. | IUIComponent | ||
isPopUp : Boolean
Set to true by the PopUpManager to indicate
that component has been popped up. | IUIComponent | ||
loaderInfo : LoaderInfo [唯讀]
會傳回 LoaderInfo 物件,其中包含關於載入此顯示物件所屬之檔案的資訊。 | IFlexDisplayObject | ||
mask : DisplayObject
呼叫之顯示物件會以指定的 mask 物件遮蓋。 | IFlexDisplayObject | ||
maxHeight : Number [唯讀]
Number that specifies the maximum height of the component,
in pixels, as the component's coordinates. | IUIComponent | ||
maxWidth : Number [唯讀]
Number that specifies the maximum width of the component,
in pixels, as the component's coordinates. | IUIComponent | ||
measuredHeight : Number [唯讀]
The measured height of this object. | IFlexDisplayObject | ||
measuredMinHeight : Number
The default minimum height of the component, in pixels. | IUIComponent | ||
measuredMinWidth : Number
The default minimum width of the component, in pixels. | IUIComponent | ||
measuredWidth : Number [唯讀]
The measured width of this object. | IFlexDisplayObject | ||
minHeight : Number [唯讀]
Number that specifies the minimum height of the component,
in pixels, as the component's coordinates. | IUIComponent | ||
minWidth : Number [唯讀]
Number that specifies the minimum width of the component,
in pixels, as the component's coordinates. | IUIComponent | ||
mouseX : Number [唯讀]
指出滑鼠或使用者輸入裝置位置的 x 座標,以像素為單位。 | IFlexDisplayObject | ||
mouseY : Number [唯讀]
指出滑鼠或使用者輸入裝置位置的 y 座標,以像素為單位。 | IFlexDisplayObject | ||
name : String
指出 DisplayObject 的實體名稱。 | IFlexDisplayObject | ||
opaqueBackground : Object
會指定顯示物件是否不透明,並具有特定背景顏色。 | IFlexDisplayObject | ||
owner : DisplayObjectContainer
The owner of this IVisualElement object. | IUIComponent | ||
parent : DisplayObjectContainer [唯讀]
指出包含此顯示物件的 DisplayObjectContainer 物件。 | IFlexDisplayObject | ||
percentHeight : Number
Number that specifies the height of a component as a
percentage of its parent's size. | IUIComponent | ||
percentWidth : Number
Number that specifies the width of a component as a
percentage of its parent's size. | IUIComponent | ||
root : DisplayObject [唯讀]
對載入之 SWF 檔案的顯示物件而言,root 屬性就是該 SWF 檔案所呈現之顯示清單樹狀結構部分的最上層顯示物件。 | IFlexDisplayObject | ||
rotation : Number
指出 DisplayObject 實體的旋轉度數 (從該物件原本方向算起)。 | IFlexDisplayObject | ||
scale9Grid : Rectangle
目前產生效用的縮放格線。 | IFlexDisplayObject | ||
scaleX : Number
指出從註冊點套用的物件水平縮放 (百分比)。 | IFlexDisplayObject | ||
scaleY : Number
指出從物件註冊點套用的物件垂直縮放 (百分比)。 | IFlexDisplayObject | ||
scrollRect : Rectangle
顯示物件的捲動矩形範圍。 | IFlexDisplayObject | ||
stage : Stage [唯讀]
顯示物件的「舞台」。 | IFlexDisplayObject | ||
systemManager : ISystemManager
A reference to the SystemManager object for this component. | IUIComponent | ||
transform : flash.geom:Transform
這是一個物件,具有和顯示物件的矩陣、顏色轉換和像素邊界有關的屬性。 | IFlexDisplayObject | ||
tweeningProperties : Array
Used by EffectManager. | IUIComponent | ||
visible : Boolean
不管是否看得見顯示物件。 | IFlexDisplayObject | ||
width : Number
會指出顯示物件的寬度,以像素為單位。 | IFlexDisplayObject | ||
x : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 x 座標。 | IFlexDisplayObject | ||
y : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 y 座標。 | IFlexDisplayObject |
方法 | 定義自 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | IEventDispatcher | ||
會將事件傳送到事件流程。 | IEventDispatcher | ||
傳回可定義顯示物件區域 (相對於 targetCoordinateSpace 物件的座標系統) 的矩形。 | IFlexDisplayObject | ||
A convenience method for determining whether to use the
explicit or measured height
| IUIComponent | ||
A convenience method for determining whether to use the
explicit or measured width
| IUIComponent | ||
根據 targetCoordinateSpace 參數所定義的座標系統,並排除形狀上的任何筆畫,傳回可定義顯示物件邊界的矩形。 | IFlexDisplayObject | ||
將 point 物件從「舞台」(全域) 座標轉換成顯示物件的 (區域) 座標。 | IFlexDisplayObject | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | IEventDispatcher | ||
評估顯示物件的範圍框,看它是否與 obj 顯示物件的範圍框重疊或相交。 | IFlexDisplayObject | ||
評估顯示物件,看它是否與 x 和 y 參數所指定的點重疊或相交。 | IFlexDisplayObject | ||
Initialize the object. | IUIComponent | ||
將 point 物件從顯示物件的 (區域) 座標轉換成「舞台」(全域) 座標。 | IFlexDisplayObject | ||
Moves this object to the specified x and y coordinates. | IFlexDisplayObject | ||
Returns true if the chain of owner properties
points from child to this UIComponent. | IUIComponent | ||
Called by Flex when a UIComponent object is added to or removed from a parent. | IUIComponent | ||
會從 EventDispatcher 物件移除偵聽程式。 | IEventDispatcher | ||
Sets the actual size of this object. | IFlexDisplayObject | ||
Called when the visible property changes. | IUIComponent | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | IEventDispatcher |
baselinePosition | 屬性 |
baselinePosition:Number
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The y-coordinate of the baseline of the first line of text of the component.
This property is used to implement
the baseline
constraint style.
It is also used to align the label of a FormItem
with the controls in the FormItem.
實作
public function get baselinePosition():Number
document | 屬性 |
document:Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
A reference to the document object associated with this component. A document object is an Object at the top of the hierarchy of a Flex application, MXML component, or ActionScript component.
實作
public function get document():Object
public function set document(value:Object):void
enabled | 屬性 |
enabled:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Whether the component can accept user interaction. After setting the enabled
property to false
, some components still respond to mouse interactions such
as mouseOver. As a result, to fully disable UIComponents,
you should also set the value of the mouseEnabled
property to false
.
If you set the enabled
property to false
for a container, Flex dims the color of the container and of all
of its children, and blocks user input to the container
and to all of its children.
實作
public function get enabled():Boolean
public function set enabled(value:Boolean):void
explicitHeight | 屬性 |
explicitHeight:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The explicitly specified height for the component,
in pixels, as the component's coordinates.
If no height is explicitly specified, the value is NaN
.
實作
public function get explicitHeight():Number
public function set explicitHeight(value:Number):void
相關 API 元素
explicitMaxHeight | 屬性 |
explicitMaxWidth | 屬性 |
explicitMinHeight | 屬性 |
explicitMinWidth | 屬性 |
explicitWidth | 屬性 |
explicitWidth:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The explicitly specified width for the component,
in pixels, as the component's coordinates.
If no width is explicitly specified, the value is NaN
.
實作
public function get explicitWidth():Number
public function set explicitWidth(value:Number):void
相關 API 元素
focusPane | 屬性 |
focusPane:Sprite
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
A single Sprite object that is shared among components and used as an overlay for drawing the focus indicator. Components share this object if their parent is a focused component, not if the component implements the IFocusManagerComponent interface.
實作
public function get focusPane():Sprite
public function set focusPane(value:Sprite):void
相關 API 元素
includeInLayout | 屬性 |
includeInLayout:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Specifies whether this component is included in the layout of the
parent container.
If true
, the object is included in its parent container's
layout and is sized and positioned by its parent container as per its layout rules.
If false
, the object size and position are not affected by its parent container's
layout.
實作
public function get includeInLayout():Boolean
public function set includeInLayout(value:Boolean):void
isPopUp | 屬性 |
maxHeight | 屬性 |
maxWidth | 屬性 |
measuredMinHeight | 屬性 |
measuredMinWidth | 屬性 |
minHeight | 屬性 |
minWidth | 屬性 |
owner | 屬性 |
owner:DisplayObjectContainer
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The owner of this IVisualElement object. By default, it is the parent of this IVisualElement object. However, if this IVisualElement object is a child component that is popped up by its parent, such as the drop-down list of a ComboBox control, the owner is the component that popped up this IVisualElement object.
This property is not managed by Flex, but by each component.
Therefore, if you use the PopUpManger.createPopUp()
or
PopUpManger.addPopUp()
method to pop up a child component,
you should set the owner
property of the child component
to the component that popped it up.
The default value is the value of the parent
property.
實作
public function get owner():DisplayObjectContainer
public function set owner(value:DisplayObjectContainer):void
percentHeight | 屬性 |
percentWidth | 屬性 |
systemManager | 屬性 |
systemManager:ISystemManager
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
A reference to the SystemManager object for this component.
實作
public function get systemManager():ISystemManager
public function set systemManager(value:ISystemManager):void
tweeningProperties | 屬性 |
tweeningProperties:Array
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Used by EffectManager. Returns non-null if a component is not using the EffectManager to execute a Tween.
實作
public function get tweeningProperties():Array
public function set tweeningProperties(value:Array):void
getExplicitOrMeasuredHeight | () | 方法 |
getExplicitOrMeasuredWidth | () | 方法 |
initialize | () | 方法 |
public function initialize():void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Initialize the object.
相關 API 元素
owns | () | 方法 |
public function owns(displayObject:DisplayObject):Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns true
if the chain of owner
properties
points from child
to this UIComponent.
參數
displayObject:DisplayObject — A UIComponent.
|
Boolean — true if the child is parented or owned by this UIComponent.
|
parentChanged | () | 方法 |
public function parentChanged(p:DisplayObjectContainer):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Called by Flex when a UIComponent object is added to or removed from a parent. Developers typically never need to call this method.
參數
p:DisplayObjectContainer — The parent of this UIComponent object.
|
setVisible | () | 方法 |
public function setVisible(value:Boolean, noEvent:Boolean = false):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Called when the visible
property changes.
Set the visible
property to show or hide
a component instead of calling this method directly.
參數
value:Boolean — The new value of the visible property.
Specify true to show the component, and false to hide it.
| |
noEvent:Boolean (default = false ) — If true , do not dispatch an event.
If false , dispatch a show event when
the component becomes visible, and a hide event when
the component becomes invisible.
|
Tue Jun 12 2018, 03:47 PM Z