| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
package org.wiztools.xml2spreadsheet; |
| 8 |
|
|
| 9 |
|
import org.wiztools.xml2spreadsheet.entity.CellEntity; |
| 10 |
|
import org.wiztools.xml2spreadsheet.entity.RowEntity; |
| 11 |
|
import org.wiztools.xml2spreadsheet.entity.SheetEntity; |
| 12 |
|
import org.wiztools.xml2spreadsheet.entity.WorkBookEntity; |
| 13 |
|
import org.wiztools.xml2spreadsheet.exception.OperationException; |
| 14 |
|
import java.util.Calendar; |
| 15 |
|
import java.util.Date; |
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
public interface WorkBookGenerationHandler extends WorkBookCreator{ |
| 22 |
|
public void createWorkBook(WorkBookEntity workBook) throws OperationException; |
| 23 |
|
public void createSheet(SheetEntity sheet) throws OperationException; |
| 24 |
|
public void createRow(RowEntity row, int placement) throws OperationException; |
| 25 |
|
public void createCell(CellEntity cell, short placement) |
| 26 |
|
throws OperationException; |
| 27 |
|
|
| 28 |
|
public void setCellValue(String data) throws OperationException; |
| 29 |
|
public void setCellValue(double data) throws OperationException; |
| 30 |
|
public void setCellValue(boolean data) throws OperationException; |
| 31 |
|
public void setCellValue(Date date) throws OperationException; |
| 32 |
|
public void setCellValue(Calendar date) throws OperationException; |
| 33 |
|
public void setCellFormula(String formula) throws OperationException; |
| 34 |
|
|
| 35 |
|
public void mergeCells(int row1, short col1, int row2, short col2) |
| 36 |
|
throws OperationException; |
| 37 |
|
|
| 38 |
|
public void setColumnWidth(short column, short width) throws OperationException; |
| 39 |
|
} |