class %ZEN.Component.menu
extends group, menuCell
Specialized group for defining menus.
parameter DEFAULTGROUPCLASS = "menuTable";
Subclasses can set this to change default css class for a group.
parameter DEFAULTLAYOUT = "horizontal";
Subclasses can set this to change default layout for a group.
property onactivate
as %ZEN.Datatype.eventHandler;
onactivate event handler:
If this menu is a submenu, then this event is fired just
before the submenu is made visible.
property onshowHelp
as %ZEN.Datatype.eventHandler;
onshowHelp event handler:
This event is fired when the user moves the mouse over this
menu item.
property subMenuActive
as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
Internal property used to keep track of state on client
property subMenuLevel
as %ZEN.Datatype.integer(XMLPROJECTION="none",ZENSETTING=0) [ InitialExpression = 0 ];
Internal property used to indicate if this is a submenu
and, if so, how many level deep.
method %DrawHTML()
Static HTML display method: draw the BODY of this component
as HTML.
Subclasses implement this in order to render the static HTML
contents of a component.
method onActionHandler()
[ Language = javascript ]
This callback is invoked just before this menu
(acting as a menuItem) fires its action.
method onEndModalHandler(zindex)
[ Language = javascript ]
Notification that this component is about to stop being modal.
method onItemActionHandler(depth)
[ Language = javascript ]
This callback is invoked just after a menuItem within this
menu fires its action.
depth indicated how many submenu levels down this
event originated. If 1, then it came from *this* menu.
method onItemShowHelpHandler(mode, item)
[ Language = javascript ]
method onShowHelpHandler(mode)
[ Language = javascript ]
This callback is invoked when the mouse moves over (true)
or out of (false) this menu item.
method onStartModalHandler(zindex)
[ Language = javascript ]
Notification that this component is about to become modal.
method showSubMenu()
[ Language = javascript ]
Display the submenu.