Example usage for com.google.common.css.compiler.gssfunctions GssFunctions createUrlNode

List of usage examples for com.google.common.css.compiler.gssfunctions GssFunctions createUrlNode

Introduction

In this page you can find the example usage for com.google.common.css.compiler.gssfunctions GssFunctions createUrlNode.

Prototype

public static CssFunctionNode createUrlNode(String imageUrl, SourceCodeLocation location) 

Source Link

Document

Helper method for implementors of GssFunction to allow the creation of a url entry node in a GSS file.

Usage

From source file:com.google.gwt.resources.gss.ResourceUrlFunction.java

private CssFunctionNode buildUrlNode(String javaExpression, SourceCodeLocation location) {
    CssFunctionNode urlNode = GssFunctions.createUrlNode("", location);
    CssJavaExpressionNode cssJavaExpressionNode = new CssJavaExpressionNode(javaExpression);
    CssFunctionArgumentsNode arguments = new CssFunctionArgumentsNode(
            ImmutableList.<CssValueNode>of(cssJavaExpressionNode));
    urlNode.setArguments(arguments);/*  w ww  .  j av  a  2 s .  c  om*/

    return urlNode;
}