Source for file BorderRightSP.class.php

Documentation is available at BorderRightSP.class.php

  1. <?php
  2.  
  3. require_once(HARMONI."GUIManager/StyleProperty.class.php");
  4. require_once(HARMONI."GUIManager/StyleComponents/LengthSC.class.php");
  5. require_once(HARMONI."GUIManager/StyleComponents/BorderStyleSC.class.php");
  6. require_once(HARMONI."GUIManager/StyleComponents/ColorSC.class.php");
  7.  
  8. /**
  9. * The BorderRightSP represents the 'border-top' StyleProperty.
  10. *
  11. * A StyleProperty (SP) is one of the tree building pieces of CSS styles. It stores
  12. * information about a single CSS style property by storing one or more
  13. * <code>StyleComponents</code>.
  14. *
  15. * The other two CSS styles building pieces are <code>StyleComponents</code> and
  16. * <code>StyleCollections</code>.
  17. *
  18. * @package harmoni.gui.sps
  19. *
  20. * @copyright Copyright &copy; 2005, Middlebury College
  21. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  22. *
  23. * @version $Id: BorderRightSP.class.php,v 1.5 2006/06/02 15:56:07 cws-midd Exp $
  24. */
  25. class BorderRightSP extends StyleProperty {
  26.  
  27. /**
  28. * The constructor.
  29. * @access public
  30. * @param string width The width of the border.
  31. * @param string style The style of the border.
  32. * @param string color The color of the border.
  33. ***/
  34. function BorderRightSP($width, $style, $color) {
  35. $this->StyleProperty("border-right", "Right Border", "This property specifies the right border.");
  36. if (!is_null($width)) $this->addSC(new LengthSC($width));
  37. if (!is_null($style)) $this->addSC(new BorderStyleSC($style));
  38. if (!is_null($color)) $this->addSC(new ColorSC($color));
  39. }
  40.  
  41. }
  42.  
  43. ?>

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