Examples of OutputStyledElement


Examples of com.volantis.mcs.dom2theme.impl.model.OutputStyledElement

                OutputStyles outputStyles = null;
                Styles styles = element.getStyles();
                if (styles != null) {
                    outputStyles = factory.create(element.getName(), styles);
                }
                OutputStyledElement outputElement =
                        new OutputStyledElement(element, outputStyles);
                outputElementList.add(outputElement);
            }
        };
        DOMWalker walker = new DOMWalker(visitor);
        walker.walk(dom);
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.model.OutputStyledElement

        // Do the test.
        // ==================================================================

        // element cannot be null
        try {
            new OutputStyledElement(null, null);
            fail("element cannot be null");
        } catch (IllegalArgumentException e) {
            // expected
        }
        try {
            new OutputStyledElement(null, outputStylesMock);
            fail("element cannot be null");
        } catch (IllegalArgumentException e) {
            // expected
        }

        // styles can be null
        new OutputStyledElement(elementMock, null);

    }
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.model.OutputStyledElement

        // ==================================================================
        // Do the test.
        // ==================================================================

        OutputStyledElement outputElement = new OutputStyledElement(elementMock,
                outputStylesMock);

        assertEquals("name", outputElement.getName());
    }
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.model.OutputStyledElement

        // ==================================================================
        // Do the test.
        // ==================================================================

        OutputStyledElement outputElement = new OutputStyledElement(elementMock,
                outputStylesMock);

        outputElement.setClass("name");
    }
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.model.OutputStyledElement

        // ==================================================================
        // Do the test.
        // ==================================================================

        OutputStyledElement outputElement = new OutputStyledElement(elementMock,
                outputStylesMock);

        assertSame(outputStylesMock, outputElement.getStyles());

        outputElement.clearStyles();

        assertNull(outputElement.getStyles());
    }
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.model.OutputStyledElement

                // not supported by the device or cssversion.
                emulator.emulate(element, outputStyles);
            }

            // add the OutputStyledElement to the list
            OutputStyledElement outputElement = new OutputStyledElement(element,
                    outputStyles);

            elementList.add(outputElement);

            deviceStylingEngine.endElement(localName);
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.