Beispiel #1
0
 public int getRowCount() {
   if (reductionSelection == null) {
     return excelSheet.getRows();
   } else {
     return reductionSelection.getRowIndexEnd() - reductionSelection.getRowIndexStart() + 1;
   }
 }
Beispiel #2
0
  public Object getValueAt(int rowIndex, int columnIndex) {
    if (columnIndex == 0) {
      String value = getAnnotationMap().get(rowIndex);
      if (value == null) {
        return AnnotationCellEditor.NONE;
      } else {
        return value;
      }
    }
    columnIndex--;

    if (reductionSelection == null) {
      return excelSheet.getCell(columnIndex, rowIndex).getContents();
    } else {
      return excelSheet
          .getCell(
              columnIndex + reductionSelection.getColumnIndexStart(),
              rowIndex + reductionSelection.getRowIndexStart())
          .getContents();
    }
  }