Adobe® Flash® Platform 用 ActionScript® 3.0 リファレンスガイド
ホーム  |  パッケージおよびクラスリストの非表示 |  パッケージ  |  クラス  |  新機能  |  索引  |  付録  |  英語で表示される理由
フィルター: AIR 30.0 以前, Flash Player 30.0 以前, Flash Lite 4
Flex 4.6 以前, Flash Pro CS6 以前
フィルターを非表示
mx.controls 

FlexNativeMenu  - AS3 Flex

パッケージx

トップレベル
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

言語エレメント

グローバル定数
グローバル関数
演算子
ステートメント、キーワード、ディレクティブ
特殊な型

付録

新機能
コンパイルエラー
コンパイラー警告
ランタイムエラー
ActionScript 3 への移行
サポートされている文字セット
MXML のみのタグ
モーション XML エレメント
Timed Text タグ
使用されなくなったエレメントのリスト
Accessibility Implementation 定数
ActionScript の例の使用方法
法律上の注意
パッケージmx.controls
クラスpublic class FlexNativeMenu
継承FlexNativeMenu Inheritance EventDispatcher Inheritance Object
実装 ILayoutManagerClient, IFlexContextMenu, IAutomationObject

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

FlexNativeMenu コンポーネントでは、AIR の NativeMenu クラスのラッパーが提供されます。 FlexNativeMenu は、MXML とデータプロバイダーを使用してメニュー構造を指定するなど、Flex 開発者が使い慣れており、その他の Flex メニューコンポーネントと一貫している手法を使用して、ネイティブのオペレーティングシステムメニュー(ウィンドウ、アプリケーションおよびコンテキストメニューなど)を定義する方法を提供します。 ただし、Flex メニューコンポーネントとは異なり、FlexNativeMenu コンポーネントによって定義されているメニューは、Flex によるビジュアルコンポーネントとして作成されるのではなく、AIR アプリケーションの一部としてホストオペレーティングシステムによってレンダリングされます。

その他の Flex メニューコンポーネントと同様に、FlexNativeMenu コンポーネントによって表わされるメニューの構造を定義するには、メニューを定義するために使用されるデータを格納している XML 階層やオブジェクトの配列などのデータプロバイダーを作成します。 メニューアイテムラベルに使用されるデータフィールドを指定する labelField プロパティ、メニューアイテムに対するキーボードショートカットを定義するフィールドを指定する keyEquivalentField プロパティおよびメニューアイテムのニーモニックとして使用されるラベルの文字のインデックス位置を定義するフィールドを指定する mnemonicIndexField プロパティなど、いくつかのプロパティは、データプロバイダーのデータがどのように解釈されるかを定義するために設定できます。

FlexNativeMenu アイテムに使用するデータプロバイダーによって、次の XML データプロバイダーが示すように、アイテムの表示方法と動き方を決定する属性をいくつか指定できます。

   <mx:XML format="e4x" id="myMenuData">
     <root>
        <menuitem label="MenuItem A">
            <menuitem label="SubMenuItem A-1" enabled="False"/>
            <menuitem label="SubMenuItem A-2"/>
        </menuitem>
        <menuitem label="MenuItem B" type="check" toggled="true"/>
        <menuitem label="MenuItem C" type="check" toggled="false"/>
        <menuitem type="separator"/>
        <menuitem label="MenuItem D">
            <menuitem label="SubMenuItem D-1"/>
            <menuitem label="SubMenuItem D-2"/>
            <menuitem label="SubMenuItem D-3"/>
        </menuitem>
    </root>
 </mx:XML>

次の表では、指定できる属性とそのデータ型、さらにその目的と、メニューで DefaultDataDescriptor クラスを使用してデータプロバイダーを解析する場合に、そのデータプロバイダーが属性をどのように表示するかを一覧で説明します。

属性説明
altKey BooleanAlt キーがアイテムのキー相当物の一部として必要かどうかを指定します。
cmdKey Boolean メモ:この属性は Flex 3.2 では使用されません。代わりに、commandKey を使用してください。Command キーがアイテムのキー相当物の一部として必要かどうかを指定します。
commandKey BooleanCommand キーがアイテムのキー相当物の一部として必要かどうかを指定します。
controlKey BooleanControl キーがアイテムのキー相当物の一部として必要かどうかを指定します。
ctrlKey Boolean メモ:この属性は Flex 3.2 では使用されません。代わりに、controlKey を使用してください。Control キーがアイテムのキー相当物の一部として必要かどうかを指定します。
enabled Booleanユーザーがメニューアイテムを選択できる場合は true、選択できない場合は false を指定します。 このプロパティを指定しないと、アイテムはこの値が true の場合と同じように扱われます。 デフォルトのデータ記述子を使用する場合、データプロバイダーでは enabled XML 属性またはオブジェクトフィールドを使用して、この特定を指定する必要があります。
keyEquivalent 文字列押されると、メニューアイテムが選択されたようにイベントをトリガーするキーボード文字を指定します。 キー相当物を指定するデータ内のフィールド名や、キー相当物を決定する関数は、メニューの keyEquivalentField プロパティまたは keyEquivalentFunction プロパティで指定します。 データプロバイダーが E4X XML 形式の場合、キー相当物を割り当てるにはこれらのプロパティのいずれかを指定する必要があります。
label 文字列コントロールに表示されるテキストを指定します。 このアイテムは、separator 以外のすべてのタイプのメニューアイテムに使用します。 ラベルを指定するデータ内のフィールド名や、ラベルを決定する関数は、メニューの labelField プロパティまたは labelFunction プロパティで指定します。 データプロバイダーが E4X XML 形式の場合、ラベルを表示するにはこれらのプロパティのいずれかを指定する必要があります。 データプロバイダーがストリングの配列である場合、ストリング値がラベルとして使用されます。
mnemonicIndex 整数メニューアイテムのニーモニックとして使用されるラベル内の文字のインデックス位置を指定します。 ニーモニックインデックスを指定するデータ内のフィールド名や、ニーモニックインデックスを決定する関数は、メニューの mnemonicIndexField プロパティまたは mnemonicIndexFunction プロパティで指定します。 データプロバイダーが E4X XML 形式の場合、データ内のニーモニックインデックスを指定するにはこれらのプロパティのいずれかを指定する必要があります。 また、ラベル内の文字の左に隣接する形でアンダースコアを含めることによって、その文字がメニューアイテムのニーモニックであることを示すことができます。
shiftKey BooleanShift キーがアイテムのキー相当物の一部として必要かどうかを指定します。
toggled Booleancheck アイテムが選択されているかどうかを指定します。 このプロパティを選択しないと、アイテムはこの値が false の場合と同じように扱われ、アイテムは選択されません。 デフォルトのデータ記述子を使用する場合、データプロバイダーでは toggled XML 属性またはオブジェクトフィールドを使用して、この特性を指定する必要があります。
type 文字列メニューアイテムのタイプを指定します。 有効な値は、separatorcheck です。 他の値や、タイプ項目のないノードは、normal のメニュー項目として扱われます。 デフォルトのデータ記述子を使用する場合、データプロバイダーでは type XML 属性またはオブジェクトフィールドを使用して、この特性を指定する必要があります。

