private void updateMergeMetaData(final int minBlockRowIndex, final int maxBlockRowIndex, final int columnIndex) { for (int i = minBlockRowIndex; i < maxBlockRowIndex; i++) { final GridRow row = gridData.getRow(i); final BaseGridCell cell = ((BaseGridCell) row.getCells().get(columnIndex)); if (cell != null) { cell.setMergedCellCount(0); } updateRowMergedCells(row); } final GridRow row = gridData.getRow(minBlockRowIndex); final BaseGridCell cell = ((BaseGridCell) row.getCells().get(columnIndex)); if (cell != null) { cell.setMergedCellCount(maxBlockRowIndex - minBlockRowIndex); } updateRowMergedCells(row); }
private void updateMergeMetaData(final int minBlockRowIndex, final int maxBlockRowIndex, final int columnIndex) { for (int i = minBlockRowIndex; i < maxBlockRowIndex; i++) { final GridRow row = gridData.getRow(i); final BaseGridCell cell = ((BaseGridCell) row.getCells().get(columnIndex)); if (cell != null) { cell.setMergedCellCount(0); } updateRowMergedCells(row); } final GridRow row = gridData.getRow(minBlockRowIndex); final BaseGridCell cell = ((BaseGridCell) row.getCells().get(columnIndex)); if (cell != null) { cell.setMergedCellCount(maxBlockRowIndex - minBlockRowIndex); } updateRowMergedCells(row); }
public void onDeleteCell(final GridData.Range range, final int columnIndex) { final int minRowIndex = range.getMinRowIndex(); final int maxRowIndex = range.getMaxRowIndex(); for (int i = minRowIndex; i <= maxRowIndex; i++) { final GridRow row = gridData.getRow(i); updateRowMergedCells(row); } updateMergeMetaData(minRowIndex, columnIndex); }
columnIndex); ((BaseGridCell) cell).setMergedCellCount(0); updateRowMergedCells(row); columnIndex); ((BaseGridCell) cell).setMergedCellCount(maxRowIndex - rowIndex); updateRowMergedCells(row);
columnIndex); ((BaseGridCell) cell).setMergedCellCount(0); updateRowMergedCells(row); columnIndex); ((BaseGridCell) cell).setMergedCellCount(maxRowIndex - rowIndex); updateRowMergedCells(row);
public void onDeleteCell(final GridData.Range range, final int columnIndex) { final int minRowIndex = range.getMinRowIndex(); final int maxRowIndex = range.getMaxRowIndex(); for (int i = minRowIndex; i <= maxRowIndex; i++) { final GridRow row = gridData.getRow(i); updateRowMergedCells(row); } updateMergeMetaData(minRowIndex, columnIndex); }
bottomSplitRowCell.setMergedCellCount(maxRowIndex - expandMaxRowIndex); updateRowMergedCells(bottomSplitRow); bottomSplitRow.expand(); if (cell != null) { cell.setMergedCellCount(expandMaxRowIndex - minRowIndex); updateRowMergedCells(row);
bottomSplitRowCell.setMergedCellCount(maxRowIndex - expandMaxRowIndex); updateRowMergedCells(bottomSplitRow); bottomSplitRow.expand(); if (cell != null) { cell.setMergedCellCount(expandMaxRowIndex - minRowIndex); updateRowMergedCells(row);
cell.setMergedCellCount(0); updateRowMergedCells(row); topSplitRowCell.setMergedCellCount(minRowIndex - checkMinRowIndex); updateRowMergedCells(topSplitRow); cell.setMergedCellCount(0); updateRowMergedCells(row); bottomSplitRowCell.setMergedCellCount(checkMaxRowIndex - minRowIndex); updateRowMergedCells(bottomSplitRow);
cell.setMergedCellCount(0); updateRowMergedCells(row); topSplitRowCell.setMergedCellCount(minRowIndex - checkMinRowIndex); updateRowMergedCells(topSplitRow); cell.setMergedCellCount(0); updateRowMergedCells(row); bottomSplitRowCell.setMergedCellCount(checkMaxRowIndex - minRowIndex); updateRowMergedCells(bottomSplitRow);
cell.setMergedCellCount(0); updateRowMergedCells(row); topSplitRowCell.setMergedCellCount(maxRowIndex - checkMinRowIndex); updateRowMergedCells(topSplitRow); cell.setMergedCellCount(0); updateRowMergedCells(row); bottomSplitRowCell.setMergedCellCount(checkMaxRowIndex - maxRowIndex); updateRowMergedCells(bottomSplitRow);
cell.setMergedCellCount(0); updateRowMergedCells(row); topSplitRowCell.setMergedCellCount(maxRowIndex - checkMinRowIndex); updateRowMergedCells(topSplitRow); cell.setMergedCellCount(0); updateRowMergedCells(row); bottomSplitRowCell.setMergedCellCount(checkMaxRowIndex - maxRowIndex); updateRowMergedCells(bottomSplitRow);