Package org.itsnat.core.tmpl

Examples of org.itsnat.core.tmpl.ItsNatDocFragmentTemplate


    {
        removeFragment();

        ItsNatDocumentImpl itsNatDoc = getItsNatDocumentImpl();
        ItsNatServlet servlet = itsNatDoc.getItsNatDocumentTemplateImpl().getItsNatServlet();
        ItsNatDocFragmentTemplate docFragDesc = servlet.getItsNatDocFragmentTemplate(name);
        if (docFragDesc == null) throw new ItsNatException("Document fragment not found: " + name,this);
        DocumentFragment docFrag = docFragDesc.loadDocumentFragment(itsNatDoc);

        Element parent = getElement();
        DOMUtilInternal.removeAllChildren(parent); // Por si acaso no est� vac�o
        parent.appendChild(docFrag); // El DocumentFragment queda vac�o (creo)
View Full Code Here


    }

    public void handleEvent(Event evt)
    {
        ItsNatServlet servlet = itsNatDoc.getItsNatDocumentTemplate().getItsNatServlet();
        ItsNatDocFragmentTemplate template = servlet.getItsNatDocFragmentTemplate("test_svg_fragment_2");
        DocumentFragment fragment = template.loadDocumentFragment(itsNatDoc);
        Element rootElem = itsNatDoc.getDocument().getDocumentElement();
        rootElem.appendChild(fragment);
    }
View Full Code Here

        ItsNatDocument itsNatDoc = request.getItsNatDocument();
        Document doc = itsNatDoc.getDocument();

        Element cdListElem = ItsNatTreeWalker.getLastChildElement(doc.getDocumentElement());

        ItsNatDocFragmentTemplate docFragDesc = request.getItsNatServlet().getItsNatDocFragmentTemplate("test_xml_fragment");
        DocumentFragment fragment = docFragDesc.loadDocumentFragment(itsNatDoc);
        doc.getDocumentElement().insertBefore(fragment,cdListElem);

        ElementGroupManager factory = itsNatDoc.getElementGroupManager();
        ElementList discList = factory.createElementList(cdListElem,true);
View Full Code Here

    }

    public void handleEvent(Event evt)
    {
        ItsNatServlet servlet = itsNatDoc.getItsNatDocumentTemplate().getItsNatServlet();
        ItsNatDocFragmentTemplate template = servlet.getItsNatDocFragmentTemplate("test_xul_fragment_2");
        DocumentFragment fragment = template.loadDocumentFragment(itsNatDoc);
        Element rootElem = itsNatDoc.getDocument().getDocumentElement();
        rootElem.appendChild(fragment);
    }
View Full Code Here

TOP

Related Classes of org.itsnat.core.tmpl.ItsNatDocFragmentTemplate

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.