Package test.shared

Source Code of test.shared.TestBaseHTMLDocument

/*
* TestBaseHTMLDocument.java
*
* Created on 18 de diciembre de 2006, 21:03
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/

package test.shared;

import java.io.Serializable;
import org.itsnat.core.html.ItsNatHTMLDocument;
import org.w3c.dom.Element;
import org.w3c.dom.html.HTMLDocument;

/**
*
* @author jmarranz
*/
public class TestBaseHTMLDocument implements Serializable
{
    protected ItsNatHTMLDocument itsNatDoc;

    /**
     * Creates a new instance of TestBaseHTMLDocument
     */
    public TestBaseHTMLDocument(ItsNatHTMLDocument itsNatDoc)
    {
        this.itsNatDoc = itsNatDoc;
    }

    public void outText(String msg)
    {
        HTMLDocument doc = (HTMLDocument)itsNatDoc.getDocument();
        Element parent = doc.getElementById("logId");
        parent.appendChild(doc.createTextNode(msg)); // Para que se vea
    }

}
TOP

Related Classes of test.shared.TestBaseHTMLDocument

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.