Package com.volantis.mcs.dom2theme.impl.model

Examples of com.volantis.mcs.dom2theme.impl.model.OutputStyledElementList.iterate()


    public void testNullIteratee() {

        OutputStyledElementList elementList = new OutputStyledElementList();

        try {
            elementList.iterate(null);
            fail("iteratee may not be null");
        } catch (IllegalArgumentException e) {
            // expected
        }
    }
View Full Code Here


        OutputStyledElementList elementList = new OutputStyledElementList();

        elementList.add(outputElementMock1);
        elementList.add(outputElementMock2);

        elementList.iterate(iterateeMock);
    }

    /**
     * Test that the iterate method can break out of the iteration midway.
     */
 
View Full Code Here

        OutputStyledElementList elementList = new OutputStyledElementList();

        elementList.add(outputElementMock1);
        elementList.add(outputElementMock2);

        elementList.iterate(iterateeMock);
    }

    /**
     * Test that the add method rejects null elements.
     */
 
View Full Code Here

        OutputStyledElementsFactory factory = new OutputStyledElementsFactory();
        OutputStyledElementList outputElementList =
                factory.createOutputStyledElements(styledDom);
        OutputStyledElementIteratee iteratee = new
            DOMStyleAttributeRewriter();
        outputElementList.iterate(iteratee);
        checkXmlEquals(testName, expectedXml, styledDom);
    }


    /**
 
View Full Code Here

    // javadoc inherited
    public void renderStyleAttributes(Document styledDom) {
        StyledDocumentLogger.logDocument(styledDom);
        OutputStyledElementList elementList = optimizer.optimize(styledDom);       
        elementList.iterate(this.rewriter);
    }
   
}
View Full Code Here

        // Visit all the elements in the DOM and discard the styles from the
        // element.
        document.accept(this);

        list.iterate(this);
    }

    public IterationAction next(OutputStyledElement outputElement) {

        outputStyles = outputElement.getStyles();
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.