This is a generic
implementation that should be sufficient for all means and purposes.
The
interface is an extension of the
interface;
are capable of storing multiple sub-
- Containers
and when rendering Containers, all sub-
- Components
will be rendered as well.
- Components
Located in /harmoni/core/GUIManager/Container.class.php (line 24)
ComponentInterface | --Component | --Container
An array storing constraint information for each component. Each element is another array of four elements storing the width, height, horizontal alignment, and vertical alignment of each component.
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 component to this container.
,
, and
. If null, will be ignored.
,
, and
. If null, will be ignored.
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
Add a placeholder and recieve back an id with which to reference it.
This method can be used in conjunction with insertAtPlaceholder() to allow out-of-order addition of components.
Returns the component of this container with the specified id. Ids reflect the order in which components are added. That is, the very first component has an id of 1, the second component has an id of 2, and so forth.
Returns the horizontal alignment for the component of this container with the specified id. Ids reflect the order in which components are added. That is, the very first component has an id of 1, the second component has an id of 2, and so forth.
Returns the vertical alignment for the component of this container with the specified id. Ids reflect the order in which components are added. That is, the very first component has an id of 1, the second component has an id of 2, and so forth.
Returns the height for the component of this container with the specified id. Ids reflect the order in which components are added. That is, the very first component has an id of 1, the second component has an id of 2, and so forth.
Returns the number of components in this container.
Returns the width for the component of this container with the specified id. Ids reflect the order in which components are added. That is, the very first component has an id of 1, the second component has an id of 2, and so forth.
Insert a component at the place of a predefined placeholder that had been created with addPlaceholder().
,
, and
. If null, will be ignored.
,
, and
. If null, will be ignored.
Removes the component with the specified id from this container. Ids reflect the order in which components are added. That is, the very first component has an id of 1, the second component has an id of 2, and so forth.
Renders the component on the screen.
Sets the
of this container
- Layout
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:22:10 -0400 by phpDocumentor 1.3.0RC3