Esempio n. 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;
 }
Esempio n. 2
0
 public KSheet getSheet(int sheetNr) {
   OdfTable table = document.getTableList().get(sheetNr);
   if (table == null) return null;
   return new OdfSheet(table);
 }
Esempio n. 3
0
 public int getNumberOfSheets() {
   return document.getTableList().size();
 }
Esempio n. 4
0
 public String getSheetName(int sheetNr) {
   OdfTable table = document.getTableList().get(sheetNr);
   if (table == null) return null;
   return table.getTableName();
 }