ウィンドウメニューを作成するには、メニューが表示される Window または WindowedApplication インスタンスの menu プロパティとして FlexNativeMenu を設定します。 アプリケーションメニューを作成するには、アプリケーションの WindowedApplication の menu プロパティとして FlexNativeMenu を割り当てます。 ユーザーインターフェイスの一部に対するコンテキストメニューとして FlexNativeMenu を割り当てるには、FlexNativeMenu インスタンスの setContextMenu() メソッドを呼び出し、UI オブジェクトを引数として渡します。 FlexNativeMenu コンポーネントの display() メソッドを呼び出して、アプリケーションのウィンドウのいずれかの上の任意の場所にポップアップメニューとしてメニューを表示します。

いつメニューアイテムコマンドがトリガーされるかを検出するには、itemClick イベントのリスナーを登録します。 メニューまたはサブメニューが開かれるときを決定するために、menuShow イベントに対するリスナーを登録することもできます。

MXML シンタックスexpandedMXML シンタックスを隠す

The <mx:FlexNativeMenu> tag supports the following tag attributes:

  <mx:FlexNativeMenu
    Properties
    dataDescriptor="mx.controls.treeClasses.DefaultDataDescriptor"
    dataProvider="undefined"
    keyEquivalentField="keyEquivalent"
    keyEquivalentFunction="undefined"
    keyEquivalentModifiersFunction="undefined"
    labelField="label"
    labelFunction="undefined"
    mnemonicIndexField="mnemonicIndex"
    mnemonicIndexFunction="undefined"
    showRoot="true"
 
    Events
    itemClick="No default"
    menuShow="No default"
  />
  

関連する API エレメント



パブリックプロパティ
 プロパティ定義元
      automationDelegate : Object
オートメーション関連機能を処理する委譲オブジェクト。
FlexNativeMenu
      automationEnabled : Boolean
[読み取り専用] このコンポーネントがオートメーション用に有効である場合は true、それ以外の場合は false です。
FlexNativeMenu
      automationName : String
このオブジェクトの識別子として使用できる名前です。
FlexNativeMenu
      automationOwner : DisplayObjectContainer
オートメーション目的で使用するこのコンポーネントのオーナーです。
FlexNativeMenu
      automationParent : DisplayObjectContainer
オートメーション目的で使用するこのコンポーネントの親です。
FlexNativeMenu
      automationTabularData : Object
[読み取り専用] データ検索に使用できる IAutomationTabularData インターフェイスの実装です。
FlexNativeMenu
      automationValue : Array
[読み取り専用] この値はオブジェクトのレンダリング表示に対応しています。また、アプリケーションでの視覚表示と同じにするために、識別子とオブジェクトを関連付けるのに使用できます。
FlexNativeMenu
      automationVisible : Boolean
[読み取り専用] このコンポーネントがオートメーション用に可視である場合は true、それ以外の場合は false です。
FlexNativeMenu
 Inheritedconstructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクター関数への参照です。
Object
      dataDescriptor : IMenuDataDescriptor
データプロバイダー内のデータにアクセスして操作するオブジェクトです。
FlexNativeMenu
      dataProvider : Object
NativeMenu のメニューアイテムの構造を定義するために使用されるオブジェクトの階層です。
FlexNativeMenu
      hasRoot : Boolean
[読み取り専用] 現在のデータプロバイダーにルートノード(例えば、階層構造内の単一の最上位ノードなど)があることを示すフラグです。
FlexNativeMenu
      initialized : Boolean
オブジェクトがレイアウトの 3 つの段階(処理、測定、レイアウト)すべてを完了したものであるかどうかを示すフラグです(いずれかが必須であった場合)。
FlexNativeMenu
      keyEquivalentField : String
各メニューアイテムのキー相当物を決定するデータプロバイダーのフィールド名です。
FlexNativeMenu
      keyEquivalentFunction : Function
各メニューアイテムのキー相当物を判定する関数です。
FlexNativeMenu
      keyEquivalentModifiersFunction : Function
