Class StyleSelector

Description

This is a generic

  1. StyleSelector
implementation allowing one to create an arbitrary selector. The syntax is not validated and thus
  1. canBeApplied()
returns
  1. false
.



A

  1. StyleSelector
is an object that enables the user to create and possibly parse CSS selectors.

For more information on CSS selectors, visit the following webpages:
<a href = "http://www.blooberry.com/indexdot/css/index10.htm">Index DOT Css</a>
<a href = "http://www.w3.org/TR/CSS21/selector.html">CSS 2.1 Specification, Chapter 5: Selectors</a>


A

  1. StyleSelector
is a mandatory component of
  1. StyleCollections
. For (an extreme) example, consider the style collection represented by the CSS code:
 div.col1 > *#temp + td.hi#bye {
     margin: 20px;
     border: 1px solid #000;
 }
The string '
  1. div.col1 > *#temp + td.hi#bye
' is the CSS selector.

  • version: $Id: StyleSelector.class.php,v 1.5 2005/02/07 21:38:17 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright &copy; 2005, Middlebury College

Located in /harmoni/core/GUIManager/extensions/StyleSelector.class.php (line 33)

StyleSelectorInterface
   |
   --StyleSelector
Variable Summary
string $_value
Method Summary
StyleSelector StyleSelector (string $value)
void canBeApplied ()
string getCSS ()
Variables
string $_value (line 40)

This is the value of this

  1. StyleSelector
.

  • var: _value
  • access: private
Methods
Constructor StyleSelector (line 47)

The constructor.

  • access: public
StyleSelector StyleSelector (string $value)
  • string $value: value The value of the selector.
canBeApplied (line 66)

Determines whether the implementation of this

  1. StyleSelector
allows
  1. StyleCollections
to be applied to
  1. Components
.

  • access: public
void canBeApplied ()

Redefinition of:
StyleSelectorInterface::canBeApplied()
Determines whether the implementation of this
  1. StyleSelector
allows
  1. StyleCollections
to be applied to
  1. Components
.
getCSS (line 56)

Returns the CSS code corresponding to this

  1. StyleSelector
.

  • return: The CSS code corresponding to this
    1. StyleSelector
    .
  • access: public
string getCSS ()

Redefinition of:
StyleSelectorInterface::getCSS()
Returns the CSS code corresponding to this
  1. StyleSelector
.

Inherited Methods

Inherited From StyleSelectorInterface

StyleSelectorInterface::canBeApplied()
StyleSelectorInterface::getCSS()

Documentation generated on Wed, 19 Sep 2007 10:27:00 -0400 by phpDocumentor 1.3.0RC3