|
|||||||||
| Home >> All >> org >> ujac >> print >> [ tag overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.ujac.print.tag
Class ConditionTag

java.lang.Objectorg.ujac.print.BaseDocumentTag
org.ujac.print.tag.ConditionTag
- All Implemented Interfaces:
- org.ujac.print.CellContainer, org.ujac.print.Condition, org.ujac.print.ElementContainer, org.ujac.print.PdfCellContainer, org.ujac.print.PhraseHolder, TagAttributes
- Direct Known Subclasses:
- CaseTag, DefaultTag, ElseTag, ForeachTag, IfTag
- public abstract class ConditionTag
- extends org.ujac.print.BaseDocumentTag
- implements org.ujac.print.Condition, org.ujac.print.ElementContainer, org.ujac.print.CellContainer, org.ujac.print.PdfCellContainer, org.ujac.print.PhraseHolder
- extends org.ujac.print.BaseDocumentTag
Name: ConditionTag.java
Description: Description of class.
Log: $Log: ConditionTag.java,v $
Log: Revision 1.5 2003/12/02 21:35:23 lauerc
Log: Fixed font handling.
Log:
Log: Revision 1.4 2003/11/23 03:03:58 lauerc
Log: Fixed javadoc comments.
Log:
Log: Revision 1.3 2003/11/21 01:16:41 lauerc
Log: Added support for tag 'resource-bundle'.
Log:
Log: Revision 1.2 2003/11/01 12:05:19 lauerc
Log: Added copyright notice.
Log:
Log: Revision 1.1 2003/09/29 21:15:03 lauerc
Log: Renamed classes from XyzItem to XyzTag.
Log:
Log: Revision 1.19 2003/09/01 22:40:41 lauerc
Log: Using method getContent to retrieve the item's content instead of accessing the protected field.
Log:
Log: Revision 1.18 2003/07/24 19:13:56 lauerc
Log: Fixed JavaDoc comments.
Log:
Log: Revision 1.17 2003/07/22 06:33:26 lauerc
Log: Removed unneccessary import.
Log:
Log: Revision 1.16 2003/07/22 06:14:52 lauerc
Log: Removed method formatPhrase in advance of method addChunk.
Log: The content processing is now centralized at this method.
Log:
Log: Revision 1.15 2003/07/21 05:35:53 lauerc
Log: Centralized chunk handling.
Log:
Log: Revision 1.14 2003/07/18 06:26:01 lauerc
Log: Content handling re-designed.
Log:
Log: Revision 1.13 2003/07/15 19:25:52 lauerc
Log: Fixed conditional processing of content data.
Log:
Log: Revision 1.12 2003/07/07 06:56:35 lauerc
Log: Changed visibility of method initialize to public.
Log:
Log: Revision 1.11 2003/05/20 21:23:32 lauerc
Log: Enhanced child declaration: Just added the base type of a group of items (e.g. BaseFontTag).
Log: This provides automatic support of new classes which extend specific supported items.
Log:
Log: Revision 1.10 2003/05/08 06:34:31 lauerc
Log: Avoided the adding of empty content.
Log:
Log: Revision 1.9 2003/05/07 22:32:18 lauerc
Log: Fixed bugs in handling child content at methods addChunk and closeItem.
Log:
Log: Revision 1.8 2003/04/29 20:33:00 lauerc
Log: Added item to the argument list of the addElement method of ElementContainer interface.
Log: Added item to the argument list of the addChunk method of PhraseHolder interface.
Log:
Log: Revision 1.7 2003/04/29 19:03:45 lauerc
Log: Changes due to changes in CellContainer, PdfCellContainer and ElementContainer.
Log:
Log: Revision 1.6 2003/04/26 00:13:22 lauerc
Log: Fixed bugs in condition items.
Log:
Log: Revision 1.5 2003/04/25 06:38:31 lauerc
Log: Added support for nested raw text. In this case condition items behave somewhat like phrase items.
Log:
Log: Revision 1.4 2003/04/06 20:01:39 lauerc
Log: Added support for header and footer items.
Log:
Log: Revision 1.3 2003/04/01 22:57:22 lauerc
Log: Improved exception handling, fixed attribute declarations.
Log:
Log: Revision 1.2 2003/03/31 22:29:04 lauerc
Log: Implemented meta information serving methods (getSupportedAttributes, getSupportedChilds).
Log:
Log: Revision 1.1 2003/03/31 07:13:05 lauerc
Log: Initial revision.
Log:
- Version:
- $Revision: 1.5 $
| Field Summary | |
protected org.ujac.print.CellContainer |
cellContainer
The cell container. |
protected boolean |
childsAdded
Indicates, whether elements or cells have been added through this condition or not. |
protected org.ujac.print.ElementContainer |
elementContainer
The element container. |
protected org.ujac.print.PdfCellContainer |
pdfCellContainer
The PDF cell container. |
protected com.lowagie.text.Phrase |
phrase
The phrase which takes the content. |
protected org.ujac.print.PhraseHolder |
phraseHolder
The phrase holder. |
protected boolean |
result
The result of the condition's evaluation. |
private static org.ujac.print.ChildDefinition[] |
supportedChilds
The item's supported childs. |
| Fields inherited from class org.ujac.print.BaseDocumentTag |
attributes, condition, content, DEFAULT_FONT, DEFAULT_FONT_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE, DEFAULT_FONT_STYLE, depth, documentHandler, parentItem, previousItem, supportedAttributeMap, tagFactory |
| Constructor Summary | |
ConditionTag()
|
|
| Method Summary | |
void |
addCell(org.ujac.print.BaseDocumentTag item,
com.lowagie.text.Cell cell)
Adds a cell to the container. |
void |
addCell(org.ujac.print.BaseDocumentTag item,
com.lowagie.text.pdf.PdfPCell cell)
Adds a cell to the container. |
void |
addChunk(org.ujac.print.BaseDocumentTag item,
com.lowagie.text.Chunk chunk)
Adds the given chunk to the root phrase. |
void |
addChunk(org.ujac.print.BaseDocumentTag item,
java.lang.String chunk,
com.lowagie.text.Font font)
Adds the given chunk to the root phrase. |
void |
addElement(org.ujac.print.BaseDocumentTag item,
com.lowagie.text.Element element)
Adds a element to the container. |
void |
closeItem()
Processes the item. |
void |
flushContent()
Flushes the content buffer. |
org.ujac.print.CellContainer |
getCellContainer()
Gets the cell container. |
org.ujac.print.ElementContainer |
getElementContainer()
Gets the element container. |
org.ujac.print.PdfCellContainer |
getPdfCellContainer()
Gets the PDF cell container. |
com.lowagie.text.Phrase |
getRootPhrase()
Gets the root phrase. |
org.ujac.print.AttributeDefinition[] |
getSupportedAttributes()
Gets the list of supported attributes. |
org.ujac.print.ChildDefinition[] |
getSupportedChilds()
Gets the list of supported childs. |
void |
initialize()
Initializes the item. |
boolean |
isTrue()
Checks whether the condition is true or not. |
boolean |
isVirtualContainer()
Is the item virtual container, such as if, else or foreach. |
void |
openItem()
Opens the item. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
supportedChilds
private static final org.ujac.print.ChildDefinition[] supportedChilds
- The item's supported childs.
result
protected boolean result
- The result of the condition's evaluation.
childsAdded
protected boolean childsAdded
- Indicates, whether elements or cells have been added through this condition or not.
elementContainer
protected org.ujac.print.ElementContainer elementContainer
- The element container.
cellContainer
protected org.ujac.print.CellContainer cellContainer
- The cell container.
pdfCellContainer
protected org.ujac.print.PdfCellContainer pdfCellContainer
- The PDF cell container.
phraseHolder
protected org.ujac.print.PhraseHolder phraseHolder
- The phrase holder.
phrase
protected com.lowagie.text.Phrase phrase
- The phrase which takes the content.
| Constructor Detail |
ConditionTag
public ConditionTag()
| Method Detail |
getSupportedAttributes
public org.ujac.print.AttributeDefinition[] getSupportedAttributes()
- Gets the list of supported attributes.
getSupportedChilds
public org.ujac.print.ChildDefinition[] getSupportedChilds()
- Gets the list of supported childs.
isVirtualContainer
public boolean isVirtualContainer()
- Is the item virtual container, such as if, else or foreach.
initialize
public void initialize()
throws org.ujac.print.DocumentHandlerException
- Initializes the item.
addElement
public void addElement(org.ujac.print.BaseDocumentTag item, com.lowagie.text.Element element) throws org.ujac.print.DocumentHandlerException
- Adds a element to the container.
- Specified by:
addElementin interfaceorg.ujac.print.ElementContainer
addCell
public void addCell(org.ujac.print.BaseDocumentTag item, com.lowagie.text.Cell cell) throws org.ujac.print.DocumentHandlerException
- Adds a cell to the container.
- Specified by:
addCellin interfaceorg.ujac.print.CellContainer
addCell
public void addCell(org.ujac.print.BaseDocumentTag item, com.lowagie.text.pdf.PdfPCell cell) throws org.ujac.print.DocumentHandlerException
- Adds a cell to the container.
- Specified by:
addCellin interfaceorg.ujac.print.PdfCellContainer
getRootPhrase
public com.lowagie.text.Phrase getRootPhrase()
- Gets the root phrase.
- Specified by:
getRootPhrasein interfaceorg.ujac.print.PhraseHolder
addChunk
public void addChunk(org.ujac.print.BaseDocumentTag item, java.lang.String chunk, com.lowagie.text.Font font) throws org.ujac.print.DocumentHandlerException
- Adds the given chunk to the root phrase.
- Specified by:
addChunkin interfaceorg.ujac.print.PhraseHolder
addChunk
public void addChunk(org.ujac.print.BaseDocumentTag item, com.lowagie.text.Chunk chunk)
- Adds the given chunk to the root phrase.
- Specified by:
addChunkin interfaceorg.ujac.print.PhraseHolder
openItem
public void openItem()
throws org.ujac.print.DocumentHandlerException
- Opens the item.
flushContent
public void flushContent()
throws org.ujac.print.DocumentHandlerException
- Flushes the content buffer.
closeItem
public void closeItem()
throws org.ujac.print.DocumentHandlerException
- Processes the item.
getElementContainer
public org.ujac.print.ElementContainer getElementContainer()
- Gets the element container.
getCellContainer
public org.ujac.print.CellContainer getCellContainer()
- Gets the cell container.
getPdfCellContainer
public org.ujac.print.PdfCellContainer getPdfCellContainer()
- Gets the PDF cell container.
isTrue
public boolean isTrue()
- Description copied from interface:
org.ujac.print.Condition - Checks whether the condition is true or not.
- Specified by:
isTruein interfaceorg.ujac.print.Condition
|
|||||||||
| Home >> All >> org >> ujac >> print >> [ tag overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC