Пример #1
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function FontStyleSC($value = null)
 {
     $options = array("normal", "italic", "oblique");
     $errDescription = "Could not validate the font-style StyleComponent value \"%s\".\n\t\t\t\t\t\t   Allowed values are: " . implode(", ", $options) . ".";
     $displayName = "Font Style";
     $description = "Specifies the font style. Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #2
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function PositionSC($value)
 {
     $options = array("static", "relative", "absolute", "fixed");
     $errDescription = "Could not validate the position StyleComponent value \"%s\".\n\t\t\t\t\t\t   Allowed values are: " . implode(", ", $options) . ".";
     $displayName = "Position";
     $description = "Specifies the position property value. Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #3
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function FontWeightSC($value = null)
 {
     $options = array("100", "200", "300", "400", "500", "600", "700", "800", "900", "normal", "bold", "lighter", "bolder");
     $errDescription = "Could not validate the font-weight StyleComponent value \"%s\".\n\t\t\t\t\t\t   Allowed values are: " . implode(", ", $options) . ".";
     $displayName = "Font Weight";
     $description = "Specifies the font weight (thickness). Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #4
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function FontVariantSC($value = null)
 {
     $options = array("normal", "small-caps");
     $errDescription = "Could not validate the font-variant StyleComponent value \"%s\".\n\t\t\t\t\t\t   Allowed values are: " . implode(", ", $options) . ".";
     $displayName = "Font Variant";
     $description = "Specifies the font variant. This property allows one to\n\t\t\t\t\t\tcreate text composed of capital letters. Allowed values \n\t\t\t\t\t\tare: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #5
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function AttachmentSC($value)
 {
     $options = array("scroll", "fixed");
     $errDescription = "Could not validate the Attachment StyleComponent value \"%s\".\n\t\t\t\t\t\t   Allowed values are: " . implode(", ", $options) . ".";
     $displayName = "Attachment";
     $description = "Specifies the values for CSS property 'attachment'. Allowed values are: \n\t\t\t\t\t\t" . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #6
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function CursorSC($value)
 {
     $options = array("auto", "n-resize", "ne-resize", "e-resize", "se-resize", "s-resize", "sw-resize", "w-resize", "nw-resize", "crosshair", "pointer", "move", "text", "wait", "help", "hand");
     $errDescription = "Could not validate the cursor StyleComponent value \"%s\".\n\t\t\t\t\t\t   Allowed values are: " . implode(", ", $options) . ".";
     $displayName = "Cursor";
     $description = "Specifies the cursor type to use when the pointing device is over\n\t\t\t\t\t    the element . Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #7
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function DisplaySC($value)
 {
     $options = array("none", "inline", "block", "list-item");
     $errDescription = "Could not validate the display StyleComponent value \"%s\".\n\t\t\t\t\t\t   Allowed values are: " . implode(", ", $options) . ".";
     $displayName = "Display";
     $description = "Specifies the display value to use. Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #8
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function RepeatSC($value)
 {
     $options = array("repeat", "repeat-x", "repeat-y", "no-repeat");
     $errDescription = "Could not validate the Repeat StyleComponent value \"%s\".\n\t\t\t\t\t\t   Allowed values are: " . implode(", ", $options) . ".";
     $displayName = "Repeat";
     $description = "Specifies the values for CSS property 'repeat'. Allowed values are: \n\t\t\t\t\t\t" . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #9
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function ClearSC($value)
 {
     $options = array("none", "left", "right", "both");
     $errDescription = "Could not validate the clear StyleComponent value \"%s\". ";
     $errDescription .= "Allowed values are " . implode(", ", $options) . ".";
     $displayName = "Clear";
     $description = "Specifies the clear value. Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #10
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function OverflowSC($value)
 {
     $options = array("visible", "hidden", "scroll", "auto");
     $errDescription = "Could not validate the overflow StyleComponent value \"%s\". ";
     $errDescription .= "Allowed values are " . implode(", ", $options) . ".";
     $displayName = "Overflow";
     $description = "Specifies the overflow property value. Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #11
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function TextDecorationSC($value)
 {
     $options = array("none", "underline", "overline", "line-through", "blink");
     $errDescription = "Could not validate the text-decoration StyleComponent value \"%s\". ";
     $errDescription .= "Allowed values are " . implode(", ", $options) . ".";
     $displayName = "Text Decoration";
     $description = "Specifies the text decoration. Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #12
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function TextTransformSC($value)
 {
     $options = array("none", "capitalize", "uppercase", "lowercase");
     $errDescription = "Could not validate the text-transform StyleComponent value \"%s\". ";
     $errDescription .= "Allowed values are " . implode(", ", $options) . ".";
     $displayName = "Text Transform";
     $description = "Specifies the text transformation. Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function BackgroundAttachmentSC($value)
 {
     $options = array("scroll", "fixed");
     $errDescription = "Could not validate the background-attachment StyleComponent value \"%s\". ";
     $errDescription .= "Allowed values are " . implode(", ", $options) . ".";
     $displayName = "Background Attachment";
     $description = "Specifies the background-attachment value. Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #14
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function TextAlignSC($value)
 {
     $options = array("left", "right", "center", "justify");
     $errDescription = "Could not validate the text-align StyleComponent value \"%s\". ";
     $errDescription .= "Allowed values are " . implode(", ", $options) . ".";
     $displayName = "Text Alignment";
     $description = "Specifies the text alignment. Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #15
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function DirectionSC($value)
 {
     $options = array("ltr", "rtl");
     $errDescription = "Could not validate the direction StyleComponent value \"%s\". ";
     $errDescription .= "Allowed values are " . implode(", ", $options) . ".";
     $displayName = "Direction";
     $description = "Specifies the text direction (left-to-right or right-to-left).\n\t\t\t\t\t\tAllowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #16
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function FloatSC($value)
 {
     $options = array("none", "left", "right");
     $errDescription = "Could not validate the float StyleComponent value \"%s\". ";
     $errDescription .= "Allowed values are " . implode(", ", $options) . ".";
     $displayName = "Float";
     $description = "Specifies whether an element will float left, right, or not float at all. \n\t\t\t\t\t\tAllowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #17
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function BorderStyleSC($value)
 {
     $options = array("none", "dotted", "dashed", "solid", "groove", "ridge", "inset", "outset", "double");
     $errDescription = "Could not validate the border-style StyleComponent value \"%s\". ";
     $errDescription .= "Allowed values are " . implode(", ", $options) . ".";
     $displayName = "Border Style";
     $description = "Specifies the border style. Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #18
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function VisibilitySC($value)
 {
     $options = array("visible", "hidden", "collapse");
     $errDescription = "Could not validate the visiblity StyleComponent value \"%s\". ";
     $errDescription .= "Allowed values are " . implode(", ", $options) . ".";
     $displayName = "Visibility";
     $description = "Specifies the visibility. Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }
Пример #19
0
 /**
  * The constructor.
  * @param string value The value to assign to this SC.
  * @access public
  **/
 function WhiteSpaceSC($value)
 {
     $options = array("normal", "pre", "nowrap");
     $errDescription = "Could not validate the white-space StyleComponent value \"%s\". ";
     $errDescription .= "Allowed values are " . implode(", ", $options) . ".";
     $displayName = "White Space";
     $description = "Specifies the white space property. Allowed values are: " . implode(", ", $options) . ".";
     $rule = RegexValidatorRule::getRuleByArray($options);
     $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
 }