private void updateMergeMetaData(final int rowIndex, final int columnIndex, final int minRowIndex, final int maxRowIndex) { //Find the cell's current value final GridRow currentRow = gridData.getRow(rowIndex); final GridCell<?> currentRowCell = currentRow.getCells().get(columnIndex); //Find minimum row with a cell containing the same value as that being updated final int minBlockRowIndex = findMinRowIndex(rowIndex, columnIndex, minRowIndex, currentRowCell); //Find maximum row with a cell containing the same value as that being updated final int maxBlockRowIndex = findMaxRowIndex(rowIndex, columnIndex, maxRowIndex, currentRowCell); //Update merge meta-data updateMergeMetaData(minBlockRowIndex, maxBlockRowIndex, columnIndex); }
private void updateMergeMetaData(final int rowIndex, final int columnIndex, final int minRowIndex, final int maxRowIndex) { //Find the cell's current value final GridRow currentRow = gridData.getRow(rowIndex); final GridCell<?> currentRowCell = currentRow.getCells().get(columnIndex); //Find minimum row with a cell containing the same value as that being updated final int minBlockRowIndex = findMinRowIndex(rowIndex, columnIndex, minRowIndex, currentRowCell); //Find maximum row with a cell containing the same value as that being updated final int maxBlockRowIndex = findMaxRowIndex(rowIndex, columnIndex, maxRowIndex, currentRowCell); //Update merge meta-data updateMergeMetaData(minBlockRowIndex, maxBlockRowIndex, columnIndex); }
currentRowCell); final int maxRowIndex = findMaxRowIndex(expandMinRowIndex, columnIndex, rows.size(),
currentRowCell); final int maxRowIndex = findMaxRowIndex(expandMinRowIndex, columnIndex, rows.size(),
final int maxBlockRowIndex = findMaxRowIndex(blockEnd, columnIndex, gridData.getRowCount(),
final int maxBlockRowIndex = findMaxRowIndex(blockEnd, columnIndex, gridData.getRowCount(),