A
is a
that stores a number of MenuItem objects. The familiar add/get/remove
methods can be used to manage the
.
- MenuItems
Located in /harmoni/core/GUIManager/Components/Menu.class.php (line 18)
ComponentInterface | --Component | --Container | --Menu
Class | Description |
---|---|
SubMenu | <##> |
This is the id of the menu item that is currently selected.
Inherited from Container
Container::$_components
Container::$_constraints
Container::$_layout
Inherited from Component
Component::$_content
Component::$_id
Component::$_index
Component::$_postHTML
Component::$_preHTML
Component::$_styleCollections
Component::$_type
The constructor.
would do.
- addStyle()
of this container.
- Layout
and
- getStylesForComponentType()
methods.
- addStyleForComponentType()
Adds the given menu item to this container. The only difference from the familiar
method of the Container class is that now explicit checking is performed to make sure that the given component is indeed a
- add()
and not just any component.
- menuItem
Warning: The
method allows the user to add the same instance of an object multiple times. With menus, this is extremely unadvised because the menu might end up with multiple selected menu items at the same time.
- add()
,
, and
. If null, will be ignored.
,
, and
. If null, will be ignored.
Determines whether the
with the given id is selected. Ids reflect the order in which menu items are added. That is, the very first menu item has an id of 1, the second menu item has an id of 2, and so forth.
Selects the
with the given id, and deselects the one that was previoiusly selected. Ids reflect the order in which menu items are added. That is, the very first menu item has an id of 1, the second menu item has an id of 2, and so forth.
Inherited From Container
Container::Container()
Container::add()
Container::addPlaceholder()
Container::getComponent()
Container::getComponentAlignmentX()
Container::getComponentAlignmentY()
Container::getComponentHeight()
Container::getComponents()
Container::getComponentsCount()
Container::getComponentWidth()
Container::getLayout()
Container::insertAtPlaceholder()
Container::remove()
Container::removeAll()
Container::render()
Container::setLayout()
Inherited From Component
Component::Component()
Component::addStyle()
Component::getId()
Component::getIndex()
Component::getPostHTML()
Component::getPreHTML()
Component::getStyle()
Component::getStyles()
Component::getType()
Component::removeStyle()
Component::render()
Component::setId()
Component::setPostHTML()
Component::setPreHTML()
Inherited From ComponentInterface
ComponentInterface::addStyle()
ComponentInterface::getIndex()
ComponentInterface::getPostHTML()
ComponentInterface::getPreHTML()
ComponentInterface::getStyle()
ComponentInterface::getStyles()
ComponentInterface::getType()
ComponentInterface::removeStyle()
ComponentInterface::render()
ComponentInterface::setPostHTML()
ComponentInterface::setPreHTML()
Documentation generated on Wed, 19 Sep 2007 10:24:59 -0400 by phpDocumentor 1.3.0RC3