Package com.volantis.mcs.themes

Examples of com.volantis.mcs.themes.StyleIdentifier


     * @return The value as a identifier.
     */
    protected StyleIdentifier getArgumentAsIdentifier(
            String functionName, List arguments, int index) {
        StyleValue value = (StyleValue) arguments.get(index);
        StyleIdentifier identifier = null;
        if (value instanceof StyleIdentifier) {
            identifier = (StyleIdentifier) value;
        } else {
            unexpectedType(functionName, index, StyleValueType.IDENTIFIER,
                    value);
View Full Code Here


    public void visit(StylePair value, Object object) {

        // Suck "string, int" out of the pair
        StyleValue first = value.getFirst();
        if (first instanceof StyleIdentifier) {
            StyleIdentifier styleIdentifier = (StyleIdentifier) first;
            String name = styleIdentifier.getName();
            Integer integer = null;

            StyleValue second = value.getSecond();
            if (second instanceof StyleInteger) {
                StyleInteger styleInteger = (StyleInteger) second;
View Full Code Here

     * @param index        The index of the argument.
     * @return The counter name.
     */
    protected String getCounterName(
            String functionName, List arguments, int index) {
        StyleIdentifier identifier = getArgumentAsIdentifier(functionName,
                arguments, index);
        return identifier.getName();
    }
View Full Code Here

    // Javadoc inherited.
    public StyleValue evaluate(
            EvaluationContext context, String name, List arguments) {

        StyleIdentifier identifier =
                getArgumentAsIdentifier(name, arguments, 0);
        String attributeName = identifier.getName();

        String attributeValue = context.getAttributeValue(null, attributeName);
        if (attributeValue == null) {
            attributeValue = "";
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.themes.StyleIdentifier

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.