Examples of updateShorthand()


Examples of com.volantis.mcs.dom2theme.impl.optimizer.BasicShorthandAnalyzer.updateShorthand()

            ThemeFactory.getDefaultInstance().createMutableStyleProperties();

        ShorthandAnalyzer analyzer = new BasicShorthandAnalyzer(
                StyleShorthands.BORDER_LEFT, checkerMock, shorthandSetMock);
        analyzer.analyze(TargetEntity.ELEMENT, inputValues, deviceValuesMock);
        analyzer.updateShorthand(outputValues);

        assertTrue("Should be able to use shorthand",
                analyzer.canUseShorthand());

        // red should be the color overide
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.optimizer.BasicShorthandAnalyzer.updateShorthand()

        analyzer.analyze(TargetEntity.ELEMENT, inputValues, deviceValuesMock);

        assertTrue("Should be able to use shorthand",
                analyzer.canUseShorthand());

        analyzer.updateShorthand(outputValues);

        assertEquals("Shorthand should match:",
                "border-left:red dashed thick !important",
                outputValues.getShorthandValue(
                StyleShorthands.BORDER_LEFT).getStandardCSS());
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.optimizer.ShorthandAnalyzer.updateShorthand()

        for (int i = 0; i < PropertyGroups.EDGE_COUNT; i += 1) {
            ShorthandAnalyzer edgeAnalyzer = analyzer.getEdgeAnalyzer(i);

            if (edgeAnalyzer.canUseShorthand()) {
                edgeAnalyzer.updateShorthand(outputValues, requiredForIndividual, requiredForShorthand);
            }
        }

        individualStrategy.update(shorthandAnalyzer, outputValues, requiredForIndividual, requiredForShorthand);
    }
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.optimizer.ShorthandAnalyzer.updateShorthand()

            ThemeFactory.getDefaultInstance().createMutableStyleProperties();

        ShorthandAnalyzer analyzer = new BasicShorthandAnalyzer(
                StyleShorthands.BORDER_LEFT, checkerMock, shorthandSetMock);
        analyzer.analyze(TargetEntity.ELEMENT, inputValues, deviceValuesMock);
        analyzer.updateShorthand(outputValues);

        assertTrue("Should be able to use shorthand",
                analyzer.canUseShorthand());

        // red should be the color overide
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.optimizer.ShorthandAnalyzer.updateShorthand()

        analyzer.analyze(TargetEntity.ELEMENT, inputValues, deviceValuesMock);

        assertTrue("Should be able to use shorthand",
                analyzer.canUseShorthand());

        analyzer.updateShorthand(outputValues);

        assertEquals("Shorthand should match:",
                "border-left:red dashed thick !important",
                outputValues.getShorthandValue(
                StyleShorthands.BORDER_LEFT).getStandardCSS());
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.optimizer.ShorthandAnalyzer.updateShorthand()

        for (int c = 0; c < BorderAnalyzer.CHARACTERISTIC_COUNT; c += 1) {
            ShorthandAnalyzer characteristicAnalyzer =
                    analyzer.getCharacteristicAnalyzer(c);

            if (characteristicAnalyzer.canUseShorthand()) {
                characteristicAnalyzer.updateShorthand(outputValues,
                        requiredForIndividual, requiredForShorthand);
            }
        }

        individualStrategy.update(shorthandAnalyzer, outputValues,
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.