|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BookW
A handle to a "workbook" that can be written to file. A book is a top level object within a file.
Each book contains several pages of type PageW.
The write action will happen just before the close, when all users have disconnected.
| Method Summary | |
|---|---|
void |
clearPage(PageW page)
Clear the given page |
int |
closeW()
Disconnect from the book, and force it to close, regardless of any reference count. |
boolean |
deletePage(PageType type,
String pagename)
Delete the page of given type and name from the workbook. |
void |
deletePages(IPage[] pages)
Delete the given pages - for example a results chapter |
BookF |
formatter()
get a handle to a formatter |
void |
legacyTableHeader(boolean b)
Write the table header without column count and key count |
PageW |
page(PageType pageType,
String pageName,
String baseName)
Get a handle to a page, creating it if it does not exist |
void |
relinquishMayWrite()
Relinquish a reference count, and file write if count becomes zero |
void |
renamePage(PageType type,
String oldName,
String newName)
Rename the given page in the book |
void |
retainPages(IPage[] pages)
Keep only the given pages |
void |
write(PageW page,
TableW table)
Force the table to be written from row 0 on the given page |
boolean |
write(TableW table)
Write a single table to its own page, return true if successful. |
boolean |
write(TableW[] tables)
Write an array of tables, in the given order on the given page, return true if successful. |
void |
writeBinary(String fileName,
byte[] data)
Write the given binary block of data to the workbook, using the given fileName as the internal filename for the block in the zip file. |
| Methods inherited from interface com.azalient.api.file.BookR |
|---|
binaryNames, closeR, fileName, hasTypeRow, isConnected, page, pageExists, pages, read, read, read, readBinary, relinquishR, report, tableBounds, tableExists, tableExists, tableNames |
| Method Detail |
|---|
PageW page(PageType pageType,
String pageName,
String baseName)
void clearPage(PageW page)
boolean write(TableW table)
boolean write(TableW[] tables)
int closeW()
BookF formatter()
boolean deletePage(PageType type,
String pagename)
void writeBinary(String fileName,
byte[] data)
void renamePage(PageType type,
String oldName,
String newName)
void relinquishMayWrite()
void write(PageW page,
TableW table)
void retainPages(IPage[] pages)
void deletePages(IPage[] pages)
void legacyTableHeader(boolean b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||