Example #1
0
 public String[] getSheetNames() {
   List<OdfTable> list = document.getTableList();
   int nrSheets = list.size();
   String[] names = new String[nrSheets];
   for (int i = 0; i < nrSheets; i++) {
     names[i] = list.get(i).getTableName();
   }
   return names;
 }
Example #2
0
 public KSheet getSheet(int sheetNr) {
   OdfTable table = document.getTableList().get(sheetNr);
   if (table == null) return null;
   return new OdfSheet(table);
 }
Example #3
0
 public int getNumberOfSheets() {
   return document.getTableList().size();
 }
Example #4
0
 @Override
 public KSheet getSheet(String sheetName) {
   OdfTable table = document.getTableByName(sheetName);
   if (table == null) return null;
   return new OdfSheet(table);
 }
Example #5
0
 public String getSheetName(int sheetNr) {
   OdfTable table = document.getTableList().get(sheetNr);
   if (table == null) return null;
   return table.getTableName();
 }