final int bottom = rng.getBottomRow();
updateWidget(sheet, left, top, right, bottom);
}
private void onContentChange(SSDataEvent event) {
final Ref rng = event.getRef();
final Worksheet sheet = getSheet(rng);
final int left = rng.getLeftCol();
final int top = rng.getTopRow();
final int right = rng.getRightCol();
int bottom = rng.getBottomRow();
updateWidget(sheet, left, top, right, bottom);
updateCell(sheet, left, top, right, bottom);
final int lastrow = sheet.getLastRowNum();
if (bottom > lastrow) {
bottom = lastrow;
}
org.zkoss.zk.ui.event.Events.postEvent(new CellSelectionEvent(Events.ON_CELL_CHANGE, Spreadsheet.this, sheet, CellSelectionEvent.SELECT_CELLS, left, top, right, bottom));
}