|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.templates.RenderTemplate
org.writersforge.catalan.templates.GenericTemplate
A configurable template driven by an XML layout template which can transform arbitrary XML inputs into layouts.
| Constructor Summary | |
GenericTemplate()
|
|
| Method Summary | |
protected LayoutArea[] |
buildFlowLayout(Section section,
java.lang.String regionName,
Book book)
Renders a single flow region in the current section, using the data in the Book as an input source. |
protected LayoutArea[] |
buildStaticLayout(Section section,
java.lang.String regionName,
Book book)
Renders a single static region in the current section, using the data in the Book as an input source. |
protected Page |
createNewPage(Book book)
Creates a new Page object, initialized with width, height, and margins appropriate to this template and Book. |
int |
getDefaultPageHeight()
Retrieves the default Page height for this template. |
int |
getDefaultPageWidth()
Retrieves the default Page width for this template. |
protected Section[] |
getSections()
Returns an array of all Section objects associated with this template. |
boolean |
loadTemplate(org.writersforge.bellows.ListDatum root)
Loads the XML layout template. |
boolean |
loadTemplate(java.io.Reader reader)
Loads the XML layout template. |
| Methods inherited from class org.writersforge.catalan.templates.RenderTemplate |
getCurrentPage, getLayout, listToDatumArray, listToLayoutAreaArray, process, renderSection, setCurrentPage, setLayout, sortAreas |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GenericTemplate()
| Method Detail |
public boolean loadTemplate(java.io.Reader reader)
reader - the XML layout template
public boolean loadTemplate(org.writersforge.bellows.ListDatum root)
root - the XML layout template
public int getDefaultPageWidth()
getDefaultPageWidth in class RenderTemplatepublic int getDefaultPageHeight()
getDefaultPageHeight in class RenderTemplateprotected Page createNewPage(Book book)
createNewPage in class RenderTemplatebook - the owning Book object for the new Page
protected Section[] getSections()
getSections in class RenderTemplate
protected LayoutArea[] buildStaticLayout(Section section,
java.lang.String regionName,
Book book)
buildStaticLayout in class RenderTemplatesection - the Section object to renderregionName - the name of the region in this section to processbook - the data source
protected LayoutArea[] buildFlowLayout(Section section,
java.lang.String regionName,
Book book)
buildFlowLayout in class RenderTemplatesection - the Section object to renderregionName - the name of the region in this section to processbook - the data source
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||