Referencia de ActionScript® 3.0 para la plataforma de Adobe® Flash®
Inicio  |  Ocultar lista de paquetes y clases |  Paquetes  |  Clases  |  Novedades  |  Índice  |  Apéndices  |  ¿Por qué hay texto en inglés?
Filtros: Recuperando datos del servidor...
Recuperando datos del servidor...
mx.controls.menuClasses 

IMenuItemRenderer  - AS3 Flex

Paquetemx.controls.menuClasses
Interfazpublic interface IMenuItemRenderer
Implementadores MenuItemRenderer

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

The IMenuItemRenderer interface defines the interface that a menu item renderer for a Menu control must implement.

The menu item renderers are often recycled. Once they are created, they may be used again simply by being given new data. Therefore, in individual implementations, component developers must make sure that component properties are not assumed to contain specific initial, or default values.

To implement this interface, a component developer must define a setter and getter method that implements the menu property. Typically, the setter method writes the value of the data property to an internal variable, and the getter method returns the current value of the internal variable, as the following example shows:

     // Internal variable for the property value.
     private var _menu:Menu;
 
     // Define the getter method.
     public function get menu():Menu
     {
         return _menu;
     }
 
     // Define the setter method.
     public function set menu(value:Menu):void
     {
         _menu = value;
     }
  



Propiedades públicas
 PropiedadDefinido por
  measuredBranchIconWidth : Number
[solo lectura] The width of the branch icon.
IMenuItemRenderer
  measuredIconWidth : Number
[solo lectura] The width of the icon.
IMenuItemRenderer
  measuredTypeIconWidth : Number
[solo lectura] The width of the type icon (radio/check).
IMenuItemRenderer
  menu : Menu
A reference to this menu item renderer's Menu control, if it contains one.
IMenuItemRenderer
Información sobre propiedades

measuredBranchIconWidth

propiedad
measuredBranchIconWidth:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

The width of the branch icon.



Implementación
    public function get measuredBranchIconWidth():Number

measuredIconWidth

propiedad 
measuredIconWidth:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

The width of the icon.



Implementación
    public function get measuredIconWidth():Number

measuredTypeIconWidth

propiedad 
measuredTypeIconWidth:Number  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

The width of the type icon (radio/check).



Implementación
    public function get measuredTypeIconWidth():Number

menu

propiedad 
menu:Menu

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

A reference to this menu item renderer's Menu control, if it contains one. This indicates that this menu item renderer is a branch node, capable of popping up a sub menu.



Implementación
    public function get menu():Menu
    public function set menu(value:Menu):void




[ X ]¿Por qué hay texto en inglés?
Cierto contenido de la Referencia de ActionScript 3.0 se muestra en inglés

No todo el contenido de la Referencia de ActionScript 3.0 se traduce a todos los idiomas. Si un elemento del lenguaje no se traduce, aparecerá en inglés. Por ejemplo, la clase ga.controls.HelpBox no está traducida en ningún idioma. Por lo tanto, en la versión en español de la referencia, la clase ga.controls.HelpBox aparecerá en inglés.