|
||||||||||
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.ListTag
public class ListTag
Name: ListTag
Description: A class handling list tags.
Field Summary | |
---|---|
static float |
DEFAULT_SYMBOL_INDENT
The default symbol indentation distance. |
static AttributeDefinition |
LETTERED
Definition of the 'lettered' attribute. |
static AttributeDefinition |
LIST_ITEMSTART
Definition of the 'itemstart' attribute. |
static AttributeDefinition |
LIST_TYPE
Definition of the 'list-type' attribute. |
static AttributeDefinition |
NUMBERED
Definition of the 'numbered' attribute. |
static AttributeDefinition |
SYMBOL_INDENT
Definition of the 'symbol-indent' attribute. |
static String |
TAG_NAME
The item's name. |
static AttributeDefinition |
TYPE
Definition of the 'type' attribute. |
Constructor Summary | |
---|---|
ListTag()
Constructs a ListTag instance with no specific attributes. |
Method Summary | |
---|---|
void |
addItem(com.lowagie.text.ListItem item)
Adds an item to the list. |
void |
addSubList(com.lowagie.text.List sublist)
Adds a sublist to the list. |
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 attributes. |
void |
closeItem()
Closes the item. |
char |
getCharAttribute(String name)
Added by Kiran Gets the value for the given attribute's name. |
String |
getDescription()
Gets a brief description for the item. |
float |
getLineSpacing()
Gets the line spacing. |
char |
getUnicodeChar(String s)
Added by Kiran Creates a char based on the unicode string given. |
void |
initialize()
Initializes the item. |
boolean |
isStyleable()
Tells whether or not this tag does respect style attributes or not. |
void |
openItem()
Opens the item. |
void |
setListSymbol(com.lowagie.text.Chunk symbol)
Sets the list symbol. |
void |
setupList()
Added by Kiran Creates a list based on the type given. |
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 float DEFAULT_SYMBOL_INDENT
public static final AttributeDefinition NUMBERED
public static final AttributeDefinition LETTERED
public static final AttributeDefinition SYMBOL_INDENT
public static final AttributeDefinition LIST_TYPE
public static final AttributeDefinition LIST_ITEMSTART
public static final AttributeDefinition TYPE
public static final String TAG_NAME
Constructor Detail |
---|
public ListTag()
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 processing the document item.public char getCharAttribute(String name) throws TagAttributeException
name
- The attribute's name.defaultValue
- The default value in case the attribute was not defined.
TagAttributeException
- if the item contains an invalid value or an required attribute was not defined.public char getUnicodeChar(String s)
s
- The unicode string.
public void setupList() throws DocumentHandlerException
sublist
- The sublist to add.
DocumentHandlerException
- In case and unsupported list type was specified.public void closeItem() throws DocumentHandlerException
closeItem
in class BaseDocumentTag
DocumentHandlerException
- Thrown in case something went wrong while processing the document item.public void setListSymbol(com.lowagie.text.Chunk symbol)
symbol
- The chunk to use as symbol.public void addSubList(com.lowagie.text.List sublist)
sublist
- The sublist to add.public void addItem(com.lowagie.text.ListItem item)
item
- The item to add.public float getLineSpacing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |