BrightSide Workbench Full Report + Source Code
SpreadsheetWrapper.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2011 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 package org.turro.zkoss.ss;
19 //import org.zkoss.zss.model.impl.ExcelExporter;
20 //import org.zkoss.zss.model.impl.ExcelImporter;
21 
26 public class SpreadsheetWrapper {
27 
28 // private Book book;
29 // private String fileName, comment;
30 // private File file;
31 // private ISaveIt saveIt;
32 // private boolean commented;
33 //
34 // public SpreadsheetWrapper(InputStream is, String fileName, ISaveIt saveIt, boolean commented) {
35 // this.fileName = fileName;
36 // this.saveIt = saveIt;
37 // this.commented = commented;
38 // book = new ExcelImporter().importFromStream(is, fileName);
39 // }
40 //
41 // public SpreadsheetWrapper(File file, ISaveIt saveIt, boolean commented) {
42 // this.file = file;
43 // this.fileName = file.getName();
44 // this.saveIt = saveIt;
45 // this.commented = commented;
46 // book = new ExcelImporter().importFromFile(file);
47 // }
48 //
49 // public SpreadsheetWrapper(String file, ISaveIt saveIt, boolean commented) {
50 // this.file = new File(file);
51 // this.fileName = this.file.getName();
52 // this.saveIt = saveIt;
53 // this.commented = commented;
54 // book = new ExcelImporter().importFromFile(this.file);
55 // }
56 //
57 // public Book getBook() {
58 // return book;
59 // }
60 //
61 // public String getFileName() {
62 // return fileName;
63 // }
64 //
65 // public String getComment() {
66 // return comment;
67 // }
68 //
69 // public void setComment(String comment) {
70 // this.comment = comment;
71 // }
72 //
73 // public boolean isCommented() {
74 // return commented;
75 // }
76 //
77 // public void show() {
78 // ElephantMenu.showEntity(this, "currBook", "@" + fileName, "/WEB-INF/_zul/ss/ss.zul");
79 // }
80 //
81 // public void savoToFile() {
82 // new ExcelExporter().exports(book, file);
83 // }
84 //
85 // public void savoToFile(File file) {
86 // new ExcelExporter().exports(book, file);
87 // }
88 //
89 // public void savoToFile(String file) {
90 // new ExcelExporter().exports(book, file);
91 // }
92 //
93 // public void saveToOuputStream(OutputStream os) {
94 // new ExcelExporter().exports(book, os);
95 // }
96 //
97 // public void save() {
98 // if(saveIt != null) {
99 // saveIt.save(this);
100 // }
101 // }
102 }