Package com.volantis.mcs.dom

Examples of com.volantis.mcs.dom.DOMVisitor


        public void transform(Document document) {
            final Element frames = allocateElement();

            // This visitor generates the grid/cell instance hierarchy from the
            // pseudo markup
            final DOMVisitor gridGenerator = new GridGenerator(frames, this);

            // Generate the hierarchy of Grid/Cell instances needed, hung off
            // this fake cell instance
            gridGenerator.visit(document);

            // Calculate all the dimensions; this aligns rows and columns in
            // size as needed within grids
            calculateDimensions();

            // Calculate the positions of the panes and grid frames
            calculatePosition(1, 1);

            // Convert the pseudo markup into real VDXML
            convertToVdxml(frames);

            // This visitor makes sure that any text blocks found inside a
            // form are moved out to immediately before the form. It also
            // ensures that the HELP_ZONE_ELEMENT appears before any
            // HELP_ELEMENTs. It also inserts next and previous links based on
            // pseudo values.
            // This works on the final real VDXML markup
            DOMVisitor generalFixer = new GeneralFixerVisitor(frames);

            // Finally ensure that forms don't contain any text blocks and the
            // help zone is before any content that could contain help elements
            generalFixer.visit(document);
        }
View Full Code Here


     * @param element the element containing the XDIME generation pseudo
     *                markup that needs transforming; always a {@link
     *                VDXMLConstants#PSEUDO_PANE_ELEMENT}
     */
    public void transform( DOMFactory factory, Element element) {
        DOMVisitor transformer = new XDIMEVisitor();

        BLOCK_TRANSFORMER.transform(factory, element);

        transformer.visit(element);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.dom.DOMVisitor

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.