Package org.itsnat.comp.table

Examples of org.itsnat.comp.table.ItsNatFreeTable


        return "freeTable";
    }

    public ItsNatFreeTable createItsNatFreeTable(Element element,ItsNatTableStructure structure,NameValue[] artifacts,boolean execCreateFilters,ItsNatDocComponentManagerImpl compMgr)
    {
        ItsNatFreeTable comp = null;
        boolean doFilters = hasBeforeAfterCreateItsNatComponentListener(execCreateFilters,compMgr);
        if (doFilters) comp = (ItsNatFreeTable)processBeforeCreateItsNatComponentListener(element,getCompType(),getUseStructureParamArray(structure),artifacts,compMgr);
        if (comp == null)
            comp = new ItsNatFreeTableImpl(element,structure,artifacts,compMgr);
        if (doFilters) comp = (ItsNatFreeTable)processAfterCreateItsNatComponentListener(comp,compMgr);
View Full Code Here


    public void initTable()
    {
        Document doc = itsNatDoc.getDocument();
        HTMLElement tableElem = (HTMLElement)doc.getElementById("freeTableId2");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatFreeTable comp = (ItsNatFreeTable)componentMgr.findItsNatComponent(tableElem);
        initTable(comp,"addRowFreeTableId2","removeRowFreeTableId2","joystickModeFreeTableId2");
    }
View Full Code Here

    public void initTable()
    {
        Document doc = itsNatDoc.getDocument();
        HTMLElement tableElem = (HTMLElement)doc.getElementById("freeTableId");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatFreeTable comp = (ItsNatFreeTable)componentMgr.findItsNatComponent(tableElem);
        initTable(comp,"addRowFreeTableId","removeRowFreeTableId","joystickModeFreeTableId");
    }
View Full Code Here

        ((DefaultTableModel)table.getTableModel()).addColumn("Col 1");
        ((DefaultTableModel)table.getTableModel()).addColumn("Col 2");
        ((DefaultTableModel)table.getTableModel()).addRow(new String[]{"Item 1,1","Item 1,2"});
        ((DefaultTableModel)table.getTableModel()).addRow(new String[]{"Item 2,1","Item 2,2"});

        ItsNatFreeTable freeTable = (ItsNatFreeTable)compMgr.findItsNatComponentById("freeTableId");
        check(freeTable);
        ((DefaultTableModel)freeTable.getTableModel()).addColumn("Col 1");
        ((DefaultTableModel)freeTable.getTableModel()).addColumn("Col 2");
        ((DefaultTableModel)freeTable.getTableModel()).addRow(new String[]{"Item 1,1","Item 1,2"});
        ((DefaultTableModel)freeTable.getTableModel()).addRow(new String[]{"Item 2,1","Item 2,2"});
        // Trees
        ItsNatFreeTree freeTree = (ItsNatFreeTree)compMgr.findItsNatComponentById("freeTreeId");
        check(freeTree);
        ((DefaultTreeModel)freeTree.getTreeModel()).setRoot(new DefaultMutableTreeNode("Free Tree"));
View Full Code Here

TOP

Related Classes of org.itsnat.comp.table.ItsNatFreeTable

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.