예제 #1
0
  @Listen("onCellRightClick = #ss")
  public void onCellRightClick(CellMouseEvent event) {
    StringBuilder info = new StringBuilder();
    info.append("Right-click on cell ")
        .append(Ranges.getCellRefString(event.getRow(), event.getColumn()));

    if (isShowEventInfo(event.getName())) {
      addInfo(info.toString());
    }
  }
예제 #2
0
  @Listen("onCellValidator = #ss")
  public void onCellValidator(CellMouseEvent event) {
    StringBuilder info = new StringBuilder();

    info.append("Validation button clicked ")
        .append(" on cell ")
        .append(Ranges.getCellRefString(event.getRow(), event.getColumn()));

    if (isShowEventInfo(event.getName())) {
      addInfo(info.toString());
    }
  }