套件 | mx.controls.menuClasses |
介面 | public interface IMenuBarItemRenderer extends IDataRenderer , IUIComponent , ISimpleStyleClient , IListItemRenderer , IEventDispatcher , IFlexDisplayObject , ILayoutManagerClient , IFlexDisplayObject , IBitmapDrawable |
實作者 | MenuBarItem |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
menuBar
,
menuBarItemIndex
, and menuBarItemState
properties.
相關 API 元素
公用屬性
屬性 | 定義自 | ||
---|---|---|---|
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 | ||
data : Object
The data to render or edit. | IDataRenderer | ||
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 | ||
initialized : Boolean
A flag that determines if an object has been through all three phases
of layout validation (provided that any were required)
This flag should only be modified by the LayoutManager. | ILayoutManagerClient | ||
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 | ||
menuBar : MenuBar
Contains a reference to the item renderer's MenuBar control. | IMenuBarItemRenderer | ||
menuBarItemIndex : int
Contains the index of this item renderer relative to
other item renderers in the MenuBar control. | IMenuBarItemRenderer | ||
menuBarItemState : String
Contains the current state of this item renderer. | IMenuBarItemRenderer | ||
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 | ||
nestLevel : int
The top-level SystemManager has a nestLevel of 1. | ILayoutManagerClient | ||
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 | ||
processedDescriptors : Boolean
Set to true after immediate or deferred child creation,
depending on which one happens. | ILayoutManagerClient | ||
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 | ||
styleName : Object
The source of this object's style values. | ISimpleStyleClient | ||
systemManager : ISystemManager
A reference to the SystemManager object for this component. | IUIComponent | ||
transform : flash.geom:Transform
這是一個物件,具有和顯示物件的矩陣、顏色轉換和像素邊界有關的屬性。 | IFlexDisplayObject | ||
tweeningProperties : Array
Used by EffectManager. | IUIComponent | ||
updateCompletePendingFlag : Boolean
A flag that determines if an object is waiting to have its
updateComplete event dispatched. | ILayoutManagerClient | ||
visible : Boolean
不管是否看得見顯示物件。 | IFlexDisplayObject | ||
width : Number
會指出顯示物件的寬度,以像素為單位。 | IFlexDisplayObject | ||
x : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 x 座標。 | IFlexDisplayObject | ||
y : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 y 座標。 | IFlexDisplayObject |
屬性詳細資訊
menuBar | 屬性 |
menuBarItemIndex | 屬性 |
menuBarItemIndex:int
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Contains the index of this item renderer relative to other item renderers in the MenuBar control. The index of the first item renderer, the left most renderer, is 0 and increases by 1 as you move to the right in the MenuBar control.
實作
public function get menuBarItemIndex():int
public function set menuBarItemIndex(value:int):void
menuBarItemState | 屬性 |
menuBarItemState:String
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Contains the current state of this item renderer.
The possible values are "itemUpSkin"
,
"itemDownSkin"
, and "itemOverSkin"
.
實作
public function get menuBarItemState():String
public function set menuBarItemState(value:String):void
Tue Jun 12 2018, 03:47 PM Z