|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CellFunction
Interface for function in Cell
Method Summary | |
---|---|
void |
addColumns(int count,
int index)
Adds columns in the report |
void |
addRows(int count,
int index)
Adds rows in the report |
void |
deleteCell(int row,
int column)
Cleans the cell by row and column |
Cell |
getCell()
Returns the current cell |
Cell |
getCell(int row,
int column)
Returns the Cell by row and column |
Dimension |
getCellSize()
Returns the cell's sizes for the current cell, including spanned cells |
Dimension |
getCellSize(int row,
int column)
Returns the cell's sizes for the cell by row and column, including spanned cells |
int |
getColumn()
Returns a number of the current column |
int |
getColumnCount()
Returns columns' count formed during the current time |
int |
getColumnWidth()
Returns the column's width by the column's number |
int |
getColumnWidth(int column)
Returns the column's width by the column's number |
ReportDataSet |
getDataSet(Object alias)
Returns the ReportDataSet |
String |
getFontName()
Returns the font's family name of the current cell. |
String |
getFontName(int row,
int column)
Returns the font's family name of the cell by row and column. |
ReportPage |
getReportPage()
Returns ReportPage |
String |
getReportTitle()
Returns the title of the sheet |
int |
getRow()
Returns a number of the current row |
int |
getRowCount()
Returns rows' count formed during the current time |
int |
getRowHeight()
Returns the row's height for the current cell |
int |
getRowHeight(int row)
Returns the row's height by the row's number |
String |
getText()
Returns value of the current cell. |
Object |
getValue()
Returns value of the current cell |
Object |
getVarValue(Object name)
Returns a variable's value by name |
Boolean |
getVarValue(Object name,
Boolean def)
Returns the value of the variable as a Boolean by name |
Double |
getVarValue(Object name,
Double def)
Returns the value of the variable as a Double by name |
Integer |
getVarValue(Object name,
Integer def)
Returns the value of the variable as an Integer by name |
void |
removeColumns(int count,
int index)
Removes columns from the report |
void |
removeRows(int count,
int index)
Removes rows from the report |
void |
run()
Runs the current function do not use this method directly |
void |
runFunction(String functionName)
Runs function by functionName in current cell |
void |
runFunction(String functionName,
int row,
int column)
Runs function in cell by row and column by functionName row and column must be less or equal current row and column |
void |
setBackground(Color color)
Sets background color for the current cell |
void |
setBackground(Color color,
int row,
int column)
Sets background color for the cell by row and column |
void |
setBorder(Border line,
boolean[] positions)
Sets the borders at specified positions for the current cell |
void |
setBorder(Border line,
boolean[] positions,
int row,
int column)
Sets the borders at specified positions for the cell by row and column |
void |
setColumnWidth(int width)
Sets the column's width for the current cell |
void |
setColumnWidth(int width,
int column)
Sets the column's width by the column |
void |
setDataSet(ReportDataSet ds)
|
void |
setDataSet(String alias,
Iterable<?> ds)
|
void |
setDataSet(String alias,
Iterator<?> ds)
|
void |
setDataSet(String alias,
Object ds)
|
void |
setDataSet(String alias,
Object[] ds)
|
void |
setDecimal(int d)
Sets decimal position of the numeric value of the current cell. |
void |
setDecimal(int d,
int row,
int column)
Sets decimal position of the numeric value of the cell's by row and column. |
void |
setFont(String fontName,
int style,
int size)
Sets the font's name, style and size for the current cell. |
void |
setFont(String fontName,
int style,
int size,
int row,
int column)
Sets the font's name, style and size for the cell by row and column. |
void |
setForeground(Color color)
Sets foreground color for the current cell |
void |
setForeground(Color color,
int row,
int column)
Sets foreground color for the cell by row and column |
void |
setFormula(Object value)
Sets value as MathML data to the current cell |
void |
setHorizontalAlignment(int align)
Sets the horizontal alignment for the current cell The horizontal alignment is a constant that may be CellStyle.LEFT, CellStyle.RIGHT, CellStyle.CENTER or CellStyle.JUSTIFY |
void |
setHorizontalAlignment(int align,
int row,
int column)
Sets the horizontal alignment for the cell by row and column The horizontal alignment is a constant that may be CellStyle.LEFT, CellStyle.RIGHT, CellStyle.CENTER or CellStyle.JUSTIFY |
void |
setImage(Object value)
Sets value as Image to the current cell |
void |
setImage(Object value,
String format)
Sets value as Image to the current cell |
void |
setReportTitle(String reportTitle)
Sets the sheet's title |
void |
setRowBreak(int row,
boolean b)
Sets the horizontal break of the page after row |
void |
setRowHeight(int height)
Sets the row's height for the current cell |
void |
setRowHeight(int height,
int row)
Sets the row's height by the row |
void |
setStretchPage(boolean stretchPage)
Printing mode that scales the output smaller, if necessary, to fit the report's entire width (and thereby all columns) on each page; Rows are spread across multiple pages as necessary. |
void |
setValue(Object value)
Sets value to the current cell |
void |
setVarValue(Object name,
Object value)
Sets the variable's value |
void |
setVerticalAlignment(int align)
Sets the vertical alignment for the current cell The vertical alignment is a constant that may be CellStyle.TOP, CellStyle.BOTTOM or CellStyle.CENTER |
void |
setVerticalAlignment(int align,
int row,
int column)
Sets the vertical alignment for the cell by row and column The vertical alignment is a constant that may be CellStyle.TOP, CellStyle.BOTTOM or CellStyle.CENTER |
void |
unionCells(int topRow,
int leftColumn,
int bottomRow,
int rightColumn)
Unions cells The first cell of the top-left corner is specified by topRow and leftColumn, the last cell of the bottom-right corner is specified by bottomRow and rightColumn |
Method Detail |
---|
void run() throws ReportException
ReportException
String getText()
Object getValue()
void setValue(Object value)
value
- new valuevoid setImage(Object value)
value
- Image, Icon, byte[], InputStream, Filevoid setImage(Object value, String format)
value
- Image, Icon, byte[], String, InputStream, Fileformat
- image formatvoid setFormula(Object value)
value
- String , File, Reader, InputStreamCell getCell()
Cell getCell(int row, int column)
row
- column
-
int getRow()
int getColumn()
ReportDataSet getDataSet(Object alias)
alias
- the ReportDataSet alias
ReportDataSet
void setDataSet(ReportDataSet ds)
void setDataSet(String alias, Iterable<?> ds)
void setDataSet(String alias, Iterator<?> ds)
void setDataSet(String alias, Object ds)
void setDataSet(String alias, Object[] ds)
Object getVarValue(Object name)
name
- the variable's name
Integer getVarValue(Object name, Integer def)
name
- the variable's namedef
- default value
Double getVarValue(Object name, Double def)
name
- the variable's namedef
- default value
Boolean getVarValue(Object name, Boolean def)
name
- the variable's namedef
- default value
void setVarValue(Object name, Object value)
name
- the variable's namevalue
- new variable's valueString getFontName()
String getFontName(int row, int column)
row
- the cell's rowcolumn
- the cell's column
void setFont(String fontName, int style, int size)
fontName
- the font's namestyle
- the font's style The style argument is an integer bitmask that
may be CellStyle.PLAIN, or a bitwise union of CellStyle.BOLD,
CellStyle.ITALIC, CellStyle.UNDERLINE, CellStyle.STRIKETHROUGHsize
- the font's sizevoid setFont(String fontName, int style, int size, int row, int column)
fontName
- the font's namestyle
- the font's style The style argument is an integer bitmask that
may be CellStyle.PLAIN, or a bitwise union of CellStyle.BOLD,
CellStyle.ITALIC, CellStyle.UNDERLINE, CellStyle.STRIKETHROUGHsize
- the font's sizerow
- the cell's rowcolumn
- the cell's columnvoid setBackground(Color color)
color
- the new background color for the current cellvoid setBackground(Color color, int row, int column)
color
- the new background color for the cellrow
- the cell's rowcolumn
- the cell's columnvoid setForeground(Color color)
color
- the new foreground color for the current cellvoid setForeground(Color color, int row, int column)
color
- the new foreground color for the cellrow
- the cell's rowcolumn
- the cell's columnint getRowHeight()
int getRowHeight(int row)
row
- the row's number
void setRowHeight(int height)
height
- the new row's heightvoid setRowHeight(int height, int row)
height
- the new row's heightrow
- the row's numberint getColumnWidth()
int getColumnWidth(int column)
column
- the column's number
void setColumnWidth(int width)
width
- the new column's widthvoid setColumnWidth(int width, int column)
width
- the new column's widthcolumn
- the column's numbervoid setVerticalAlignment(int align)
align
- the new vertical alignmentvoid setVerticalAlignment(int align, int row, int column)
align
- the new vertical alignmentrow
- the cell's rowcolumn
- the cell's columnvoid setHorizontalAlignment(int align)
align
- the new horizontal alignment for the current cellvoid setHorizontalAlignment(int align, int row, int column)
align
- the new horizontal alignmentrow
- the cell's rowcolumn
- the cell's columnvoid addRows(int count, int index)
count
- count rowsindex
- the specified position in this reportvoid removeRows(int count, int index)
count
- count rowsindex
- the index of the first removing rowvoid addColumns(int count, int index)
count
- count columnsindex
- the specified position in this reportvoid removeColumns(int count, int index)
count
- count columnsindex
- the index of the first removing columnvoid setDecimal(int d)
d
- the new decimal position of the numeric value.void setDecimal(int d, int row, int column)
d
- the new decimal position of the numeric value.row
- the cell's rowcolumn
- the cell's columnvoid setRowBreak(int row, boolean b)
row
- the row's numberb
- a boolean value, where true sets the page break and false
remove itString getReportTitle()
void setReportTitle(String reportTitle)
reportTitle
- new sheet's titlevoid setBorder(Border line, boolean[] positions)
line
- the borderpositions
- boolean values, where true sets border, otherwise does
nothing. Position's index can be from Border.LINE_LEFT to
Border.LINE_HMIDDLEvoid setBorder(Border line, boolean[] positions, int row, int column)
line
- the borderpositions
- positions - boolean values, where true sets border, otherwise
does nothing. Position's index can be from Border.LINE_LEFT to
Border.LINE_HMIDDLErow
- the row's numbercolumn
- the column's numbervoid deleteCell(int row, int column)
row
- the row's numbercolumn
- the column's numberDimension getCellSize()
Dimension getCellSize(int row, int column)
row
- then row's numbercolumn
- the column's number
int getRowCount()
int getColumnCount()
void unionCells(int topRow, int leftColumn, int bottomRow, int rightColumn)
topRow
- the top row of the unionleftColumn
- the left column of the unionbottomRow
- the bottom row of the unionrightColumn
- the right column of the unionvoid setStretchPage(boolean stretchPage)
stretchPage
- if true sets printing mode in FIT_WIDTH otherwise in NORMALJTable.PrintMode
void runFunction(String functionName) throws ReportException
functionName
- function name
ReportException
void runFunction(String functionName, int row, int column) throws ReportException
functionName
- the function's namerow
- the row's numbercolumn
- the column's number
ReportException
ReportPage getReportPage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |