Package test.comp.html

Source Code of test.comp.html.TestHTMLTable2

/*
* TestTable.java
*
* Created on 6 de diciembre de 2006, 20:58
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/

package test.comp.html;

import test.comp.*;
import org.itsnat.core.html.ItsNatHTMLDocument;
import org.itsnat.comp.table.ItsNatHTMLTable;
import javax.swing.event.ListSelectionListener;
import javax.swing.event.TableModelListener;
import org.itsnat.comp.ItsNatComponentManager;
import org.w3c.dom.Document;
import org.w3c.dom.events.EventListener;
import org.w3c.dom.html.HTMLTableElement;

/**
*
* @author jmarranz
*/
public class TestHTMLTable2 extends TestTableBase implements EventListener,TableModelListener,ListSelectionListener
{

    /**
     * Creates a new instance of TestTable
     */
    public TestHTMLTable2(ItsNatHTMLDocument itsNatDoc)
    {
        super(itsNatDoc);

        initTable();
    }

    public void initTable()
    {
        Document doc = itsNatDoc.getDocument();
        HTMLTableElement tableElem = (HTMLTableElement)doc.getElementById("tableId2");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLTable comp = (ItsNatHTMLTable)componentMgr.findItsNatComponent(tableElem);
        initTable(comp,"addRowTableId2","removeRowTableId2","joystickModeTableId2");
    }

}
TOP

Related Classes of test.comp.html.TestHTMLTable2

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.