/** * Inserts a blank row into this spreadsheet. If the row is out of range * of the rows in the sheet, then no action is taken * * @param row the row to insert */ public void insertRow(int row) { if (!initialized) { initialize(); } enclosingRange.insertRow(row); if (enclosingRange.modified) { modified = true; } for (int i = 0 ; i < ranges.length ; i++) { ranges[i].insertRow(row); if (ranges[i].modified) { modified = true; } } return; }
/** * Inserts a blank row into this spreadsheet. If the row is out of range * of the rows in the sheet, then no action is taken * * @param row the row to insert */ public void insertRow(int row) { if (!initialized) { initialize(); } enclosingRange.insertRow(row); if (enclosingRange.modified) { modified = true; } for (int i = 0 ; i < ranges.length ; i++) { ranges[i].insertRow(row); if (ranges[i].modified) { modified = true; } } return; }