|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.print.BaseDocumentTag org.ujac.print.tag.BaseElementTag org.ujac.print.tag.SectionTag org.ujac.print.tag.ChapterTag
public class ChapterTag
Name: ChapterTag
Description: Handler class for the chapter tag.
Field Summary | |
---|---|
static String |
PROP_CAPTER_ID
Constant for the property name for the chapter ID. |
static String |
TAG_NAME
The item's name. |
Fields inherited from class org.ujac.print.tag.SectionTag |
---|
section, tocRelevance |
Constructor Summary | |
---|---|
ChapterTag()
Constructs a ChapterTag instance with no specific attributes. |
Method Summary | |
---|---|
protected AttributeDefinitionMap |
buildSupportedAttributes()
Gets the list of supported attributes. |
protected AttributeDefinitionMap |
buildSupportedStyleAttributes()
Gets the list of supported style attributes. |
void |
closeItem()
Processes the item. |
protected void |
createSection()
Creates the iText section element. |
String |
getDescription()
Gets a brief description for the item. |
com.lowagie.text.Document |
handleNewPage(com.lowagie.text.Rectangle size,
com.lowagie.text.Rectangle margins)
Handles a new page request. |
void |
initialize()
Initializes the item. |
void |
openItem()
Opens the item. |
Methods inherited from class org.ujac.print.tag.SectionTag |
---|
addElement, buildSupportedChilds, getLeading, getLineSpacing, getSection, getSpacingAfter, getSpacingBefore, getTitleFont, isStyleable, isTopLevel |
Methods inherited from class org.ujac.print.tag.BaseElementTag |
---|
getElementContainer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ujac.print.StyleHolder |
---|
getStyleAttribute |
Field Detail |
---|
public static final String PROP_CAPTER_ID
public static final String TAG_NAME
Constructor Detail |
---|
public ChapterTag()
Method Detail |
---|
public String getDescription()
getDescription
in class SectionTag
protected AttributeDefinitionMap buildSupportedAttributes()
buildSupportedAttributes
in class SectionTag
protected AttributeDefinitionMap buildSupportedStyleAttributes()
buildSupportedStyleAttributes
in class SectionTag
public void initialize() throws DocumentHandlerException
initialize
in class SectionTag
DocumentHandlerException
- If something went badly wrong.public void openItem() throws DocumentHandlerException
openItem
in class SectionTag
DocumentHandlerException
- Thrown in case something went wrong while processing the document item.protected void createSection() throws DocumentHandlerException
createSection
in class SectionTag
DocumentHandlerException
- In case the creation of the section failed.public void closeItem() throws DocumentHandlerException
closeItem
in class SectionTag
DocumentHandlerException
- Thrown in case something went wrong while processing the document item.public com.lowagie.text.Document handleNewPage(com.lowagie.text.Rectangle size, com.lowagie.text.Rectangle margins) throws DocumentHandlerException
handleNewPage
in interface NewPageHandler
handleNewPage
in class SectionTag
size
- The new document size, null if the size should remain the same.margins
- The new document margins, null if the margins should remain the same.
DocumentHandlerException
- In case something went wrong.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |