Package org.itsnat.core.domutil

Examples of org.itsnat.core.domutil.ElementTable.moveRow()


        table.setCellValueAt(0,0,"Item 0,0");

        Element cellElem0 = table.getCellElementAt(0,0);
        Element cellElem1 = table.getCellElementAt(1,0);
        Element cellElem2 = table.getCellElementAt(2,0);
        table.moveRow(0,1,1); // Desplaza las dos primeras filas a ser las dos finales
        TestUtil.checkError(table.getCellElementAt(0,0) == cellElem2);
        TestUtil.checkError(table.getCellElementAt(1,0) == cellElem0);
        TestUtil.checkError(table.getCellElementAt(2,0) == cellElem1);
        table.moveRow(1,2,0); // Las deja como estaba
        TestUtil.checkError(table.getCellElementAt(0,0) == cellElem0);
View Full Code Here


        Element cellElem2 = table.getCellElementAt(2,0);
        table.moveRow(0,1,1); // Desplaza las dos primeras filas a ser las dos finales
        TestUtil.checkError(table.getCellElementAt(0,0) == cellElem2);
        TestUtil.checkError(table.getCellElementAt(1,0) == cellElem0);
        TestUtil.checkError(table.getCellElementAt(2,0) == cellElem1);
        table.moveRow(1,2,0); // Las deja como estaba
        TestUtil.checkError(table.getCellElementAt(0,0) == cellElem0);
        TestUtil.checkError(table.getCellElementAt(1,0) == cellElem1);
        TestUtil.checkError(table.getCellElementAt(2,0) == cellElem2);
        TestUtil.checkError(table.getRowCount() == 3);
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.