Package com.volantis.styling.debug

Examples of com.volantis.styling.debug.DebugStyles


        MutableStylePropertySet set = new MutableStylePropertySetImpl();
        set.add(StylePropertyDetails.BACKGROUND_COLOR);
        set.add(StylePropertyDetails.COLOR);
        set.add(StylePropertyDetails.FONT_SIZE);

        DebugStyles debugStyles = new DebugStyles(set, false);
        String resultCSS = debugStyles.output(result, "");
        assertEquals("{background-color: green; color: red; font-size: medium}",
                resultCSS);
    }
View Full Code Here


        MutableStylePropertySet set = new MutableStylePropertySetImpl();
        set.add(StylePropertyDetails.BACKGROUND_COLOR);
        set.add(StylePropertyDetails.COLOR);
        set.add(StylePropertyDetails.FONT_SIZE);

        DebugStyles debugStyles = new DebugStyles(set, true);
        String resultCSS = debugStyles.output(result, "");
        assertEquals("{background-color: green; font-size: medium}",
                resultCSS);
    }
View Full Code Here

        MutableStylePropertySet set = new MutableStylePropertySetImpl();
        set.add(StylePropertyDetails.BACKGROUND_COLOR);
        set.add(StylePropertyDetails.COLOR);
        set.add(StylePropertyDetails.FONT_SIZE);

        DebugStyles debugStyles = new DebugStyles(set, true);
        String resultCSS = debugStyles.output(result, "");
        assertEquals("{background-color: red; color: red}",
                resultCSS);
    }
View Full Code Here

        // Store the inheritable values so that they are available
        // should nested elements need to inherit values.
        elementStack.setPropertyValues(inheritableValues);

        if (logger.isDebugEnabled()) {
            DebugStyles debugStyles = new DebugStyles(INTERESTING, false, true);
            String debug = "Styled {" + namespace + "} " + localName;
            String value = attributes.getAttributeValue(null, "class");
            if (value != null) {
                debug += " class='" + value + "'";
            }
            value = attributes.getAttributeValue(null, "id");
            if (value != null) {
                debug += " id='" + value + "'";
            }
            debug += " with " + debugStyles.output(styles, "");
           
            logger.debug(debug);
        }
    }
View Full Code Here

            MutableStylePropertySet mutable = new MutableStylePropertySetImpl();
            mutable.addAll();
            interestingProperties = mutable;
        }

        debugStyles = new DebugStyles(interestingProperties, false, true);

        debug = new StringBuffer(1024);

        indent = "";
    }
View Full Code Here

    protected void setUp() throws Exception {
        super.setUp();

        canvasLayout = new CanvasLayout();

        debugStyles = new DebugStyles(FORMAT_STYLING_PROPERTIES, false);
    }
View Full Code Here

    public String getStylesAsString(Styles styles) {
        return debugStyles.output(styles, "");
    }

    public String getStylesAsString(Styles styles, StylePropertySet interesting) {
        return new DebugStyles(interesting, false).output(styles, "");
    }
View Full Code Here

TOP

Related Classes of com.volantis.styling.debug.DebugStyles

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.