|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.layout.Book
A collection of Page objects, to be passed on to a Renderer. The Book is essentially an object that wraps data and helps manage it. The raw input data resides in a Bellows ListDatum object tree, and is typically treated as read-only data. The RenderTemplate converts the raw Datum objects into generic LayoutArea objects, packs them in Page objects, and places the Page objects back in the Book. At the end of the layout process, the Book contains essentially two copies of the same data: the raw data in the Datum tree, and the sorted, ready-to-render data in an array of Page objects.
| Constructor Summary | |
Book(org.writersforge.bellows.ListDatum data)
Creates a new instance of Book |
|
| Method Summary | |
void |
addPage(Page page)
Appends a new Page object into the Book. |
void |
clearPages()
Removes all current pages. |
Page |
getCurrentPage()
Gets the current page object in this Book. |
int |
getCurrentPageNumber()
Gets the current page number in this Book. |
org.writersforge.bellows.ListDatum |
getData()
Gets the Book's raw input data |
Page |
getPage(int pageNum)
Gets a single processed page. |
Page[] |
getPages()
Gets the array of processed pages. |
java.lang.Object |
getProperty(java.lang.String name)
Returns the value of a generic property. |
void |
removeProperty(java.lang.String name)
Delete all traces of the named property |
void |
setCurrentPageNumber(int pageNum)
Sets the current page number in this Book. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Assigns a value to a generic property. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Book(org.writersforge.bellows.ListDatum data)
data - the raw input data tree| Method Detail |
public Page[] getPages()
public Page getPage(int pageNum)
pageNum - the index number for the Page
public void setCurrentPageNumber(int pageNum)
pageNum - the index of the new current page
java.lang.IllegalArgumentException - if the given page number is not in the
valid range of pages in this Bookpublic int getCurrentPageNumber()
public Page getCurrentPage()
public void clearPages()
public void addPage(Page page)
page - new Page object to appendpublic org.writersforge.bellows.ListDatum getData()
public void setProperty(java.lang.String name,
java.lang.Object value)
name - the name of the Book propertyvalue - the value of the property (the Renderer must be able to
handle objects of the given type)public java.lang.Object getProperty(java.lang.String name)
name - the name of the Book property
public void removeProperty(java.lang.String name)
name - the name of the Book property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||