@Listen("onAfterSheetNameChange = #ss") public void onSheetNameChange(SheetEvent event) { StringBuilder info = new StringBuilder(); info.append("Rename sheet to ").append(event.getSheetName()); if (isShowEventInfo(event.getName())) { addInfo(info.toString()); } }
@Listen("onAfterSheetOrderChange = #ss") public void onSheetOrderChange(SheetEvent event) { StringBuilder info = new StringBuilder(); Sheet sheet = event.getSheet(); info.append("Reorder sheet : ") .append(event.getSheetName()) .append(" to ") .append(sheet.getBook().getSheetIndex(sheet)); if (isShowEventInfo(event.getName())) { addInfo(info.toString()); } }