各メニューアイテムのキー相当物のモディファイアを判定する関数です。
FlexNativeMenu
      labelField : String
各メニューアイテムに表示されるテキストを決定するデータプロバイダーのフィールド名です。
FlexNativeMenu
      labelFunction : Function
各メニューアイテムに表示するテキストを判定する関数です。
FlexNativeMenu
      mnemonicIndexField : String
各メニューアイテムに表示されるニーモニックインデックスを決定するデータプロバイダーのフィールド名です。
FlexNativeMenu
      mnemonicIndexFunction : Function
各メニューアイテムのニーモニックインデックスを判定する関数です。
FlexNativeMenu
      nativeMenu : NativeMenu
[読み取り専用] このオブジェクトで管理される flash.display.NativeMenu を返します。存在しない場合は null を返します。
FlexNativeMenu
      nestLevel : int
オブジェクト階層におけるこのオブジェクトの深度を表します。
FlexNativeMenu
      numAutomationChildren : int
[読み取り専用] このコンテナに含まれるオートメーションの子の数です。
FlexNativeMenu
      processedDescriptors : Boolean
子をすぐに生成するか、遅延生成した後、このいずれかの発生に応じて、true に設定されます。
FlexNativeMenu
      showInAutomationHierarchy : Boolean
オートメーションオブジェクトがオートメーション階層に表示されているかどうかを示すフラグです。
FlexNativeMenu
      showRoot : Boolean
データプロバイダーのルートノードを表示するかどうかを指定する Boolean フラグです。
FlexNativeMenu
      updateCompletePendingFlag : Boolean
オブジェクトが 3 段階のレイアウト検証を完了したものであるかどうかを示すフラグです(いずれかの検証が必須であった場合)。
FlexNativeMenu
パブリックメソッド
 メソッド定義元
  
    FlexNativeMenu()
コンストラクターです。
FlexNativeMenu
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
イベントリスナーオブジェクトを EventDispatcher オブジェクトに登録し、リスナーがイベントの通知を受け取るようにします。
EventDispatcher
  
このコンテナの子を識別するプロパティのセットを返します。
FlexNativeMenu
  
このコンテナの子を識別するプロパティのセットを返します。
FlexNativeMenu
 Inherited
イベントをイベントフローに送出します。
EventDispatcher
  
    display(stage:Stage, x:int, y:int):void
このメニューを、指定された位置にポップアップ表示します。
FlexNativeMenu
  
指定されたインデックス位置でオートメーションオブジェクトを提供します。
FlexNativeMenu
  
オートメーションオブジェクトリストを提供します。
FlexNativeMenu
 Inherited
EventDispatcher オブジェクトに、特定のイベントタイプに対して登録されたリスナーがあるかどうかを確認します。
EventDispatcher
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
  
後で画面更新時に commitProperties() メソッドが呼び出されるように、コンポーネントをマークします。
FlexNativeMenu
 Inherited
Object クラスのインスタンスが、パラメーターとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
Object
 Inherited
指定されたプロパティが存在し、列挙できるかどうかを示します。
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
EventDispatcher オブジェクトからリスナーを削除します。
EventDispatcher
  
指定されたイベントを再生します。
FlexNativeMenu
  
提供された ID を使用して子を解決します。
FlexNativeMenu
  
InteractiveObject のコンテキストメニューを基になるネイティブメニューに設定します。
FlexNativeMenu
 Inherited
ループ処理に対するダイナミックプロパティの可用性を設定します。
Object
 Inherited
ロケール固有の規則に従って書式設定された、このオブジェクトのストリング表現を返します。
Object
 Inherited
指定されたオブジェクトのストリング表現を返します。
Object
  
基になるネイティブメニューに設定されていた InteractiveObject のコンテキストメニューの設定を解除します。
FlexNativeMenu
  
子の位置とサイズを検証し、その他のビジュアルオブジェクトを描画します。
FlexNativeMenu
  
    validateNow():void
必要に応じて、このオブジェクトのプロパティとレイアウトを検証および更新し、それを再描画します。
FlexNativeMenu
  
コンポーネントのプロパティを検証します。
FlexNativeMenu
  
    validateSize(recursive:Boolean = false):void
コンポーネントの測定サイズを検証します。LayoutManager.invalidateSize() メソッドがこの ILayoutManagerClient を指定して呼び出された場合、測定の実行時に validateSize() メソッドが呼び出されます。
FlexNativeMenu
 Inherited
指定されたオブジェクトのプリミティブな値を返します。
Object
 Inherited
指定されたイベントタイプについて、この EventDispatcher オブジェクトまたはその祖先にイベントリスナーが登録されているかどうかを確認します。
EventDispatcher
プロテクトメソッド
 メソッド定義元
  
コンポーネントに設定されたプロパティを処理します。
FlexNativeMenu
  
keyEquivalentField プロパティと keyEquivalentFunction プロパティに基づいて、指定されたデータオブジェクトのキー相当物を返します。
FlexNativeMenu
  
keyEquivalentModifiersFunction プロパティに基づいて、指定されたデータオブジェクトのキー相当物のモディファイアを返します。
FlexNativeMenu
  
    itemToLabel(data:Object):String
labelField プロパティと labelFunction プロパティに基づいて、指定されたデータオブジェクトに対するメニューアイテムラベルとして使用するストリングを返します。
FlexNativeMenu
  
mnemonicIndexField プロパティと mnemonicIndexFunction プロパティに基づいて、指定されたデータオブジェクトのニーモニックインデックスを返します。
FlexNativeMenu
  
アンダースコア文字が存在するかどうかに基づいてラベルからニーモニックインデックスを抽出します。
FlexNativeMenu
  
アンダースコア文字がある場合は削除し、エスケープされているアンダースコア文字がある場合は変換して、NativeMenuItem に対して使用される実際のラベルを決定します。
FlexNativeMenu
イベント
 イベント 概要 定義元
 Inherited[ブロードキャストイベント] Flash Player または AIR アプリケーションがオペレーティングシステムのフォーカスを取得して、アクティブになったときに送出されます。EventDispatcher
 Inherited[ブロードキャストイベント] Flash Player または AIR アプリケーションがオペレーティングシステムのフォーカスを失って、非アクティブになったときに送出されます。EventDispatcher
  
    itemClick
メニューアイテムが選択されたときに送出されます。FlexNativeMenu
  
    menuShow
メニューまたはサブメニューが表示される前に送出されます。FlexNativeMenu
プロパティの詳細
    

automationDelegate

プロパティ
automationDelegate:Object

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

オートメーション関連機能を処理する委譲オブジェクト。



実装
    public function get automationDelegate():Object
    public function set automationDelegate(value:Object):void
    

automationEnabled

プロパティ 
automationEnabled:Boolean  [読み取り専用]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

このコンポーネントがオートメーション用に有効である場合は true、それ以外の場合は false です。



実装
    public function get automationEnabled():Boolean
    

automationName

プロパティ 
automationName:String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

このオブジェクトの識別子として使用できる名前です。



実装
    public function get automationName():String
    public function set automationName(value:String):void
    

automationOwner

プロパティ 
automationOwner:DisplayObjectContainer

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

オートメーション目的で使用するこのコンポーネントのオーナーです。



実装
    public function get automationOwner():DisplayObjectContainer
    public function set automationOwner(value:DisplayObjectContainer):void
    

automationParent

プロパティ 
automationParent:DisplayObjectContainer

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

オートメーション目的で使用するこのコンポーネントの親です。



実装
    public function get automationParent():DisplayObjectContainer
    public function set automationParent(value:DisplayObjectContainer):void
    

automationTabularData

プロパティ 
automationTabularData:Object  [読み取り専用]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

データ検索に使用できる IAutomationTabularData インターフェイスの実装です。



実装
    public function get automationTabularData():Object
    

automationValue

プロパティ 
automationValue:Array  [読み取り専用]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

この値はオブジェクトのレンダリング表示に対応しています。また、アプリケーションでの視覚表示と同じにするために、識別子とオブジェクトを関連付けるのに使用できます。



実装
    public function get automationValue():Array
    

automationVisible

プロパティ 
automationVisible:Boolean  [読み取り専用]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

このコンポーネントがオートメーション用に可視である場合は true、それ以外の場合は false です。



実装
    public function get automationVisible():Boolean
    

dataDescriptor

プロパティ 
dataDescriptor:IMenuDataDescriptor

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

データプロバイダー内のデータにアクセスして操作するオブジェクトです。 FlexNativeMenu コントロールは、データに関する情報について、データ記述子に委任します。次に、このデータはデータソースに関する解析と移動のために使用されます。FlexNativeMenu に対して定義されたデータ記述子は、すべての子メニューおよびサブメニューで使用されます。

このプロパティを MXML の属性として指定する場合、記述子のストリング名ではなく、データ記述子への参照を使用する必要があります。プロパティを設定するには次の形式を使用します。

<mx:FlexNativeMenu id="flexNativeMenu" dataDescriptor="{new MyCustomDataDescriptor()}"/>

また、次の例に示すように、ネストしたサブタグとして MXML のプロパティを指定できます。

<mx:FlexNativeMenu>
      <mx:dataDescriptor>
         <myCustomDataDescriptor>
      </mx:dataDescriptor>
      ...

デフォルト値は、DefaultDataDescriptor クラスの内部インスタンスです。



実装
    public function get dataDescriptor():IMenuDataDescriptor
    public function set dataDescriptor(value:IMenuDataDescriptor):void
    

dataProvider

プロパティ 
dataProvider:Object

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

NativeMenu のメニューアイテムの構造を定義するために使用されるオブジェクトの階層です。 個別のデータオブジェクトはメニューアイテムを定義し、子アイテムを持つアイテムはメニューとサブメニューになります。

FlexNativeMenu コントロールは、ソースデータオブジェクトを次のように処理します。

  • 有効な XML テキストを含むストリングが XML オブジェクトに変換されます。
  • XMLNode は、XML オブジェクトに変換されます。
  • また XMLList は、XMLListCollection に変換されます。
  • ICollectionView インターフェイスを実装するすべてのオブジェクトが ICollectionView にキャストされます。
  • Array は ArrayCollection に変換されます。
  • 他のタイプのオブジェクトは、Array 内でその単一エントリとしてラップされます。

デフォルト値: "undefined"。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 collectionChange イベントが送出されます。



実装
    public function get dataProvider():Object
    public function set dataProvider(value:Object):void
    

hasRoot

プロパティ 
hasRoot:Boolean  [読み取り専用]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

現在のデータプロバイダーにルートノード(例えば、階層構造内の単一の最上位ノードなど)があることを示すフラグです。 XML と Object はルートノードがあるタイプの例であり、リストと配列はルートノードがないタイプの例です。



実装
    public function get hasRoot():Boolean
    

initialized

プロパティ 
initialized:Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

オブジェクトがレイアウトの 3 つの段階(処理、測定、レイアウト)すべてを完了したものであるかどうかを示すフラグです(いずれかが必須であった場合)。



実装
    public function get initialized():Boolean
    public function set initialized(value:Boolean):void
    

keyEquivalentField

プロパティ 
keyEquivalentField:String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

各メニューアイテムのキー相当物を決定するデータプロバイダーのフィールド名です。 値のセットは、Keyboard クラスの KEYNAME_XXXX 定数で定義されます。 例えば、Home、Insert などの制御文字の値に対して一覧表示される定数です。

keyEquivalentFunction プロパティを設定すると、このプロパティは無視されます。

デフォルト値: "keyEquivalent"。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 keyEquivalentChanged イベントが送出されます。



実装
    public function get keyEquivalentField():String
    public function set keyEquivalentField(value:String):void

関連する API エレメント

    

keyEquivalentFunction

プロパティ 
keyEquivalentFunction:Function

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

各メニューアイテムのキー相当物を判定する関数です。 このプロパティを省略すると、keyEquivalentField プロパティで指定したフィールドまたは属性の値が使用されます。 このプロパティを指定した場合、keyEquivalentField プロパティの値は無視されます。

keyEquivalentFunction プロパティは、フォーマット処理やローカライズにも使用でき、プラットフォームに依存しません。

このキー相当物関数は単一の引数を取得します。この引数は、データプロバイダー内のアイテムであり、ストリングを返します。

myKeyEquivalentFunction(item:Object):String

デフォルト値: "undefined"。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 keyEquivalentFunctionChanged イベントが送出されます。



実装
    public function get keyEquivalentFunction():Function
    public function set keyEquivalentFunction(value:Function):void

関連する API エレメント

    

keyEquivalentModifiersFunction

プロパティ 
keyEquivalentModifiersFunction:Function

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

各メニューアイテムのキー相当物のモディファイアを判定する関数です。 このプロパティを省略した場合、Flex では独自のデフォルト関数が使用され、次の(ブール)フィールドが存在するかどうかについてデータプロバイダーのデータを確認することによって、モディファイアの配列が決定されます。altKeycommandKeycontrolKey および shiftKey です。

keyEquivalentModifiersFunction プロパティは、フォーマット処理やローカライズにも使用でき、プラットフォームに依存しません。

このキー相当物のモディファイア関数は単一の引数を取得します。この引数は、データプロバイダー内のアイテムであり、モディファイアキー名の配列を返します。

myKeyEquivalentModifiersFunction(item:Object):Array

デフォルト値: "undefined"。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 keyEquivalentModifiersFunctionChanged イベントが送出されます。



実装
    public function get keyEquivalentModifiersFunction():Function
    public function set keyEquivalentModifiersFunction(value:Function):void
    

labelField

プロパティ 
labelField:String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

各メニューアイテムに表示されるテキストを決定するデータプロバイダーのフィールド名です。 データプロバイダーがストリングの配列である場合、各ストリング値がラベルとして使用されます。 データプロバイダーが E4X XML オブジェクトの場合、このプロパティを明示的に設定する必要があります。 例えば、E4X XML オブジェクト内の各 XML エレメントに各メニューアイテムに対して表示するテキストを含む "label" 属性が含まれている場合は、labelField を "@label" に設定します。

ラベルでは、アンダースコアを前に付けることによって、ニーモニックインデックスとして使用される文字を指定できます。 例えば、"C_ut" というラベル値の場合、ニーモニックインデックスが 1 に設定されます。 この目的に使用されるのは、最初のアンダースコアだけです。 ラベル内にリテラルアンダースコア文字を表示するには、アンダースコアを 2 つ使用することによってエスケープできます。 例えば、"C__u_t" というラベル値は、"C_ut" というラベルを持ち、ニーモニックインデックスが 3 ("t" 文字)であるメニューアイテムになります。 mnemonicIndexField プロパティで定義されているフィールドが存在し、それが 0 より大きい値に設定されている場合は、アンダースコアで指定されているニーモニックインデックス値よりもその値が優先されます。

labelFunction プロパティを設定すると、このプロパティは無視されます。

デフォルト値: "label"。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 labelFieldChanged イベントが送出されます。



実装
    public function get labelField():String
    public function set labelField(value:String):void
    

labelFunction

プロパティ 
labelFunction:Function

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

各メニューアイテムに表示するテキストを判定する関数です。 ラベル関数でデータプロバイダー内の適切なフィールドを検索し、表示可能なストリングを返す必要があります。

このプロパティを省略すると、labelField プロパティで指定したフィールドまたは属性の値が使用されます。 このプロパティを指定した場合、labelField プロパティの値は無視されます。

labelFunction プロパティは、フォーマット処理やローカライズに役立ち、プラットフォームに依存しません。

このラベル関数は単一の引数を取得します。この引数は、データプロバイダー内のアイテムであり、ストリングを返します。

myLabelFunction(item:Object):String

デフォルト値: "undefined"。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 labelFunctionChanged イベントが送出されます。



実装
    public function get labelFunction():Function
    public function set labelFunction(value:Function):void
    

mnemonicIndexField

プロパティ 
mnemonicIndexField:String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

各メニューアイテムに表示されるニーモニックインデックスを決定するデータプロバイダーのフィールド名です。

このプロパティに指定されているフィールドに 0 より大きい数が含まれている場合は、そのニーモニックインデックスは、ラベル内のアンダースコアによって指定された数よりも優先されます。

mnemonicIndexFunction プロパティを設定すると、このプロパティは無視されます。

デフォルト値: "mnemonicIndex"。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 mnemonicIndexChanged イベントが送出されます。



実装
    public function get mnemonicIndexField():String
    public function set mnemonicIndexField(value:String):void

