Class StyleSelectorInterface

Description

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.interface.php,v 1.4 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.interface.php (line 27)


	
			
Direct descendents
Class Description
StyleSelector 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
.
Method Summary
void canBeApplied ()
string getCSS ()
Methods
canBeApplied (line 44)

Determines whether the implementation of this

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

  • access: public
void canBeApplied ()

Redefined in descendants as:
getCSS (line 34)

Returns the CSS code corresponding to this

  1. StyleSelector
.

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

Redefined in descendants as:

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