|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.hssf.HssfTableFormat
public class HssfTableFormat
HssfTableFormat is a class to store the export properties to a excel sheet.
Constructor Summary | |
---|---|
HssfTableFormat()
Default Constructor. |
|
HssfTableFormat(HssfTableFormat hssfTableFormat)
Copy Constructor |
Method Summary | |
---|---|
protected Object |
clone()
|
short |
getBottomBorder()
Get bottom border style. |
HssfTableUtils.CellValueConverter |
getCellValueConverter()
Get the cell value converter to convert the value to string displayed in the target excel sheet. |
StringConverter |
getColumnNameConverter()
Get the column name converter to convert the value to string displayed in the target excel sheet. |
int |
getFirstColumn()
Get the first column in JTable to be exported to excel sheet. |
int |
getFirstRow()
Get the first row in JTable to be exported to excel sheet. |
String |
getHeader()
Get the header in the excel sheet. |
short |
getLeftBorder()
Get left border style. |
int |
getNumberOfColumns()
Get the number of columns in JTable to be exported to excel sheet. |
int |
getNumberOfRows()
Get the number of rows in JTable to be exported to excel sheet. |
HssfTableUtils.POICustomizer |
getPOICustomizer()
Gets the poi customizer to customize the exported sheet. |
short |
getRightBorder()
Get right border style. |
int |
getStartColumn()
Get the start column in the excel sheet to be exported to. |
int |
getStartRow()
Get the start row in the excel sheet to be exported to. |
short |
getTopBorder()
Get top border style. |
boolean |
isAutoSizeColumns()
Get the flag indicating if we should auto resize column width during exporting. |
boolean |
isFreezePanes()
Get the flag indicating whether to set freeze pane in the target excel sheet for header tables. |
boolean |
isGroupExpandable()
Get the flag if the rows should be grouped if there is expandable row in the table. |
boolean |
isIncludePageNumbers()
Get the flag indicating whether to include page number in the excel sheet. |
boolean |
isIncludeTableHeader()
Get the flag indicating if we should export the table header to excel sheet as well. |
boolean |
isPrintFitToPage()
Get the flag indicating whether to set print fit to the page. |
boolean |
isPrintLandscape()
Get the flag indicating whether to print in landscape. |
void |
setAutoSizeColumns(boolean autoSizeColumns)
Set the flag indicating if we should auto resize column width during exporting. |
void |
setBottomBorder(short bottomBorder)
Set bottom border style. |
void |
setCellValueConverter(HssfTableUtils.CellValueConverter cellValueConverter)
Set the cell value converter to convert the value to string displayed in the target excel sheet. |
void |
setColumnNameConverter(StringConverter columnNameConverter)
Set the column name converter to convert the value to string displayed in the target excel sheet. |
void |
setFirstColumn(int firstColumn)
Set the first column in JTable to be exported to excel sheet. |
void |
setFirstRow(int firstRow)
Set the first row in JTable to be exported to excel sheet. |
void |
setFreezePanes(boolean freezePanes)
Set the flag indicating whether to set freeze pane in the target excel sheet for header tables. |
void |
setGroupExpandable(boolean groupExpandable)
Set the flag if the rows should be grouped if there is expandable row in the table. |
void |
setHeader(String header)
Set the header in the excel sheet. |
void |
setIncludePageNumbers(boolean includePageNumbers)
Set the flag indicating whether to include page number in the excel sheet. |
void |
setIncludeTableHeader(boolean includeTableHeader)
Set the flag indicating if we should export the table header to excel sheet as well. |
void |
setLeftBorder(short leftBorder)
Set left border style. |
void |
setNumberOfColumns(int numberOfColumns)
Set the number of columns in JTable to be exported to excel sheet. |
void |
setNumberOfRows(int numberOfRows)
Set the number of rows in JTable to be exported to excel sheet. |
void |
setPOICustomizer(HssfTableUtils.POICustomizer poiCustomizer)
Sets the poi customizer to customize the exported sheet. |
void |
setPrintFitToPage(boolean printFitToPage)
Set the flag indicating whether to set print fit to the page. |
void |
setPrintLandscape(boolean printLandscape)
Set the flag indicating whether to print in landscape. |
void |
setRightBorder(short rightBorder)
Set right border style. |
void |
setStartColumn(int startColumn)
Set the start column in the excel sheet to be exported to. |
void |
setStartRow(int startRow)
Set the start row in the excel sheet to be exported to. |
void |
setTopBorder(short topBorder)
Set top border style. |
String |
toString()
Constructs a String with all attributes in name = value format. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HssfTableFormat(HssfTableFormat hssfTableFormat)
hssfTableFormat
- a HssfTableFormat
objectpublic HssfTableFormat()
Method Detail |
---|
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public short getTopBorder()
public void setTopBorder(short topBorder)
topBorder
- the top border stylepublic short getBottomBorder()
public void setBottomBorder(short bottomBorder)
bottomBorder
- the bottom border stylepublic short getLeftBorder()
public void setLeftBorder(short leftBorder)
leftBorder
- the left border stylepublic short getRightBorder()
public void setRightBorder(short rightBorder)
rightBorder
- the right border stylepublic boolean isAutoSizeColumns()
public void setAutoSizeColumns(boolean autoSizeColumns)
autoSizeColumns
- the flagpublic int getFirstRow()
public void setFirstRow(int firstRow)
firstRow
- the first rowpublic int getFirstColumn()
public void setFirstColumn(int firstColumn)
firstColumn
- the first columnpublic int getNumberOfRows()
public void setNumberOfRows(int numberOfRows)
numberOfRows
- the number of rowspublic int getNumberOfColumns()
public void setNumberOfColumns(int numberOfColumns)
numberOfColumns
- the number of columnspublic int getStartRow()
public void setStartRow(int startRow)
startRow
- the start rowpublic int getStartColumn()
public void setStartColumn(int startColumn)
startColumn
- the start columnpublic boolean isIncludeTableHeader()
public void setIncludeTableHeader(boolean includeTableHeader)
includeTableHeader
- the flagpublic HssfTableUtils.CellValueConverter getCellValueConverter()
public void setCellValueConverter(HssfTableUtils.CellValueConverter cellValueConverter)
cellValueConverter
- the cell value converterpublic HssfTableUtils.POICustomizer getPOICustomizer()
public void setPOICustomizer(HssfTableUtils.POICustomizer poiCustomizer)
poiCustomizer
- the poi customizerpublic StringConverter getColumnNameConverter()
public void setColumnNameConverter(StringConverter columnNameConverter)
columnNameConverter
- the column name converterpublic boolean isPrintLandscape()
public void setPrintLandscape(boolean printLandscape)
printLandscape
- the flagpublic boolean isIncludePageNumbers()
public void setIncludePageNumbers(boolean includePageNumbers)
includePageNumbers
- the flagpublic boolean isPrintFitToPage()
public void setPrintFitToPage(boolean printFitToPage)
printFitToPage
- the flagpublic boolean isFreezePanes()
public void setFreezePanes(boolean freezePanes)
freezePanes
- the flagpublic String getHeader()
public void setHeader(String header)
header
- the header.public boolean isGroupExpandable()
setGroupExpandable(boolean)
public void setGroupExpandable(boolean groupExpandable)
groupExpandable
- the flagpublic String toString()
String
with all attributes in name = value format.
toString
in class Object
String
representation of this object.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |