|
||||||||||
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.ListItemTag
public class ListItemTag
Name: ListItemTag
Description: Class handling list-item tags.
Field Summary | |
---|---|
static String |
TAG_NAME
The item's name. |
Constructor Summary | |
---|---|
ListItemTag()
Constructs a ListItemTag instance with no specific attributes. |
Method Summary | |
---|---|
void |
addChunk(BaseDocumentTag item,
com.lowagie.text.Chunk chunk)
Adds the given chunk to the root phrase. |
void |
addChunk(BaseDocumentTag item,
String chunk,
DocumentFont font)
Adds the given chunk to the root phrase. |
void |
addElement(BaseDocumentTag item,
com.lowagie.text.Element element)
Adds a element to the container. |
void |
addSubList(com.lowagie.text.List sublist)
Added by Kiran Adds a sublist to the list-item. |
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. |
void |
flushContent()
Flushes the content buffer. |
String |
getActualContent()
Gets the actual content. |
String |
getDescription()
Gets a brief description for the item. |
float |
getLeading()
Gets the fixed vertical leading distance. |
float |
getLineSpacing()
Gets the line spacing. |
void |
initialize()
Initializes the item. |
boolean |
isStyleable()
Tells whether or not this tag does respect style attributes or not. |
boolean |
isTextBodyAllowed()
Tells whether textual content is allowed for the tag 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.FontHolder |
---|
getFont |
Field Detail |
---|
public static final String TAG_NAME
Constructor Detail |
---|
public ListItemTag()
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 boolean isTextBodyAllowed()
isTextBodyAllowed
in class BaseDocumentTag
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 processing the document item.public String getActualContent()
getActualContent
in class BaseDocumentTag
public void flushContent() throws DocumentHandlerException
flushContent
in class BaseDocumentTag
DocumentHandlerException
- Thrown in case something went wrong while flushing the content buffer.public void closeItem() throws DocumentHandlerException
closeItem
in class BaseDocumentTag
DocumentHandlerException
- Thrown in case something went wrong while processing the document item.public void addChunk(BaseDocumentTag item, String chunk, DocumentFont font) throws DocumentHandlerException
addChunk
in interface PhraseHolder
item
- The document item.chunk
- The chunk to add to the root phrase.font
- The font to use.
DocumentHandlerException
- In case the document processing failed.public void addChunk(BaseDocumentTag item, com.lowagie.text.Chunk chunk)
addChunk
in interface PhraseHolder
item
- The document item.chunk
- The chunk to add to the root phrase.public float getLeading()
getLeading
in interface CommonAttributesHolder
public float getLineSpacing()
getLineSpacing
in interface CommonAttributesHolder
public void addElement(BaseDocumentTag item, com.lowagie.text.Element element) throws DocumentHandlerException
addElement
in interface ElementContainer
item
- The document item.element
- The element to be added.
DocumentHandlerException
- If something went wrong when adding the element.public boolean isTopLevel()
isTopLevel
in interface ElementContainer
public void addSubList(com.lowagie.text.List sublist)
sublist
- The sublist to add.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |