|
||||||||||
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
public class SectionTag
Name: SectionTag
Description: Handler class for the ;lt;section> tag.
Field Summary | |
---|---|
protected com.lowagie.text.Section |
section
The iText section element. |
static String |
TAG_NAME
The item's name. |
protected String |
tocRelevance
The toc relevance. |
Constructor Summary | |
---|---|
SectionTag()
Constructs a SectionTag instance with no specific attributes. |
|
SectionTag(String name)
Constructs a SectionTag instance with specific attributes. |
Method Summary | |
---|---|
void |
addElement(BaseDocumentTag item,
com.lowagie.text.Element element)
Adds a element to the container. |
protected AttributeDefinitionMap |
buildSupportedAttributes()
Gets the list of supported attributes. |
ChildDefinitionMap |
buildSupportedChilds()
Gets the list of supported childs. |
protected AttributeDefinitionMap |
buildSupportedStyleAttributes()
Gets the list of supported style attributes. |
void |
closeItem()
Closes the item. |
protected void |
createSection()
Creates the iText section element. |
String |
getDescription()
Gets a brief description for the item. |
float |
getLeading()
Gets the fixed vertical leading distance. |
float |
getLineSpacing()
Gets the line spacing. |
com.lowagie.text.Section |
getSection()
Gets the section. |
float |
getSpacingAfter()
Getter method for the the property spacingAfter. |
float |
getSpacingBefore()
Getter method for the the property spacingBefore. |
DocumentFont |
getTitleFont()
Getter method for the the property titleFont. |
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. |
boolean |
isStyleable()
Tells whether or not this tag does respect style attributes or not. |
boolean |
isTopLevel()
Tells whether the element container is a top level container or not. |
void |
openItem()
Opens the item. |
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 TAG_NAME
protected com.lowagie.text.Section section
protected String tocRelevance
Constructor Detail |
---|
public SectionTag()
public SectionTag(String name)
name
- The tag name.Method Detail |
---|
public String getDescription()
getDescription
in class BaseDocumentTag
protected AttributeDefinitionMap buildSupportedAttributes()
buildSupportedAttributes
in class BaseElementTag
protected AttributeDefinitionMap buildSupportedStyleAttributes()
buildSupportedStyleAttributes
in class BaseDocumentTag
public ChildDefinitionMap buildSupportedChilds()
buildSupportedChilds
in class BaseDocumentTag
public boolean isStyleable()
isStyleable
in class BaseDocumentTag
true
.public void initialize() throws DocumentHandlerException
initialize
in class BaseElementTag
DocumentHandlerException
- If something went badly wrong.public void openItem() throws DocumentHandlerException
openItem
in class BaseElementTag
DocumentHandlerException
- Thrown in case something went wrong while opening the document item.public void closeItem() throws DocumentHandlerException
closeItem
in class BaseDocumentTag
DocumentHandlerException
- Thrown in case something went wrong while processing the document item.protected void createSection() throws DocumentHandlerException
DocumentHandlerException
- In case the creation of the section failed.public com.lowagie.text.Section getSection()
public void addElement(BaseDocumentTag item, com.lowagie.text.Element element) throws DocumentHandlerException
ElementContainer
addElement
in interface ElementContainer
item
- The document item.element
- The element to be added.
DocumentHandlerException
- If something went wrong when adding the element.ElementContainer.addElement(org.ujac.print.BaseDocumentTag, com.lowagie.text.Element)
public boolean isTopLevel()
isTopLevel
in interface ElementContainer
public float getLeading()
getLeading
in interface CommonAttributesHolder
public float getLineSpacing()
getLineSpacing
in interface CommonAttributesHolder
public float getSpacingBefore()
public float getSpacingAfter()
public DocumentFont getTitleFont()
public com.lowagie.text.Document handleNewPage(com.lowagie.text.Rectangle size, com.lowagie.text.Rectangle margins) throws DocumentHandlerException
handleNewPage
in interface NewPageHandler
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 |