Package com.volantis.styling.properties

Examples of com.volantis.styling.properties.MutableStylePropertySet


                "background-color: red; color: red");

        Styles result = merger.merge(winner, loser);
        assertSame(expectedResult, result);

        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


                "background-color: green; font-size: medium", true);

        Styles result = merger.merge(winner, null);
        assertSame(winner, result);

        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

                "background-color: red; color: red", true);

        Styles result = merger.merge(null, loser);
        assertSame(loser, result);

        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

    public DebugStyles(StylePropertySet interestingProperties,
            boolean onlyExplicitlySpecified,
            boolean explicitlySpecifiedMarked) {

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

        this.interestingProperties = interestingProperties;
        this.onlyExplicitlySpecified = onlyExplicitlySpecified;
View Full Code Here

     * @param logger The underlying logger.
     */
    public DebugStylingWriter(LogDispatcher logger,
                              StylePropertySet interestingProperties) {
        if (interestingProperties == null) {
            MutableStylePropertySet mutable = new MutableStylePropertySetImpl();
            mutable.addAll();
            interestingProperties = mutable;
        }

        this.interestingProperties = interestingProperties;
        this.logger = logger;
View Full Code Here

    public OpenwaveMenuRendererSelectorTestCase() {
        // This is required for Pipeline namespace support in IDEA. Sigh!
        // todo: fix this.
        new Volantis();

        MutableStylePropertySet interestingProperties =
                new MutableStylePropertySetImpl();
        interestingProperties.add(StylePropertyDetails.WHITE_SPACE);
        styledDOMTester = new StyledDOMTester(interestingProperties);
    }
View Full Code Here

        super(name);
        // This is required for Pipeline namespace support in IDEA. Sigh!
        // todo: fix this.
        new Volantis();

        MutableStylePropertySet interestingProperties =
                new MutableStylePropertySetImpl();
        interestingProperties.add(StylePropertyDetails.WHITE_SPACE);
        styledDOMTester = new StyledDOMTester(
                null, interestingProperties, true, false);
    }
View Full Code Here

            new FontOptimizer(propertyClearerChecker, supportedShorthands),
        };

        // Remove all those properties that are handled by shorthand
        // optimizers from the set of individual properties.
        MutableStylePropertySet individualProperties =
                supportedProperties.createMutableStylePropertySet();
        for (int i = 0; i < optimizers.length; i++) {
            ShorthandOptimizer optimizer = optimizers[i];
            optimizer.removeProperties(individualProperties);
        }
View Full Code Here

    private ImmutableStylePropertySet getSupportedProperties(
            PropertyDetailsSet detailsSet) {

        ImmutableStylePropertySet supportedProperties =
                detailsSet.getSupportedProperties();
        MutableStylePropertySet propertySet =
                supportedProperties.createMutableStylePropertySet();

        // CSS 2.1 only supports the content property for ::before and ::after.
        // CSS 3 provides additional support for most selectors but we only
        // support for li::marker from that additonal set.
        //
        // We currently assume that no browsers support content natively and do
        // emulation for the above usages of content well before this point.
        //
        // We assume that any content properties which still exist at this
        // point have been set on unsupported selectors, so we simply remove
        // them. This is required for consistency with CSS 2.1 but also because
        // any content properties which contain mcs-component-uri() will cause
        // MCS to crash during style sheet extraction.
        propertySet.remove(StylePropertyDetails.CONTENT);

        supportedProperties = propertySet.createImmutableStylePropertySet();
        return supportedProperties;
    }
View Full Code Here

                OptimizerHelper.ANY, PropertyStatus.REQUIRED,
                StylePropertyDetails.BORDER_RIGHT_COLOR,
                OptimizerHelper.ANY, PropertyStatus.REQUIRED,
                StylePropertyDetails.BORDER_TOP_COLOR,
                OptimizerHelper.ANY, PropertyStatus.REQUIRED);
        final MutableStylePropertySet propertySet =
                new MutableStylePropertySetImpl(); // number of properties
       
        ShorthandAnalyzer analyzer;
        // check for null default value
        try {
View Full Code Here

TOP

Related Classes of com.volantis.styling.properties.MutableStylePropertySet

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.