Documentation is available at VerticalAlignSC.class.php
- <?php
- require_once(HARMONI."GUIManager/StyleComponent.class.php");
- require_once(HARMONI."GUIManager/StyleComponents/LengthSC.class.php");
- /**
- * The VerticalAlignSC represents CSS vertical-align values. The allowed values are:
- * <ul style="font-family: monospace;">
- * <li> baseline </li>
- * <li> middle </li>
- * <li> top </li>
- * <li> bottom </li>
- * <li> text-top </li>
- * <li> text-bottom </li>
- * <li> super </li>
- * <li> sub </li>
- * <li> [specific value] - a length value (%, px, in, etc.) </li>
- * </ul>
- * <br /><br />
- * The <code>StyleComponent</code> (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.<br /><br />
- *
- * @package harmoni.gui.scs
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: VerticalAlignSC.class.php,v 1.10 2007/09/04 20:25:23 adamfranco Exp $
- */
- class VerticalAlignSC extends StyleComponent {
- /**
- * The constructor.
- * @param string value The value to assign to this SC.
- * @access public
- ***/
- function VerticalAlignSC($value) {
- $options = array("baseline","middle","top","bottom","text-top","text-bottom",
- "super","sub");
- $errDescription = "Could not validate the vertical-align StyleComponent value \"%s\".
- Allowed values are: ".implode(", ", $options).", or a specific
- value (a length value, i.e. px, in, %, etc.).";
- $rule = CSSLengthValidatorRuleWithOptions::getRule($options);
- $displayName = "Vertical Alignment";
- $description = "Specifies the vertical-align value. Allowed values are:
- ".implode(", ", $options).", or a distance value
- (a length value, i.e. px, in, %, etc.).";
- $this->StyleComponent($value, $rule, $options, false, $errDescription, $displayName, $description);
- }
- }
- ?>
Documentation generated on Wed, 19 Sep 2007 10:27:42 -0400 by phpDocumentor 1.3.0RC3