Class WCssTextRule

java.lang.Object

public class WCssTextRule
extends WCssRule
A CSS rule specified directly using CSS declarations.

See Also:
WCssStyleSheet
  • Nested Class Summary

    Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject

    WObject.FormData
  • Constructor Summary

    Constructors 
    Constructor Description
    WCssTextRule​(java.lang.String selector, java.lang.String declarations)
    Creates a CSS rule with a given selector and declarations.
    WCssTextRule​(java.lang.String selector, java.lang.String declarations, WObject parent)
    Creates a CSS rule with a given selector and declarations.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getDeclarations()
    Returns the declarations.

    Methods inherited from class eu.webtoolkit.jwt.WCssRule

    getSelector, getSheet, modified, remove, setSelector

    Methods inherited from class eu.webtoolkit.jwt.WObject

    addChild, getId, getObjectName, setFormData, setObjectName, tr

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WCssTextRule

      public WCssTextRule​(java.lang.String selector, java.lang.String declarations, WObject parent)
      Creates a CSS rule with a given selector and declarations.
    • WCssTextRule

      public WCssTextRule​(java.lang.String selector, java.lang.String declarations)
      Creates a CSS rule with a given selector and declarations.

      Calls this(selector, declarations, (WObject)null)

  • Method Details

    • getDeclarations

      public java.lang.String getDeclarations()
      Description copied from class: WCssRule
      Returns the declarations.

      This is a semi-colon separated list of CSS declarations.

      Specified by:
      getDeclarations in class WCssRule