|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.excel.Excel
public class Excel
Allow users to create Excel files from Compiere Data
| Field Summary | |
|---|---|
static short |
CELLSTYLE_HEADER
|
static short |
CELLSTYLE_NONE
|
protected org.apache.poi.hssf.usermodel.HSSFCellStyle |
cellStyleDate
|
protected org.apache.poi.hssf.usermodel.HSSFCellStyle |
cellStyleInteger
|
protected org.apache.poi.hssf.usermodel.HSSFCellStyle |
cellStyleNormal
|
protected org.apache.poi.hssf.usermodel.HSSFCellStyle |
cellStyleNumber
|
static int |
DISPLAY_TYPE_DATE
|
static int |
DISPLAY_TYPE_INTEGER
|
static int |
DISPLAY_TYPE_NUMBER
|
static int |
DISPLAY_TYPE_STRING
|
protected String |
fileName
|
protected FileOutputStream |
fileOut
|
protected org.apache.poi.hssf.usermodel.HSSFDataFormat |
format
|
protected org.apache.poi.hssf.usermodel.HSSFCellStyle |
HEADER
|
protected static CLogger |
s_log
|
protected org.apache.poi.hssf.usermodel.HSSFSheet |
sheet
|
protected org.apache.poi.hssf.usermodel.HSSFWorkbook |
wb
|
| Constructor Summary | |
|---|---|
Excel()
|
|
Excel(File file)
Create Excel by passing in a Java file object |
|
Excel(String fileName)
Create Excel file |
|
| Method Summary | |
|---|---|
void |
close()
Close the Excel file. |
Excel |
createExcel(JTable table)
Export Excel |
void |
createRow(short rowPos,
short cellPos,
Object s,
String str,
short cellStyle,
int displayType)
Create new Row or Cell. |
static Map<Integer,Map> |
Parsing(String fileName)
Lecture d'un fichier Excel |
void |
setFileOutputStream(File f)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static CLogger s_log
public static final short CELLSTYLE_HEADER
public static final short CELLSTYLE_NONE
protected org.apache.poi.hssf.usermodel.HSSFWorkbook wb
protected org.apache.poi.hssf.usermodel.HSSFSheet sheet
protected org.apache.poi.hssf.usermodel.HSSFDataFormat format
protected org.apache.poi.hssf.usermodel.HSSFCellStyle cellStyleNormal
protected org.apache.poi.hssf.usermodel.HSSFCellStyle cellStyleDate
protected org.apache.poi.hssf.usermodel.HSSFCellStyle cellStyleNumber
protected org.apache.poi.hssf.usermodel.HSSFCellStyle cellStyleInteger
protected FileOutputStream fileOut
protected String fileName
protected org.apache.poi.hssf.usermodel.HSSFCellStyle HEADER
public static final int DISPLAY_TYPE_STRING
public static final int DISPLAY_TYPE_NUMBER
public static final int DISPLAY_TYPE_INTEGER
public static final int DISPLAY_TYPE_DATE
| Constructor Detail |
|---|
public Excel(String fileName)
fileName - public Excel(File file)
file - public Excel()
| Method Detail |
|---|
public void setFileOutputStream(File f)
public void close()
public void createRow(short rowPos,
short cellPos,
Object s,
String str,
short cellStyle,
int displayType)
rowPos - Position for the RowcellPos - Position in the Cells - Object to be renderedstr - Object en format String si jamais l'Objet ne peut etre interpretercellStyle - : HEADER or NONEdisplayType - : String/Number/Date
public static Map<Integer,Map> Parsing(String fileName)
throws IOException
IOExceptionpublic Excel createExcel(JTable table)
excel - table -
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||