This is a generic implementation of the Component interface that allows the user to output an arbitrary string (content).
are the basic units that can be displayed on the screen. The main method
- Components
which renders the component on the screen.
- render()
Located in /harmoni/core/GUIManager/Component.class.php (line 21)
ComponentInterface | --Component
Class | Description |
---|---|
Blank |
This is a simple implementation of a Blank component. Blank components do not have any content and naturally have their type set to . |
Block | This is a simple implementation of a Block component. Block components are very simple, and in reality do not differ much from the generic component. |
Footer |
Footer components are identical to Block components with the only exception that their type is set to . |
Header |
Header components are identical to Block components with the only exception that their type is set to . |
Heading |
Heading components are identical to Block components with the only exception that their type is set to . |
MenuItem |
components are a direct implementation of the |
MenuItemHeading |
components are a direct implementation of the interface. Their functionality is limited to having display names. |
MenuItemLink |
The class is an extension of the interface adding support for attaching extra data like URL, target window, an access key (shortcut), a toolTip, etc. |
UnstyledBlock | This is a simple implementation of a Block component. Block components are very simple, and in reality do not differ much from the generic component. |
Container |
This is a generic implementation that should be sufficient for all means and purposes. |
The content of this component.
The index of this component. The index has no semantic meaning:
you can think of the index as 'level' of the component. Alternatively, the index could serve as means of distinguishing between components with the same type. Most often one would use the index in conjunction with the
and
- getStylesForComponentType()
methods.
- addStyleForComponentType()
This is an array of the style collections that have been applied to this component.
The constructor.
would do.
- addStyle()
method. If
- render()
, then the component will have no content.
- null
and
- getStylesForComponentType()
methods.
- addStyleForComponentType()
Adds a new
to this component. The component
can have 0 or more style collections attached; each of the latter will affect the appearance of the component. The uniqueness of the collections is enforce by their selector (i.e., you can't have two collections with the same selector). If a style collection has been registered with the Theme for this Component's type and level, then the new style collection will take precedence.
to add to this component.
to this component. The component
Returns the index of this component. The index has no semantic meaning:
you can think of the index as 'level' of the component. Alternatively, the index could serve as means of distinguishing between components with the same type. Most often one would use the index in conjunction with the
and
- getStylesForComponentType()
Theme methods.
- addStyleForComponentType()
Returns any post HTML code that needs to be printed. This method should be called at the end of
.
- render()
.
- render()
Returns any pre HTML code that needs to be printed. This method should be called at the beginnig of
.
- render()
.
- render()
Returns the style collection with the specified selector.
Returns all style collections for this component.
Returns the type of this component.
Remove the given StyleCollection from this Component.
Renders the component on the screen.
Set post HTML code that needs to surround this compontent. This is used to properly nest form-tags around tables/divs to generate valid XHTML.
Set pre HTML code that needs to surround this compontent. This is used to properly nest form-tags around tables/divs to generate valid XHTML.
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:06 -0400 by phpDocumentor 1.3.0RC3