Package com.volantis.mcs.dom

Examples of com.volantis.mcs.dom.Element.addTail()


        DTD dtd = builder.buildDTD();

        Element root = domFactory.createElement("root");
        Element normal = domFactory.createElement("normal");
        root.addTail(normal);
        normal.addTail(domFactory.createText("hello"));
        Element ignoreable = domFactory.createElement("ignoreable");
        root.addTail(ignoreable);
        ignoreable.addTail(domFactory.createText("world"));

        checkOutput(dtd, root, "<root><normal>hello</normal>world</root>");
View Full Code Here


        Element normal = domFactory.createElement("normal");
        root.addTail(normal);
        normal.addTail(domFactory.createText("hello"));
        Element ignoreable = domFactory.createElement("ignoreable");
        root.addTail(ignoreable);
        ignoreable.addTail(domFactory.createText("world"));

        checkOutput(dtd, root, "<root><normal>hello</normal>world</root>");
    }
}
View Full Code Here

                element.clearStyles();

                // Remove the br (nee block) and add it to the tail of the
                // previous paragraph.
                element.remove();
                previous.addTail(element);

                // Move the children from the br (nee block) to the
                // previous paragraph.
                element.addChildrenToTail(previous);
View Full Code Here

                newRow.addTail(newCell);

                // Remove the child from its old parent then add it into the
                // new cell
                child.remove();
                newCell.addTail(child);
                previousNotTable = !elementHelper.isTable(child);
                child = parent.getHead();

                while ((child != null) &&
                       previousNotTable &&
View Full Code Here

                       previousNotTable &&
                       !elementHelper.isTable(child)) {
                    // Concatenate all sequential non-table children together
                    // within the same row/cell
                    child.remove();
                    newCell.addTail(child);
                    child = parent.getHead();
                }
            }

            // The parent is now childless. Add the new table in as its
View Full Code Here

        DOMPlaceHolder domPlaceHolder = (DOMPlaceHolder) placeHolder;
        Element style = domPlaceHolder.getElement();

        Text text = style.getDOMFactory().createText();
        text.append(css);
        style.addTail(text);
    }

    /**
     * @param media The media to set.
     */
 
View Full Code Here

        private Element createGotoBlockElement(String next) {
            Element gotoElement = factory.createElement("goto");
            gotoElement.setAttribute("next", '#' + next);
           
            Element blockElement = factory.createElement("block");
            blockElement.addTail(gotoElement);
           
            return blockElement;
        }
       
        /**
 
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.