関連する API エレメント

    

mnemonicIndexFunction

プロパティ 
mnemonicIndexFunction:Function

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

各メニューアイテムのニーモニックインデックスを判定する関数です。

このプロパティを省略すると、mnemonicIndexField プロパティで指定したフィールドまたは属性の値が使用されます。 このプロパティを指定した場合、mnemonicIndexField プロパティの値は無視されます。

このプロパティが定義されており、関数がデータアイテムに対して 0 より大きい数を返す場合は、ラベル内のアンダースコアによって指定された数よりも返されたニーモニックインデックスが優先されます。

mnemonicIndexFunction プロパティは、フォーマット処理やローカライズにも使用でき、プラットフォームに依存しません。

このニーモニックインデックス関数は単一のパラメーターを取得します。このパラメーターは、データプロバイダー内のアイテムであり、int を返します。

myMnemonicIndexFunction(item:Object):int

デフォルト値: "undefined"。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 mnemonicIndexFunctionChanged イベントが送出されます。



実装
    public function get mnemonicIndexFunction():Function
    public function set mnemonicIndexFunction(value:Function):void
    

nativeMenu

プロパティ 
nativeMenu:NativeMenu  [読み取り専用]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

このオブジェクトで管理される flash.display.NativeMenu を返します。存在しない場合は null を返します。基になる NativeMenu インスタンスに対して直接加えられた変更は、メニューまたは基になるデータプロバイダーが変更されるときに失われることがあります。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 nativeMenuUpdate イベントが送出されます。



実装
    public function get nativeMenu():NativeMenu
    

nestLevel

プロパティ 
nestLevel:int

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

オブジェクト階層におけるこのオブジェクトの深度を表します。この数値は、測定およびレイアウトコードによって使用されます。このコンポーネントが DisplayList でない場合、この値は 0 になります。



実装
    public function get nestLevel():int
    public function set nestLevel(value:int):void
    

numAutomationChildren

プロパティ 
numAutomationChildren:int  [読み取り専用]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

このコンテナに含まれるオートメーションの子の数です。 この合計には、オートメーション階層で重要でない子は含まれますが、組み合わされた子が含まれることはありません。



実装
    public function get numAutomationChildren():int
    

processedDescriptors

プロパティ 
processedDescriptors:Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

子をすぐに生成するか、遅延生成した後、このいずれかの発生に応じて、true に設定されます。 Container オブジェクトの場合、true に設定されるのは、createComponentsFromDescriptors() メソッドの終了時、つまり、Container オブジェクトが子の記述子から子を作成した後です。

例えば、Accordion コンテナが遅延インスタンス化を使用する場合、Accordion コンテナの 2 番目のペインの processedDescriptors プロパティは、ユーザーがそのペインまでナビゲートし、ペインがその子を作成するまで true になりません。 ただし、Accordion が creationPolicy プロパティを "all" に設定している場合、その 2 番目のペインの processedDescriptors プロパティはアプリケーションの起動中に true に設定されます。

コンテナではないクラスには記述子がなく、この場合、このプロパティが true に設定されるのは、createChildren() メソッドが内部コンポーネントの子を作成した後です。



実装
    public function get processedDescriptors():Boolean
    public function set processedDescriptors(value:Boolean):void
    

showInAutomationHierarchy

プロパティ 
showInAutomationHierarchy:Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

オートメーションオブジェクトがオートメーション階層に表示されているかどうかを示すフラグです。 階層に表示されないコンテナの子は、次に高いレベルで表示される親の子として表示されます。 通常、ボックスや Canvas のようなレイアウトに使用されるコンテナは階層に表示されません。

必要に応じて子を階層に表示させるコントロールもあります。 例えば、List は、ボックスなどのアイテムレンダラーを必ず階層に表示させます。 インプリメンタでは、このプロパティを true に設定することをサポートする必要があります。



実装
    public function get showInAutomationHierarchy():Boolean
    public function set showInAutomationHierarchy(value:Boolean):void
    

showRoot

プロパティ 
showRoot:Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

データプロバイダーのルートノードを表示するかどうかを指定する Boolean フラグです。

データプロバイダーにルートノードがあり、showRoot プロパティが false に設定されている場合、FlexNativeMenu コントロールによって表示される最上位のメニューアイテムは、ルートノードの直下の下位要素に対応します。

このフラグは、リストや配列などのルートノードがないデータプロバイダーを使用する場合には、影響しません。

デフォルト値: true。



実装
    public function get showRoot():Boolean
    public function set showRoot(value:Boolean):void

関連する API エレメント

    

updateCompletePendingFlag

プロパティ 
updateCompletePendingFlag:Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

オブジェクトが 3 段階のレイアウト検証を完了したものであるかどうかを示すフラグです(いずれかの検証が必須であった場合)。



実装
    public function get updateCompletePendingFlag():Boolean
    public function set updateCompletePendingFlag(value:Boolean):void
コンストラクターの詳細
    

FlexNativeMenu

()コンストラクター
public function FlexNativeMenu()

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

コンストラクターです。

メソッドの詳細

    commitProperties

()メソッド
protected function commitProperties():void

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

コンポーネントに設定されたプロパティを処理します。

関連する API エレメント

    createAutomationIDPart

()メソッド 
public function createAutomationIDPart(child:IAutomationObject):Object

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

このコンテナの子を識別するプロパティのセットを返します。 アプリケーションの存続中は、これらの値を変更しないでください。

パラメーター

child:IAutomationObject — ID を提供する対象の子です。

戻り値
Object — コンポーネントを解決するために後に使用できる、子を記述するプロパティのセットです。

    createAutomationIDPartWithRequiredProperties

