Class WCssStyleSheet

    • Constructor Detail

      • WCssStyleSheet

        public WCssStyleSheet()
        Creates a new (internal) style sheet.
    • Method Detail

      • addRule

        public WCssTextRule addRule​(java.lang.String selector,
                                    java.lang.String declarations,
                                    java.lang.String ruleName)
        Adds a CSS rule.

        Add a rule using the CSS selector selector, with CSS declarations in declarations. These declarations must be a list separated by semi-colons (;).

        Optionally, you may give a ruleName, which may later be used to check if the rule was already defined.

        See Also:
        isDefined(String ruleName)
      • addRule

        public WCssTemplateRule addRule​(java.lang.String selector,
                                        WCssDecorationStyle style,
                                        java.lang.String ruleName)
        Adds a CSS rule.

        Add a rule using the CSS selector selector, with styles specified in style.

        Optionally, you may give a ruleName, which may later be used to check if the rule was already defined.

        See Also:
        isDefined(String ruleName)
      • addRule

        public WCssRule addRule​(WCssRule rule,
                                java.lang.String ruleName)
        Adds a CSS rule.

        Optionally, you may give a ruleName, which may later be used to check if the rule was already defined. Note: you may not pass the same rule to 2 diffrent applications.

        See Also:
        isDefined(String ruleName)
      • cssText

        public void cssText​(java.lang.StringBuilder out,
                            boolean all)
      • javaScriptUpdate

        public void javaScriptUpdate​(WApplication app,
                                     java.lang.StringBuilder js,
                                     boolean all)