The
(SC) is the most basic of the three building pieces
of CSS styles. It combines a CSS property value with a ValidatorRule to ensure that the value follows a certain format.
The other two CSS styles building pieces are
and
- StyleProperties
. To clarify the relationship between these three building pieces, consider the following example:
- StyleCollections
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/StyleComponent.interface.php (line 31)
Class | Description |
---|---|
StyleComponent |
This generic class is the base for all the other . It is up to the user to provide all the necessary data (display name, description, the ValidatorRule, the value of the SC, etc.) |
Returns the description of this StlyeProperty.
Returns the display name of this SC.
Returns the list of options (list of allowed values) of this SC.
Get the value of this SC.
Determines whether this SC has a list of options. If there is a list of options, then the ValidatorRule of this SC would be a ChoiceValidatorRule.
If not, the ValidatorRule could be any ValidatorRule.
This function will return
if the value of this SC is restricted only to the list of options. It will return
- TRUE
, if not.
- FALSE
if the value of this SC is restricted only to the list of options. It will return
- TRUE
, if not.
- FALSE
Sets the value of this SC and validates it using the attached
.
- ValidatorRule
.
- ValidatorRule
Documentation generated on Wed, 19 Sep 2007 10:26:58 -0400 by phpDocumentor 1.3.0RC3