Examples of moveRow()


Examples of open.dolphin.table.ObjectReflectTableModel.moveRow()

                JTable.DropLocation dropLocation = (JTable.DropLocation) support.getDropLocation();

                toIndex = dropLocation.getRow();
                shouldRemove = dropTable == sourceTable ? true : false;
                if (shouldRemove) {
                    tableModel.moveRow(fromIndex, (toIndex>fromIndex)? --toIndex : toIndex);
                } else {
                    tableModel.addRow(toIndex, dropItem);
                }
                sourceTable.getSelectionModel().setSelectionInterval(toIndex, toIndex);
                return true;
View Full Code Here

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

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

        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.