A StyleCollection is one of the tree building pieces of CSS styles. As the name suggests it handles a collection of StyleProperties.
The other two CSS styles building pieces are
and
- StylePropertiy
. To clarify the relationship between these three building pieces, consider the following example:
div { margin: 20px; border: 1px solid #000; }
is a
- div
consisting of 2
:
- StyleProperties
and
- margin
. Each of the latter consists of one or more
- border
. In specific,
- StyleComponents
consists of one
- margin
with the value
, and
- 20px
has three
- border
with values
- StyleComponents
,
- 1px
, and
- solid
correspondingly.
- #000
Located in /harmoni/core/GUIManager/StyleCollection.class.php (line 33)
StyleCollectionInterface | --StyleCollection
Class | Description |
---|---|
A StyleCollection is one of the tree building pieces of CSS styles. As the name suggests it handles a collection of StyleProperties. |
The class selector of this style collection. A class selector is the string that would be included in the 'class' attribute of HTML tags.
The description of this StyleCollection.
The display name of this StyleCollection.
HTML to place around the the component's content.
HTML to place around the the component's content.
The selector of this StyleCollection.
An array of the StyleProperties contained by this StyleCollection.
The constructor.
, it will be ignored, but the collection will not be able to be applied to components.
- null
Adds one StyleProperty to this StyleCollection.
Determines whether this
can be applied to
.
- Components
can be applied to
.
- Components
Returns the class selector of this style collection. A class selector is the string that would be included in the 'class' attribute of HTML tags. One can use this method in order to apply the style collection to an arbitrary component.
Answers the component this style collection acts on ie BLANK, BLOCK, etc.
Returns the CSS code for this StyleCollection.
Returns the description of this StlyeProperty.
Returns the display name of this StyleCollection.
Answers the component this style collection acts on ie BLANK, BLOCK, etc.
Return HTML to nested inside of the component's block. This includes things such as corner images.
See the example below:
Hello world! (this is when my component renders itself)
Return HTML to nested inside of the component's block. This includes things such as corner images.
See the example below:
Hello world! (this is when my component renders itself)
Returns the selector of this StyleCollection.
Returns the StyleProperties of this StyleCollection in a suitable for CSS generation order.
Returns the StyleProperty with the given name
Remove the given StyleProperty from this Style Collection.
Inherited From StyleCollectionInterface
StyleCollectionInterface::addSP()
StyleCollectionInterface::canBeApplied()
StyleCollectionInterface::getClassSelector()
StyleCollectionInterface::getCSS()
StyleCollectionInterface::getDescription()
StyleCollectionInterface::getDisplayName()
StyleCollectionInterface::getSelector()
StyleCollectionInterface::getSPs()
StyleCollectionInterface::removeSP()
Documentation generated on Wed, 19 Sep 2007 10:26:56 -0400 by phpDocumentor 1.3.0RC3