()メソッド 
public function createAutomationIDPartWithRequiredProperties(child:IAutomationObject, properties:Array):Object

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

このコンテナの子を識別するプロパティのセットを返します。 アプリケーションの存続中は、これらの値を変更しないでください。

パラメーター

child:IAutomationObject — ID を提供する対象の子です。
 
properties:Array

戻り値
Object — コンポーネントを解決するために後に使用できる、子を記述するプロパティのセットです。

    display

()メソッド 
public function display(stage:Stage, x:int, y:int):void

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

このメニューを、指定された位置にポップアップ表示します。

パラメーター

stage:Stage — このメニューが表示される Stage オブジェクトです。
 
x:int — このメニューを表示するステージの起点を基準とした、水平方向のピクセル数です。
 
y:int — このメニューが表示されるステージの起点を基準にした垂直方向のピクセル数です。

    getAutomationChildAt

()メソッド 
public function getAutomationChildAt(index:int):IAutomationObject

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

指定されたインデックス位置でオートメーションオブジェクトを提供します。 このリストには、組み合わされた子を入れないでください。

パラメーター

index:int — 返される子のインデックスです。

戻り値
IAutomationObject — 指定されたインデックス位置にある子です。

    getAutomationChildren

()メソッド 
public function getAutomationChildren():Array

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

オートメーションオブジェクトリストを提供します。このリストには、組み合わされた子は含まれません。

戻り値
Array — 子です。

    invalidateProperties

()メソッド 
public function invalidateProperties():void

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

後で画面更新時に commitProperties() メソッドが呼び出されるように、コンポーネントをマークします。

無効化は、後で画面が更新されるまでコンポーネントの変更処理を保留することで、作業の重複を解消する便利なメカニズムです。例えば、テキストの色とサイズを変更する場合、色を変更した後、すぐに色を更新し、次にサイズを設定して、今度はサイズを更新するという処理は時間の浪費です。両方のプロパティを変更した後、新しいサイズと色でテキストを一度に再描画する方が効率的です。

無効化メソッドが呼び出されることはほとんどありません。一般的には、コンポーネントのプロパティを設定すると、適切な無効化メソッドが自動的に呼び出されます。

    itemToKeyEquivalent

()メソッド 
protected function itemToKeyEquivalent(data:Object):String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

keyEquivalentField プロパティと keyEquivalentFunction プロパティに基づいて、指定されたデータオブジェクトのキー相当物を返します。このメソッドは、パラメーターをストリングに変換できない場合、空のストリングを返します。

パラメーター

data:Object — 表示されるオブジェクトです。

戻り値
String — データに基づいたキー相当物です。

    itemToKeyEquivalentModifiers

()メソッド 
protected function itemToKeyEquivalentModifiers(data:Object):Array

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

keyEquivalentModifiersFunction プロパティに基づいて、指定されたデータオブジェクトのキー相当物のモディファイアを返します。このメソッドは、パラメーターをモディファイアの配列に変換できない場合、空の配列を返します。

パラメーター

data:Object — 表示されるオブジェクトです。

戻り値
Array — データに基づいたキー相当物のモディファイアの配列です。

    itemToLabel

()メソッド 
protected function itemToLabel(data:Object):String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

labelField プロパティと labelFunction プロパティに基づいて、指定されたデータオブジェクトに対するメニューアイテムラベルとして使用するストリングを返します。このメソッドは、パラメーターをストリングに変換できない場合にスペースを 1 つ返します。

パラメーター

data:Object — 表示されるオブジェクトです。

戻り値
String — データに応じて表示されるストリングです。

    itemToMnemonicIndex

()メソッド 
protected function itemToMnemonicIndex(data:Object):int

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

mnemonicIndexField プロパティと mnemonicIndexFunction プロパティに基づいて、指定されたデータオブジェクトのニーモニックインデックスを返します。このメソッドは、パラメーターを整数に変換できない場合、-1 を返します。

パラメーター

data:Object — 表示されるオブジェクトです。

戻り値
int — データに基づいたニーモニックインデックスです。

    parseLabelToMnemonicIndex

()メソッド 
protected function parseLabelToMnemonicIndex(data:String):int

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

アンダースコア文字が存在するかどうかに基づいてラベルからニーモニックインデックスを抽出します。先頭のアンダースコア文字(ある場合)を探し、インデックスとして使用します。

パラメーター

data:String — インデックス用に解析するデータです。

戻り値
int — インデックスです。

    parseLabelToString

()メソッド 
protected function parseLabelToString(data:String):String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

アンダースコア文字がある場合は削除し、エスケープされているアンダースコア文字がある場合は変換して、NativeMenuItem に対して使用される実際のラベルを決定します。

パラメーター

data:String — ラベル用に解析するデータです。

戻り値
String — ラベルです。

    replayAutomatableEvent

()メソッド 
public function replayAutomatableEvent(event:Event):Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

指定されたイベントを再生します。 デフォルトの再生動作がスーパークラスで定義されている場合、コンポーネント作成者は super.replayAutomatableEvent を呼び出すはずです。

パラメーター

event:Event — 再生するイベントです。

戻り値
Boolean — 再生が正常に完了した場合は、true です。

    resolveAutomationIDPart

()メソッド 
public function resolveAutomationIDPart(criteria:Object):Array

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

提供された ID を使用して子を解決します。 この ID は、createAutomationIDPart() メソッドが提供するプロパティのセットです。

パラメーター

criteria:Object — 子を記述するプロパティのセットです。 条件には、正規表現の値を入れられるので、複数の子を条件に一致させられます。

