class %ZEN.Component.lookoutMenu
extends tabGroup
This is a specialized type of tabGroup that implements
a "lookout" menu: a set of buttons stacked atop one another,
one for each tab. Clicking on a button makes the contents
of the tab visible beneath the button.
parameter DEFAULTCELLVALIGN = "top";
Subclasses can set this to change default cellVAlign for a group.
parameter DEFAULTENCLOSINGCLASS = "lookoutMenu";
Subclasses can set this to change default enclosingClass used for this
component.
property expandable
as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
Indicates whether this menu supports the ability to expand and contract.
property expanded
as %ZEN.Datatype.boolean [ InitialExpression = 1 ];
Indicates whether this menu is expanded (children visible)
or contracted (children not visible).
property oncontract
as %ZEN.Datatype.eventHandler;
oncontract event handler:
If defined and this menu is expandable, this event is fired just
before the children of this menu are hidden.
property onexpand
as %ZEN.Datatype.eventHandler;
onexpand event handler:
If defined and this menu is expandable, this event is fired just
before the children of this menu are made visible.
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 adjustTabs()
[ Language = javascript ]
Adjust the position of the tabs.
method adjustTabsOffscreen()
[ Language = javascript ]
Adjust the position of tabs that are not currently visible. Note that the properties of width
and height for the component take precidence over the CSS attributes of the same name should
the assigned values differ for any reason.
method getExpanded()
[ Language = javascript ]
Returns the current expanded state of this menu.
method gripClickHandler()
[ Language = javascript ]
onclick handler for expander grip.
method onloadHandler()
[ Language = javascript ]
This client event, if present, is fired when the page is loaded.
method onshowTabHandler(tabno)
[ Language = javascript ]
Class-specific notification that a new tab has been selected.
method reallyAdjustTabs()
[ Language = javascript ]
Adjust the position of the visible tabs.
method setExpanded(flag)
[ Language = javascript ]
Set the expanded state of this menu.
method setProperty(property, value, value2)
[ Language = javascript ]
Set the value of a named property.
method setSize(width, height)
[ Language = javascript ]
Set the height and width of this menu.
This sets the height and width of the enclosing div
that contains the menu. The size values should be integers without
"px" appended to them.
method tabDisabledHandler(tab)
[ Language = javascript ]
Called by tabs of this group to notify that they have
become disabled.