コード例 #1
0
  @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());
    }
  }
コード例 #2
0
  @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());
    }
  }