Package com.volantis.mcs.themes

Examples of com.volantis.mcs.themes.StyleValues


        // =====================================================================
        //   Set Expectations
        // =====================================================================

        StyleValues parentValues = helper.parseDeclarations(
                "font: large FooBar");

        PropertyValues inputValues = helper.parseDeclarations(
                "font: medium FooBar");
View Full Code Here


        // =====================================================================
        //   Set Expectations
        // =====================================================================

        StyleValues parentValues = helper.parseDeclarations(
                "font: large FooBar");

        PropertyValues inputValues = helper.parseDeclarations(
                "font: medium FooBar");
View Full Code Here

            deviceStyles = deviceStylingEngine.startElement(
                                localName, this);
        }

        Styles inputStyles = element.getStyles();
        StyleValues oldParentValues = parentValues;
        if (inputStyles != null) {
            parentValues = inputStyles.getPropertyValues();
        }

        // Process the children.
View Full Code Here

        return new SpecificityCalculatorImpl();
    }

    // Javadoc inherited.
    public Styles createInheritedStyles(Styles parent, StyleKeyword display) {
        StyleValues parentValues;
        Iterator iterator;
        if (parent == null) {
            iterator = StylePropertyDetails.getDefinitions()
                    .stylePropertyIterator();
            parentValues = StylePropertyDetails.getDefinitions()
View Full Code Here

            }
        }

        // Get the parent's properties, if this is the root then use the
        // initial values, otherwise use the parent element's values.
        StyleValues inheritableValues;
        ElementStackFrame parent = elementStack.getCurrentElementStackFrame();

        if (parent == null) {
            inheritableValues = rootValues;
        } else {
View Full Code Here

    // Javadoc inherited.
    public void popPropertyValues(StyleValues propertyValues) {
     
        ElementStackFrame popped = elementStack.popElementStackFrame();
        StyleValues poppedValues = popped.getValues();
        if (poppedValues != propertyValues) {
            throw new IllegalStateException(
                    "Property values being popped " + poppedValues +
                    " do not match expected " + propertyValues);
        }
View Full Code Here

        // Save away the current values of the path, parent value and device
        // styles as they may change during the body of this but need
        // resetting afterwards.
        PseudoStylePath oldPath = pseudoStylePath;
        StyleValues oldParentValues = parentValues;
        DeviceStyles oldDeviceStyles = deviceStyles;

        PseudoStyleEntity entity = nestedStyles.getPseudoStyleEntity();
        boolean valid = false;
        if (entity instanceof PseudoElement) {
View Full Code Here

            // does not have styles. Otherwise if it does not have styles then
            // none of the children should have styles so there is no point
            // in visiting them.
            visitChildren = (element.getParent() == contentRoot);
        } else {
            StyleValues parentValues = getParentValues(element);

            // Before processing the children perform any deferred inheritance.
            transformStyles(styles, parentValues);

            // Visit the children.
View Full Code Here

        styles.iterate(this);
    }

    private StyleValues getParentValues(Element element) {
        Element parent = element.getParent();
        StyleValues parentValues = null;
        if (parent != null) {
            Styles parentStyles = parent.getStyles();
            if (parentStyles != null) {
                parentValues = parentStyles.findPropertyValues();
            }
View Full Code Here

        return parentValues;
    }

    public IterationAction next(NestedStyles nestedStyles) {

        StyleValues parentStyles =
                nestedStyles.getContainer().getPropertyValues();

        transformStyles(nestedStyles, parentStyles);
        return IterationAction.CONTINUE;
    }
View Full Code Here

TOP

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

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.