| Package | org.openzet.controls |
| Class | public class ZetMenu |
| Inheritance | ZetMenu mx.controls.Menu |
| Method | Defined by | ||
|---|---|---|---|
|
ZetMenu()
Constructor
| ZetMenu | ||
|
createMenu(parent:DisplayObjectContainer, mdp:Object, showRoot:Boolean = true):ZetMenu
[static]
Creates and returns an instance of the Menu class.
| ZetMenu | ||
|
[static]
Sets the dataProvider of an existing Menu control and places the Menu
control in the specified parent container.
| ZetMenu | ||
|
show(xShow:Object = null, yShow:Object = null):void
Shows the Menu control.
| ZetMenu | ||
| ZetMenu | () | constructor |
public function ZetMenu()Constructor
| createMenu | () | method |
public static function createMenu(parent:DisplayObjectContainer, mdp:Object, showRoot:Boolean = true):ZetMenu
Creates and returns an instance of the Menu class. The Menu control's
content is determined by the method's mdp argument. The
Menu control is placed in the parent container specified by the
method's parent argument.
This method does not show the Menu control. Instead,
this method just creates the Menu control and allows for modifications
to be made to the Menu instance before the Menu is shown. To show the
Menu, call the Menu.show() method.
parent:DisplayObjectContainer — A container that the PopUpManager uses to place the Menu
control in. The Menu control may not actually be parented by this object.
|
|
mdp:Object — The data provider for the Menu control.
|
|
showRoot:Boolean (default = true) — A Boolean flag that specifies whether to display the
root node of the data provider.
|
ZetMenu —
An instance of the Menu class.
|
See also
| popUpMenu | () | method |
public static function popUpMenu(menu:ZetMenu, parent:DisplayObjectContainer, mdp:Object):void
Sets the dataProvider of an existing Menu control and places the Menu
control in the specified parent container.
This method does not show the Menu control; you must use the
Menu.show() method to display the Menu control.
The Menu.createMenu() method uses this method.
menu:ZetMenu — Menu control to popup.
|
|
parent:DisplayObjectContainer — A container that the PopUpManager uses to place the Menu
control in. The Menu control may not actually be parented by this object.
If you omit this property, the method sets the Menu control's parent to
the application.
|
|
mdp:Object — dataProvider object set on the popped up Menu. If you omit this
property, the method sets the Menu data provider to a new, empty XML object.
|
| show | () | method |
public override function show(xShow:Object = null, yShow:Object = null):void
Shows the Menu control. If the Menu control is not visible, this method
places the Menu in the upper-left corner of the parent application at
the given coordinates, resizes the Menu control as needed, and makes
the Menu control visible.
The x and y arguments of the show() method specify the
coordinates of the upper-left corner of the Menu control relative to the
parent application, which is not necessarily the direct parent of the
Menu control.
For example, if the Menu control is in an HBox container which is
nested within a Panel container, the x and y coordinates are
relative to the Application container, not to the HBox container.
xShow:Object (default = null) — Horizontal location of the Menu control's upper-left
corner (optional).
|
|
yShow:Object (default = null) — Vertical location of the Menu control's upper-left
corner (optional).
|