Class CSSStyle

java.lang.Object
com.iizigo.style.prop.CSSStyle

public class CSSStyle extends 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 Details

    • jsName

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

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

      public final String value
      The CSS value.
  • Constructor Details

    • CSSStyle

      public CSSStyle(String cssName, String value)
      Constructor for a single value.
      Parameters:
      cssName - The CSS name (used to set JavaScript members, e.g. "backgroundColor", "background-color" or complex such as "filter&drop-Shadow").
      value - The value.
    • CSSStyle

      public CSSStyle(String cssName, String item, 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 or complex such as "filter&drop-Shadow".
      value - The value.