戻り値
Array — 条件と照合できる子の配列です。すべての子が解決できる場合は null です。

    setContextMenu

()メソッド 
public function setContextMenu(component:InteractiveObject):void

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

InteractiveObject のコンテキストメニューを基になるネイティブメニューに設定します。

パラメーター

component:InteractiveObject — インタラクティブオブジェクトです。

    unsetContextMenu

()メソッド 
public function unsetContextMenu(component:InteractiveObject):void

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

基になるネイティブメニューに設定されていた InteractiveObject のコンテキストメニューの設定を解除します。

パラメーター

component:InteractiveObject — インタラクティブオブジェクトです。

    validateDisplayList

()メソッド 
public function validateDisplayList():void

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

子の位置とサイズを検証し、その他のビジュアルオブジェクトを描画します。 LayoutManager.invalidateDisplayList() メソッドがこの ILayoutManagerClient クライアントを指定して呼び出された場合、表示リストの更新時に validateDisplayList() メソッドが呼び出されます。

    validateNow

()メソッド 
public function validateNow():void

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

必要に応じて、このオブジェクトのプロパティとレイアウトを検証および更新し、それを再描画します。

    validateProperties

()メソッド 
public function validateProperties():void

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

コンポーネントのプロパティを検証します。 LayoutManager.invalidateProperties() メソッドがこの ILayoutManagerClient クライアントを指定して呼び出された場合、プロパティ値の処理時に validateProperties() メソッドが呼び出されます。

    validateSize

()メソッド 
public function validateSize(recursive:Boolean = false):void

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

コンポーネントの測定サイズを検証します。LayoutManager.invalidateSize() メソッドがこの ILayoutManagerClient を指定して呼び出された場合、測定の実行時に validateSize() メソッドが呼び出されます。

パラメーター

recursive:Boolean (default = false)true の場合、このメソッドをオブジェクトの子で呼び出します。

イベントの詳細
    

itemClick

イベント
イベントオブジェクトの型: mx.events.FlexNativeMenuEvent
プロパティ FlexNativeMenuEvent.type = mx.events.FlexNativeMenuEvent.ITEM_CLICK

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

メニューアイテムが選択されたときに送出されます。

FlexNativeMenuEvent.ITEM_CLICK イベント型定数は、ユーザーがメニューアイテムを選択したことを示します。

このイベントタイプのイベントオブジェクトの各プロパティには次の値が設定されています。イベントの種類によっては無効なプロパティもあります。詳細については、各プロパティの説明を参照してください。

プロパティ
bubblesfalse
cancelabletrue
currentTargetイベント処理を行うイベントリスナーの定義用オブジェクトを表します。 例えば、イベントリスナーの登録に myButton.addEventListener() を使用すると、myButton の値は currentTarget となります。
index選択されたメニューアイテムのメニュー内におけるインデックスです。
item選択された dataProvider 内のアイテムです。
label選択されたメニューアイテムのラベルテキストです。
nativeMenuイベントに関連付けられた特定の NativeMenu インスタンスです。
nativeMenuItemイベントに関連付けられた特定の NativeMenuItem インスタンスです。
targetイベントを送出したオブジェクトを表します。このオブジェクトは必ずしもイベントを受け取るオブジェクトとは限りません。 イベントを受け取るオブジェクトに常にアクセスするには、currentTarget プロパティを使用してください。
typeFlexNativeMenuEvent.ITEM_CLICK
    

menuShow

イベント  
イベントオブジェクトの型: mx.events.FlexNativeMenuEvent
プロパティ FlexNativeMenuEvent.type = mx.events.FlexNativeMenuEvent.MENU_SHOW

言語バージョン: ActionScript 3.0
製品バージョン: Flex 3
ランタイムバージョン: AIR 1.1

メニューまたはサブメニューが表示される前に送出されます。

FlexNativeMenuEvent.MENU_SHOW 型定数は、マウスポインターがメニュー上に置かれたか、サブメニューが開かれたことを示します。

このイベントタイプのイベントオブジェクトの各プロパティには次の値が設定されています。イベントの種類によっては無効なプロパティもあります。詳細については、各プロパティの説明を参照してください。

プロパティ
bubblesfalse
cancelabletrue
currentTargetイベント処理を行うイベントリスナーの定義用オブジェクトを表します。 例えば、イベントリスナーの登録に myButton.addEventListener() を使用すると、myButton の値は currentTarget となります。
index-1. このプロパティは、このタイプのイベントの場合は設定されません。
itemnull。このプロパティは、このタイプのイベントの場合は設定されません。
labelnull。このプロパティは、このタイプのイベントの場合は設定されません。
nativeMenuイベントに関連付けられた特定の NativeMenu インスタンスです。
nativeMenuItemnull。このプロパティは、このタイプのイベントの場合は設定されません。
targetイベントを送出したオブジェクトを表します。このオブジェクトは必ずしもイベントを受け取るオブジェクトとは限りません。 イベントを受け取るオブジェクトに常にアクセスするには、currentTarget プロパティを使用してください。
typeFlexNativeMenuEvent.MENU_SHOW




[ X ]英語で表示される理由
ActionScript 3.0 リファレンスガイドのコンテンツが英語で表示されます。

ActionScript 3.0 リファレンスガイドのすべての部分がすべての言語に翻訳されているわけではありません。言語エレメントが翻訳されていない場合、そのエレメントは英語で表示されます。例えば、ga.controls.HelpBox クラスはどの言語にも訳されていません。このため、リファレンスガイドの日本語バージョンでは、ga.controls.HelpBox クラスは英語で表示されます。