Examples of rowAtPoint()


Examples of javax.swing.JTable.rowAtPoint()

                params.put( "node", new ParameterHolder(null) );
            }
            // TF:23/9/07:We need to return the X and Y coordinates with respect to the cell, not the table. Also, we need
            // to change the child to the renderer or editor for that cell.
            Point loc = new Point(X, Y);
            int row = table.rowAtPoint(loc);
            int column = table.columnAtPoint(loc);
            // TF:27/9/07:Made the row and column 1-based indexes instead of 0-based
            params.put( "row", new ParameterHolder(row+1) );
            params.put( "column", new ParameterHolder(column+1) );
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

            // click should be handled by the editor and we shouldn't repost it here.
            boolean postEvent = true;
            if (e.getComponent() instanceof JTable) {
              JTable table = (JTable)e.getComponent();
              int column = table.columnAtPoint(e.getPoint());
              int row = table.rowAtPoint(e.getPoint());
              if (table.isCellEditable(row, column)) {
                postEvent = false;
              }
            }
            if (postEvent && (e.getComponent() instanceof Graphic || e.getComponent().isEnabled())) {
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

        } else {
          // TF:21/01/2009:FTL-5:Made sure that the top row compensated for the viewport if present
            JTable table = (JTable)comp;
            if (table.getParent() instanceof JViewport) {
              JViewport port = (JViewport)table.getParent();
              value = table.rowAtPoint(new Point(0, port.getViewRect().y))+1;
            }
            else {
              //CONV_REM:dc - get the location of the cell in row 0 and column 0 taking into account the header and spacing
              value = table.rowAtPoint(table.getCellRect(0, 0, true).getLocation())+1;
            }
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

              JViewport port = (JViewport)table.getParent();
              value = table.rowAtPoint(new Point(0, port.getViewRect().y))+1;
            }
            else {
              //CONV_REM:dc - get the location of the cell in row 0 and column 0 taking into account the header and spacing
              value = table.rowAtPoint(table.getCellRect(0, 0, true).getLocation())+1;
            }
        }
        return (value < 1 ? 1: value); //CONV_REM:dc - Forte ArrayField.TopRow returns 1 even when empty.
    }
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

            // click should be handled by the editor and we shouldn't repost it here.
            boolean postEvent = true;
            if (e.getComponent() instanceof JTable) {
              JTable table = (JTable)e.getComponent();
              int column = table.columnAtPoint(e.getPoint());
              int row = table.rowAtPoint(e.getPoint());
              if (table.isCellEditable(row, column)) {
                postEvent = false;
              }
            }
            if (postEvent && (e.getComponent() instanceof Graphic || e.getComponent().isEnabled())) {
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

                params.put( "node", new ParameterHolder(null) );
            }
            // TF:23/9/07:We need to return the X and Y coordinates with respect to the cell, not the table. Also, we need
            // to change the child to the renderer or editor for that cell.
            Point loc = new Point(X, Y);
            int row = table.rowAtPoint(loc);
            int column = table.columnAtPoint(loc);
            // TF:27/9/07:Made the row and column 1-based indexes instead of 0-based
            params.put( "row", new ParameterHolder(row+1) );
            params.put( "column", new ParameterHolder(column+1) );
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

        } else {
          // TF:21/01/2009:FTL-5:Made sure that the top row compensated for the viewport if present
            JTable table = (JTable)comp;
            if (table.getParent() instanceof JViewport) {
              JViewport port = (JViewport)table.getParent();
              value = table.rowAtPoint(new Point(0, port.getViewRect().y))+1;
            }
            else {
              //CONV_REM:dc - get the location of the cell in row 0 and column 0 taking into account the header and spacing
              value = table.rowAtPoint(table.getCellRect(0, 0, true).getLocation())+1;
            }
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

              JViewport port = (JViewport)table.getParent();
              value = table.rowAtPoint(new Point(0, port.getViewRect().y))+1;
            }
            else {
              //CONV_REM:dc - get the location of the cell in row 0 and column 0 taking into account the header and spacing
              value = table.rowAtPoint(table.getCellRect(0, 0, true).getLocation())+1;
            }
        }
        return (value < 1 ? 1: value); //CONV_REM:dc - Forte ArrayField.TopRow returns 1 even when empty.
    }
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

        } else {
          // TF:21/01/2009:FTL-5:Made sure that the top row compensated for the viewport if present
            JTable table = (JTable)comp;
            if (table.getParent() instanceof JViewport) {
              JViewport port = (JViewport)table.getParent();
              value = table.rowAtPoint(new Point(0, port.getViewRect().y))+1;
            }
            else {
              //CONV_REM:dc - get the location of the cell in row 0 and column 0 taking into account the header and spacing
              value = table.rowAtPoint(table.getCellRect(0, 0, true).getLocation())+1;
            }
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

              JViewport port = (JViewport)table.getParent();
              value = table.rowAtPoint(new Point(0, port.getViewRect().y))+1;
            }
            else {
              //CONV_REM:dc - get the location of the cell in row 0 and column 0 taking into account the header and spacing
              value = table.rowAtPoint(table.getCellRect(0, 0, true).getLocation())+1;
            }
        }
        return (value < 1 ? 1: value); //CONV_REM:dc - Forte ArrayField.TopRow returns 1 even when empty.
    }
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.