Class CSSStyle


  • public class CSSStyle
    extends java.lang.Object
    Class used to hold a single definition of a CSS style, e.g. "color" or multiple ones like "margin" that has top/bottom/left/right.
    Author:
    Christopher Mindus
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      java.lang.StringcssName
      The CSS name for HTML with dashes, e.g.
      java.lang.StringjsName
      The CSS name for JavaScript, e.g.
      java.lang.Stringvalue
      The CSS value.
    • Constructor Summary

      Constructors 
      ConstructorDescription
      CSSStyle​(java.lang.String cssName, java.lang.String value)
      Constructor for a single value.
      CSSStyle​(java.lang.String cssName, java.lang.String item, java.lang.String value)
      Constructor for multiple items, e.g.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • jsName

        public final java.lang.String jsName
        The CSS name for JavaScript, e.g. borderLeftColor.
      • cssName

        public final java.lang.String cssName
        The CSS name for HTML with dashes, e.g. border-Left-Color.
      • value

        public final java.lang.String value
        The CSS value.
    • Constructor Detail

      • CSSStyle

        public CSSStyle​(java.lang.String cssName,
                        java.lang.String value)
        Constructor for a single value.
        Parameters:
        cssName - The CSS name (used to set JavaScript members, e.g. "backgroundColor" and not "background-color").
        value - The value.
      • CSSStyle

        public CSSStyle​(java.lang.String cssName,
                        java.lang.String item,
                        java.lang.String value)
        Constructor for multiple items, e.g. border-Color
        Parameters:
        cssName - The CSS name (used to set JavaScript members, e.g. "backgroundColor" and not "background-color").
        item - The item name, e.g. Left.
        value - The value.