Source for file StyleSelector.interface.php

Documentation is available at StyleSelector.interface.php

  1. <?php
  2.  
  3. /**
  4. * A <code>StyleSelector</code> is an object that enables the user to create and
  5. * possibly parse CSS selectors.
  6. *
  7. * For more information on CSS selectors, visit the following webpages:<br>
  8. * <a href = "http://www.blooberry.com/indexdot/css/index10.htm">Index DOT Css</a><br>
  9. * <a href = "http://www.w3.org/TR/CSS21/selector.html">CSS 2.1 Specification, Chapter 5: Selectors</a><br>
  10. * <br><br> A <code>StyleSelector</code> is a mandatory component of <code>StyleCollections</code>.
  11. * For (an extreme) example, consider the style collection represented by the CSS code:
  12. * <pre>
  13. * div.col1 > *#temp + td.hi#bye {
  14. * margin: 20px;
  15. * border: 1px solid #000;
  16. * }
  17. * </pre>
  18. * The string '<code>div.col1 > *#temp + td.hi#bye</code>' is the CSS selector.
  19. *
  20. * @package harmoni.gui.extensions
  21. *
  22. * @copyright Copyright &copy; 2005, Middlebury College
  23. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  24. *
  25. * @version $Id: StyleSelector.interface.php,v 1.4 2005/02/07 21:38:17 adamfranco Exp $
  26. */
  27. class StyleSelectorInterface {
  28.  
  29. /**
  30. * Returns the CSS code corresponding to this <code>StyleSelector</code>.
  31. * @access public
  32. * @return string The CSS code corresponding to this <code>StyleSelector</code>.
  33. ***/
  34. function getCSS() {
  35. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  36. }
  37. /**
  38. * Determines whether the implementation of this <code>StyleSelector</code>
  39. * allows <code>StyleCollections</code> to be applied to <code>Components</code>.
  40. * @access public
  41. * @return
  42. ***/
  43. function canBeApplied() {
  44. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  45. }
  46. }
  47.  
  48. ?>

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