Package com.volantis.styling.impl.functions

Examples of com.volantis.styling.impl.functions.CounterFunction


     * Get a CSS counter() function instance.
     *
     * @return A CSSFunction for the counter() function
     */
    private StylingFunction getFunction() {
        return new CounterFunction();
    }
View Full Code Here


        // =====================================================================
        //   Test Expectations
        // =====================================================================

        StylingFunction function = new CounterFunction(formatterSelectorMock);

        List functionArgs = new ArrayList();
        functionArgs.add(getCounterIdentifier("hippopotamus"));
        functionArgs.add(ListStyleTypeKeywords.LOWER_ALPHA);

        StyleValue functionValue =
                function.evaluate(evaluationContextMock,
                        "counter", functionArgs);
        assertSame(result, functionValue);
    }
View Full Code Here

    private void initialiseFunctionResolvers() {
        FunctionResolverBuilder builder =
                StylingFactory.getDefaultInstance().
                createFunctionResolverBuilder();
        builder.addFunction("attr", new AttrFunction());
        builder.addFunction("counter", new CounterFunction());
        builder.addFunction("counters", new CountersFunction());
        functionResolvers.add(builder.getResolver());
    }
View Full Code Here

TOP

Related Classes of com.volantis.styling.impl.functions.CounterFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.