Adobe flex popupmenubutton
When this property is modified, it dispatches the collectionChange event. Name of the field in the dataProvider Array that contains the icon to show for each menu item.
The iconFunction property, if set, overrides this property. The item renderer looks in the data provider for a property with the name specified to the iconField property. If the value of the property is a Class, it instantiates that class and expect it to be an instance of an IFlexDisplayObject. If the value of the property is a String, it looks to see if a Class property exists with that name in the application. If it can't find a property on the application, it looks for a property on the document with that name and expect that property to map to a Class.
If the data provider is an E4X XML object, you must set this property explicitly; for example, use icon to specify the icon attribute. When this property is modified, it dispatches the iconFieldChanged event. A function that determines the icon to display for each menu item.
If you omit this property, Flex uses the contents of the field or attribute determined by the iconField property. If you specify this property, Flex ignores any iconField property value. By default, the menu does not try to display icons with the text in the rows. However, by specifying an icon function, you can specify a Class for a graphic that will be created and displayed as an icon in the row.
The iconFunction takes a single argument which is the item in the data provider and returns a Class:. Name of the field in the dataProvider Array that contains the text to show for each menu item. The labelFunction property, if set, overrides this property. If the data provider is an Array of Strings, Flex uses each String value as the label. If the data provider is an E4X XML object, you must set this property explicitly; for example, use label to specify the label attribute.
When this property is modified, it dispatches the labelFieldChanged event. A function that determines the text to display for each menu item. If you omit this property, Flex uses the contents of the field or attribute determined by the labelField property.
If you specify this property, Flex ignores any labelField property value. If you specify this property, the label function must find the appropriate field or fields and return a displayable string. The labelFunction property is good for handling formatting and localization. The label function must take a single argument which is the item in the dataProvider and return a String, as the following example shows:. A reference to the pop-up Menu object. This property is read-only, and setting it has no effect.
Set the dataProvider property, instead. The write-only indicator appears in the syntax summary because the property in the superclass is read-write and this class overrides the setter with an empty implementation. Specifies whether to display the top-level node or nodes of the data provider. If this is set to false , the control displays only descendants of the first top-level node.
Any other top-level nodes are ignored. You normally set this property to false for E4X format XML data providers, where the top-level node is the document object. The properties of the event object for this event type have the following values. Not all properties are meaningful for all kinds of events.
See the detailed property descriptions for more information. Filters: Retrieving Data from Server Retrieving Data from Server Classes x. Package mx.
Clicking on the secondary right sub-button drops down a menu that can be popluated through a dataProvider property. This means that the menu cannot contain cascading submenus. The PopUpMenuButton control has the following sizing characteristics: Characteristic Description Default size Sufficient to accommodate the label and any icon on the main button, and the icon on the pop-up button.
The control does not reserve space for the menu. Minimum size 0 pixels. Maximum size by Menu mx. Public Properties. Hide Inherited Public Properties.
Show Inherited Public Properties. A convenience accessor for the description property in this UIComponent's accessibilityProperties object. A convenience accessor for the silent property in this UIComponent's accessibilityProperties object. The current accessibility implementation AccessibilityImplementation for this InteractiveObject instance.
A convenience accessor for the name property in this UIComponent's accessibilityProperties object. The current accessibility options for this display object. A convenience accessor for the shortcut property in this UIComponent's accessibilityProperties object. Indicates the alpha transparency value of the object specified.
The delegate object that handles the automation-related functionality. Name that can be used as an identifier for this object. Specifies whether to dispatch repeated buttonDown events if the user holds down the mouse button.
For components, this layout constraint property is a facade on top of the similarly-named style. A value from the BlendMode class that specifies which blend mode to use. If set to true, Flash runtimes cache an internal bitmap representation of the display object. If non-null, this Matrix object defines how a display object is rendered when cacheAsBitmap is set to true.
If true, specifies that the pop-up control closes on a click or other user activity. A reference to the class object or constructor function for a given object instance. The data property lets you pass a value to the component when you use it as an item renderer or item editor.
Determines the order in which items inside of containers are rendered. Specifies the optional DesignLayer instance associated with this visual element. A reference to the document object associated with this UIComponent. Draws a thick border around the Button control when the control is in its up state if emphasized is set to true. The text that displayed by a component's error tip when a component is monitored by a Validator and validation fails.
Number that specifies the explicit height of the component, in pixels, in the component's coordinates. The maximum recommended height of the component to be considered by the parent during layout. The maximum recommended width of the component to be considered by the parent during layout. The minimum recommended height of the component to be considered by the parent during layout.
The minimum recommended width of the component to be considered by the parent during layout. Number that specifies the explicit width of the component, in pixels, in the component's coordinates. An indexed array that contains each filter object currently associated with the display object.
Indicates whether the component can receive focus when tabbed to. Gets the FocusManager that controls focus for this component and its peers. The module factory that provides the font context for this component. A flag that indicates whether child objects can receive focus.
Designates another sprite to serve as the hit area for a sprite. Specifies whether this component is included in the layout of the parent container. The beginning of this component's chain of inheriting styles. A flag that determines if an object has been through all three phases of layout: commitment, measurement, and layout provided that any were required.
An Array containing the indices required to reference this UIComponent object from its parent document. Set to true by the PopUpManager to indicate that component has been popped up. Orientation of the label in relation to a specified icon. When a component is used as a drop-in item renderer or drop-in item editor, Flex initializes the listData property of the component with the appropriate data from the list control.
When true, the component keeps its projection matrix centered on the middle of its bounding box. The calling display object is masked by the specified mask object. The default minimum height of the component, in pixels. Obtains the meta data object of the DisplayObject instance if meta data was stored alongside the the instance of this DisplayObject in the SWF file through a PlaceObject4 tag. A module factory is used as context for using embedded fonts and for finding the style manager that controls the styles for this component.
Determines whether or not the children of the object are mouse, or user input device, enabled. Specifies whether this object receives mouse, or other user input, messages. Specifies whether a virtual keyboard an on-screen, software keyboard should display when this InteractiveObject instance receives focus. The beginning of this component's chain of non-inheriting styles. Specifies whether the display object is opaque with a certain background color.
If true, specifies to pop up the popUp when you click the main button. Specifies the height of a component as a percentage of its parent's size. Specifies the width of a component as a percentage of its parent's size.
Defines a set of adjustments that can be applied to the object's transform in a way that is invisible to its parent's layout. Set to true after immediate or deferred child creation, depending on which one happens.
An Array containing the indices of the items in the data provider of the Repeaters in the parent document that produced this UIComponent. An Array containing references to the Repeater objects in the parent document that produced this UIComponent. Indicates whether a toggle button is toggled on true or off false.
The name of the field in the data property which specifies the value of the Button control's selected property. A flag that determines if an automation object shows in the automation hierarchy. Defines the area that should remain on-screen when a soft keyboard is displayed not available on iOS.
If false, the Button displays its down skin when the user presses it but changes to its over skin when the user drags the mouse off of it. Storage for the inline inheriting styles on this object.
A component's parent is used to evaluate descendant selectors. Returns the SystemManager object used by this component. Determines whether the children of the object are tab enabled. A flag that indicates whether this object can receive focus via the TAB key This is similar to the tabEnabled property used by the Flash Player. This is usually true for components that handle keyboard input, but some components in controlbars have them set to false because they should not steal focus from another component like an editor.
Sets the x coordinate for the transform center of the component. Sets the y coordinate for the transform center of the component. Sets the z coordinate for the transform center of the component. An Array of Transition objects, where each Transition object defines a set of effects to play when a view state change occurs.
Array of properties that are currently being tweened on this object. A flag that determines if an object has been through all three phases of layout validation provided that any were required. A Boolean value that indicates whether the pointing hand hand cursor appears when the pointer rolls over a sprite in which the buttonMode property is set to true.
Used by a validator to associate a subfield with this component. Protected Properties. Hide Inherited Protected Properties.
Show Inherited Protected Properties. The icons array contains references to all icons that have been created. Public Methods. Hide Inherited Public Methods. Show Inherited Public Methods. I'm pretty new to Flex and would appreciate some guidance with this. The only information I've found via google is to create a menu as follows. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Collectives on Stack Overflow. Learn more. Asked 12 years, 4 months ago. Active 9 years, 3 months ago. Viewed 3k times. Many thanks, Bryn. Wird von der Effektinstanz aufgerufen, wenn die Wiedergabe der Komponente angehalten wird. Wird von der Effektinstanz aufgerufen, wenn die Wiedergabe auf der Komponente gestartet wird.
Bendet alle derzeit wiedergegebenen Effekte der Komponente. Wird aufgerufen, nachdem der Druckvorgang abgeschlossen wurde. Stellt das Automatisierungsobjekt an der festgelegten Indexposition bereit. Eine bequeme Methode, um anzugeben, ob die explizite oder gemessene Breite verwendet werden soll.
Ruft eine Stileigenschaft ab, die an einer beliebigen Stelle in der Stilkette der Komponente festgelegt ist. Konvertiert globale Koordinaten eines Point-Objekts in Inhaltskoordinaten. Bestimmt, ob der angegebene Status auf dieser UIComponent definiert wurde. Initialisiert verschiedene Eigenschaften, die wiederholte Instanzen dieser Komponente verfolgen.
Gibt an, ob eine Instanz der Object-Klasse in der Prototypkette des Objekts vorhanden ist, das als Parameter angegeben wurde. Konvertiert lokale Koordinaten eines Point-Objekts in Inhaltskoordinaten. Bestimmt, ob diese Instanz dem angegebenen Typ entspricht oder eine Unterklasse davon ist. Misst den angegebenen Text. Gibt an, ob die angegebene Eigenschaft vorhanden ist und durchlaufen werden kann.
Entfernt ein untergeordnetes Anzeigeobjekt aus der angegebenen Indexposition in der Child-Liste des Anzeigeobjekt-Containers. Entfernt einen nichtvisuellen Stilclient aus dieser Komponenteninstanz. Kehrt die z-Reihenfolge von vorne nach hinten der beiden angegebenen untergeordneten Objekte um. Kehrt die z-Reihenfolge von vorne nach hinten der untergeordneten Objekte an den beiden angegebenen Indexpositionen in der Child-Liste um. Validiert und aktualisiert die Eigenschaften und das Layout dieses Objekts und zeichnet es ggf.
Wird von der Layoutlogik verwendet, um die Eigenschaften einer Komponente durch Aufrufen der commitProperties -Methode zu validieren. Wird die LayoutManager. Erstellt ein neues Objekt mit einem Kontext, der auf der verwendeten eingebetteten Schriftart basiert.
Erstellt das Objekt mithilfe einer gegebenen moduleFactory. Die Ereignisprozedur, die bei einem keyDown-Ereignis aufgerufen wird. Die Ereignisprozedur, die bei einem keyUp-Ereignis aufgerufen wird. Klicken Sie, um weitere Informationen zu Ereignissen zu erhalten. Vererbte Ereignisse ausblenden. Vererbte Ereignisse anzeigen. Klicken Sie, um weitere Informationen zu Stilen zu erhalten.
Vererbte Stile ausblenden. Vererbte Stile anzeigen. Klicken Sie, um weitere Informationen zu Effekten zu erhalten.
0コメント