Package com.volantis.mcs.dom

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


            createContentTD(domFactory, tr, element);


            // Insert the tr before the node it is replacing in order
            // to ensure that it does not get visited itself.
            tr.insertBefore(element);

            // Removed the element.
            element.remove();
        }
    }
View Full Code Here


                }

                // write out the script element
                final Element scriptElement =
                    protocol.createScriptElement(attributes);
                scriptElement.insertBefore(markerElement);

            }

        } catch (UnregisteredScriptModuleDependencyException e) {
            throw new RuntimeException(e);
View Full Code Here

                            if (nextRow) {
                                // ... then add a br element here to be
                                // consistent with the way that
                                // removeNestedTables works.
                                Element br = factory.createElement("br");
                                br.insertBefore(row);
                            }

                            // Search for nested td elements.
                            Node colNode = row.getHead();
                            while (colNode != null) {
View Full Code Here

                    border.setAttribute(VDXMLConstants.WIDTH_ATTRIBUTE,
                                        Integer.toString(w + (2 * p)));
                    border.setAttribute(VDXMLConstants.HEIGHT_ATTRIBUTE,
                                        Integer.toString(h + (2 * p)));

                    border.insertBefore(pane);
                }

                if (xdimeTransformer != null) {
                    // This must be called after applying geometry but before
                    // converting any pseudo markup into real markup
View Full Code Here

                // collect the attributes
                final ScriptAttributes attributes =
                    assetToAttributes(scriptReference);
                final Element scriptElement =
                    protocol.createScriptElement(attributes);
                scriptElement.insertBefore(markerElement);
            }
        }
        return isNew;
    }
View Full Code Here

                // iterating over the DOM).
                firstChild.remove();

                if (captionSide == CaptionSideKeywords.TOP) {
                    // Move the caption before the table element
                    firstChild.insertBefore(tableElement);
                } else {
                    // Move the caption after the table element
                    firstChild.insertAfter(tableElement);
                }
            }
View Full Code Here

                    // We need to generate a unique id.
                    menuId = generateUniqueId();
                    menu.setAttribute("id", menuId);
                }
                Element blockElement = createGotoBlockElement(menuId);
                blockElement.insertBefore(menu);
               
                // Now we remove all subsequent nodes since these cannot be
                // accessed due to the preceding menu.
                removeSubsequentNodes(menu);
               
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.