Package org.w3c.dom

Examples of org.w3c.dom.Element.cloneNode()


                // copy status
                Element configElement = this.getCopletConfiguration(copletID,
                                                      (Map)theProfile.get(PortalConstants.PROFILE_DEFAULT_COPLETS),
                                                      (Map)theProfile.get(PortalConstants.PROFILE_MEDIA_COPLETS));
                Element configStatus = (Element)DOMUtil.getFirstNodeFromPath(configElement, new String[] {"status"}, false);
                copletNode.appendChild(configStatus.cloneNode(true));

                // clear type information for each status
                Element status = (Element)copletNode.getElementsByTagName("status").item(0);
                NodeList parameters = status.getChildNodes();
                Node    current;
View Full Code Here


                   
                    Element encDataElem =
                        WSSecurityUtil.findElementById(
                            document.getDocumentElement(), xencEncryptedDataId, null
                        );
                    Node clone = encDataElem.cloneNode(true);
                    elem.appendChild(clone);
                    encDataElem.getParentNode().appendChild(elem);
                    encDataElem.getParentNode().removeChild(encDataElem);
                } else {
                    xmlCipher.init(XMLCipher.ENCRYPT_MODE, secretKey);
View Full Code Here

        if (itsNatDocRef != null) // Reload or Back button from feashow.core.referrerExampleResult
        {
            Document docRef = itsNatDocRef.getDocument();

            Element listParentElemRef = docRef.getElementById("messageListId");
            Node contentNode = ItsNatDOMUtil.extractChildren(listParentElemRef.cloneNode(true));
            if (contentNode != null)
            {
                if (ItsNatTreeWalker.hasChildElements(contentNode))
                {
                    ItsNatDOMUtil.removeAllChildren(listParentElem); // Remove the row pattern
View Full Code Here

            {
                ItsNatDocument itsNatDocTarget = request.getItsNatDocument();

                Document doc = itsNatDoc.getDocument();
                Element listParentElem = doc.getElementById("messageListId");
                Node contentNode = ItsNatDOMUtil.extractChildren(listParentElem.cloneNode(true));
                if (contentNode != null)
                {
                    Document docTarget = itsNatDocTarget.getDocument();
                    Element listParentElemTarget = docTarget.getElementById("messageListId");
                    contentNode = docTarget.importNode(contentNode,true);
View Full Code Here

    public void processRequest(ItsNatServletRequest request, ItsNatServletResponse response)
    {
        // Link to Self or Back Button
        Document doc = itsNatDoc.getDocument();
        Element listParentElem = doc.getElementById("messageListId");
        Node contentNode = ItsNatDOMUtil.extractChildren(listParentElem.cloneNode(true));

        ItsNatDocument itsNatDocTarget = request.getItsNatDocument();
        Document docTarget = itsNatDocTarget.getDocument();
        Element listParentElemTarget = docTarget.getElementById("messageListId");
View Full Code Here

        {
            Document docRef = itsNatDocRef.getDocument();

            Element listParentElem = doc.getElementById("messageListId");
            Element listParentElemRef = docRef.getElementById("messageListId");
            Node contentNode = ItsNatDOMUtil.extractChildren(listParentElemRef.cloneNode(true));
            if (contentNode != null)
            {
                contentNode = doc.importNode(contentNode,true);
                listParentElem.appendChild(contentNode);
            }
View Full Code Here

    public void processRequest(ItsNatServletRequest request, ItsNatServletResponse response)
    {
        // Normal navigation or Forward button
        Document doc = itsNatDoc.getDocument();
        Element listParentElem = doc.getElementById("messageListId");
        Node contentNode = ItsNatDOMUtil.extractChildren(listParentElem.cloneNode(true));
        if (contentNode != null)
        {
            ItsNatDocument itsNatDocTarget = request.getItsNatDocument();
            Document docTarget = itsNatDocTarget.getDocument();
View Full Code Here

        int rows = ((Integer)itsNatDoc.getUserValue("rows")).intValue();

        Element elem = (Element)evt.getCurrentTarget();
        Document doc = elem.getOwnerDocument();
        Element pattern = doc.getElementById("row-pattern");
        HTMLElement newRow = (HTMLElement)pattern.cloneNode(true);
        newRow.setAttribute("id","row-" + rows);
        newRow.setAttribute("style","display:block;color:red;");

        HTMLInputElement inputElem = (HTMLInputElement)doc.getElementById("add-row-value");
        newRow.appendChild(doc.createTextNode(rows + " - " + inputElem.getValue()));
View Full Code Here

                // copy status
                Element configElement = this.getSunletConfiguration(sunletID,
                                                      (Map)theProfile.get(Constants.PROFILE_DEFAULT_SUNLETS),
                                                      (Map)theProfile.get(Constants.PROFILE_MEDIA_SUNLETS));
                Element configStatus = (Element)XMLUtil.getFirstNodeFromPath(configElement, new String[] {"status"}, false);
                sunletNode.appendChild(configStatus.cloneNode(true));

                // clear type information for each status
                Element status = (Element)sunletNode.getElementsByTagName("status").item(0);
                NodeList parameters = status.getChildNodes();
                Node    current;
View Full Code Here

                // copy status
                Element configElement = this.getCopletConfiguration(copletID,
                                                      (Map)theProfile.get(PortalConstants.PROFILE_DEFAULT_COPLETS),
                                                      (Map)theProfile.get(PortalConstants.PROFILE_MEDIA_COPLETS));
                Element configStatus = (Element)DOMUtil.getFirstNodeFromPath(configElement, new String[] {"status"}, false);
                copletNode.appendChild(configStatus.cloneNode(true));

                // clear type information for each status
                Element status = (Element)copletNode.getElementsByTagName("status").item(0);
                NodeList parameters = status.getChildNodes();
                Node    current;
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.