Package com.volantis.styling.impl.functions.counter

Examples of com.volantis.styling.impl.functions.counter.CounterFormatter.formatAsStyleValue()


     * @throws Exception
     */
    public void testReturnsStyleInteger() throws Exception {

        CounterFormatter formatter = new DecimalFormatter();
        StyleValue result = formatter.formatAsStyleValue(
                ListStyleTypeKeywords.DECIMAL, 4);
        assertTrue("Must be StyleInteger", result instanceof StyleInteger);
    }
}
View Full Code Here


        int counterValue = context.getCounterValue(counterName);

        CounterFormatter formatter = formatterSelector.selectFormatter(
                formatStyle, counterValue);

        StyleValue result = formatter.formatAsStyleValue(formatStyle, counterValue);

        return result;
    }
}
/*
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.