|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PageW
An interface to a writable page, allowing you to set fields on the page
| Field Summary |
|---|
| Fields inherited from interface com.azalient.api.file.Page |
|---|
TYPE_PAGE_BASE_SEP |
| Fields inherited from interface com.azalient.api.a.tables.IPage |
|---|
ZERO |
| Method Summary | |
|---|---|
BookW |
bookW()
Returns a reference to the writable book to which this page belongs |
void |
clear()
Clear the whole page |
boolean |
format(int col,
int row,
CellF format)
Format the given cell with the given format, if formatting is supported. |
PageF |
formatter()
Returns a reference to any formatter for this page, or null if none. |
void |
removeRows(int first,
int last)
Remove the given range of rows from the page, shifting later rows up |
void |
resizeRows(int nrows)
Resize the page to contain the given number of rows. |
boolean |
set(int col,
int row,
Object data)
Set the data in the given field on this page |
boolean |
set(int col,
int row,
Object data,
CellF format)
Set the data in the given field on this page |
void |
writeImage(int col,
int row,
int w,
int h,
File imageFile)
Write an image to the work sheet, if that is supported. |
| Methods inherited from interface com.azalient.api.file.Page |
|---|
baseName, book, columns, get, get, pageName, rows, tableBounds, tableNames |
| Methods inherited from interface com.azalient.api.a.tables.IPage |
|---|
baseName, pageName, pageType |
| Method Detail |
|---|
BookW bookW()
boolean set(int col,
int row,
Object data)
col - the absolute page column numberrow - the absolute page row number (not the row number in the table)data - the data object, of a type in {String, Integer, Double, UTime, Boolean, }
boolean set(int col,
int row,
Object data,
CellF format)
col - the absolute page column numberrow - the absolute page row number (not the row number in the table)data - the data object, of a type in {String, Integer, Double, UTime, Boolean, }format - the format to be used, if the page supports formatting. XLS supports formatting, AZA and CSV do not
void removeRows(int first,
int last)
void clear()
PageF formatter()
boolean format(int col,
int row,
CellF format)
void writeImage(int col,
int row,
int w,
int h,
File imageFile)
col - the absolute page column numberrow - the absolute page row numberw - the width of the image, in pixelsh - the height of the image, in pixelsimageFile - a File pointer to the image, normally a JPEG, GIF or PNG file
UnsupportedOperationException - if images are not supported.void resizeRows(int nrows)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||