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.interface.php (line 32)
Class | Description |
---|---|
StyleCollection | A StyleCollection is one of the tree building pieces of CSS styles. As the name suggests it handles a collection of StyleProperties. |
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.
Returns the CSS code for this StyleCollection.
Returns the description of this StyleCollection.
Returns the display name of this StyleCollection.
Returns the selector of this StyleCollection.
Returns the StyleProperties of this StyleCollection in a suitable for CSS generation order.
Remove the given StyleProperty from this Style Collection.
Documentation generated on Wed, 19 Sep 2007 10:26:57 -0400 by phpDocumentor 1.3.0RC3