org.ujac.print.tag
Class PrintRowTag

java.lang.Object
  extended by org.ujac.print.BaseDocumentTag
      extended by org.ujac.print.tag.PrintRowTag
All Implemented Interfaces:
Condition, FontHolder, StyleHolder, RowCellContainer
Direct Known Subclasses:
PrintFooterRowTag, PrintGroupRowTag, PrintGroupTitleRowTag, PrintHeaderRowTag

public class PrintRowTag
extends BaseDocumentTag
implements FontHolder, Condition, RowCellContainer, StyleHolder

Name: PrintRowTag
Description: A class printing the contents of the current row of the surrounding print-table tag.

Author:
lauerc

Field Summary
protected  List extraRowsAfter
          The extra rows to print after the data row.
protected  List extraRowsBefore
          The extra rows to print before the data row.
protected  RowCellTag[] registeredRowCells
          The registered row cells.
protected  float rotate
          The rotation angle.
protected  PrintTableTag rowContainer
          The surrounding print-table tag.
static String TAG_NAME
          The item's name.
 
Fields inherited from class org.ujac.print.BaseDocumentTag
actualContent, attributes, condition, content, customAttributes, DEFAULT_FONT, DEFAULT_FONT_COLOR, DEFAULT_FONT_ENCODING, DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE, DEFAULT_FONT_STYLE, DEFAULT_LEADING, DEFAULT_LINE_SPACING, depth, documentHandler, IMAGE_CHUNK_ATTR, log, NUMBER_OF_PAGES_TEMPLATES, parentItem, previousItem, styleParent, supportedAttributeMap, supportedChildMap, supportedStyleAttributeMap, tagFactory
 
Constructor Summary
PrintRowTag()
          Constructs a PrintRowTag instance with no specific attributes.
PrintRowTag(String name)
          Constructs a PrintRowTag instance with specific attributes.
 
Method Summary
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.
 CellAttributes getCellAttributes()
          Gets the cell attributes.
 String getDescription()
          Gets a brief description for the item.
 void initialize()
          Initializes the item.
 void insertExtraRow(ExtraRowTag extraRow, int insertDirection)
          Inserts a extra row.
protected  boolean isHeaderRow()
          Tells whether the row is a header row or not.
 boolean isStyleable()
          Tells whether or not this tag does respect style attributes or not.
 boolean isTrue()
          Checks whether the condition is true or not.
 void openItem()
          Opens the item.
 void outputRow(Row currentRow)
          Performs the row output.
 void registerRowCell(RowCellTag rowCell)
          Registers the given cell style for the specified column name.
 
Methods inherited from class org.ujac.print.BaseDocumentTag
addAttributeDefinition, addChunk, addChunk, addChunk, addContent, addContent, addStyleAttributeDefinition, addToLatestCellContainer, addToLatestElementContainer, addToLatestPdfCellContainer, checkAttributes, colorFromString, createChunk, createFont, ensureNumberOfPagesTemplate, evalAttribute, evalAttribute, extendLeading, extendLeading, extendLeading, extendLeading, filterContents, flushContent, getActualContent, getAttribute, getAttribute, getAttributeDefinition, getAttributeHandler, getAttributes, getBackgroundColor, getBooleanAttribute, getBooleanAttribute, getBorderAttribute, getBorderAttribute, getColorAttribute, getColorAttribute, getCommonAttributesHolder, getContent, getCustomAttributes, getDepth, getDimensionAttribute, getDimensionAttribute, getDimensionAttribute, getDocumentHandler, getExamples, getFloatAttribute, getFloatAttribute, getFont, getHorizontalAlignmentAttribute, getHorizontalAlignmentAttribute, getIntegerAttribute, getIntegerAttribute, getLocalAttribute, getLocalFont, getLocalStyleAttribute, getName, getParentItem, getPhraseContent, getPhraseHeight, getPhraseWidth, getPreviousItem, getRawAttribute, getSortedAttributeDefinitions, getSortedStyleAttributeDefinitions, getStringAttribute, getStringAttribute, getStringAttribute, getStyle, getStyleAttribute, getStyleAttribute, getStyleAttributeDefinition, getStyleAttributes, getStyleClass, getSupportedAttributes, getSupportedChilds, getSupportedChildTags, getSupportedStyleAttributes, getTagFactory, getTextAttribute, getTextAttribute, getTrimmedContent, getVerticalAlignmentAttribute, getVerticalAlignmentAttribute, handleContent, handleFontAttributes, hasContent, int2FontStyle, isAttributeDefined, isAttributeDefined, isAttributeDefined, isAttributeDefined, isAttributeSupported, isAttributeSupported, isAttributeSupported, isAttributeSupported, isDocumentRoot, isEmptyContent, isEmptyString, isIgnoreFlush, isItemClosed, isItemOpened, isPhraseEmpty, isRendered, isStructureChecksDisabled, isStyleAttributeDefined, isTextBodyAllowed, isTrimBody, isTrimNextHead, isValid, isVirtualContainer, locator, preInitialize, printPhrase, processContents, processContents, resetContent, rotatePhrase, setAttributes, setBackgroundColor, setCustomAttributes, setDepth, setDocumentHandler, setItemClosed, setItemOpened, setLocalFont, setLocalFont, setName, setParentItem, setPreviousItem, setTagFactory, setTrimBody, setTrimNextHead, trimContentHead, trimContentTail, typeCastValue
 
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
 
Methods inherited from interface org.ujac.print.StyleHolder
getStyleAttribute
 

Field Detail

TAG_NAME

public static final String TAG_NAME
The item's name.

See Also:
Constant Field Values

rowContainer

protected PrintTableTag rowContainer
The surrounding print-table tag.


rotate

protected float rotate
The rotation angle.


registeredRowCells

protected RowCellTag[] registeredRowCells
The registered row cells.


extraRowsBefore

protected List extraRowsBefore
The extra rows to print before the data row.


extraRowsAfter

protected List extraRowsAfter
The extra rows to print after the data row.

Constructor Detail

PrintRowTag

public PrintRowTag()
Constructs a PrintRowTag instance with no specific attributes.


PrintRowTag

public PrintRowTag(String name)
Constructs a PrintRowTag instance with specific attributes.

Parameters:
name - The tag name.
Method Detail

getDescription

public String getDescription()
Gets a brief description for the item.

Specified by:
getDescription in class BaseDocumentTag
Returns:
The item's description.

buildSupportedAttributes

protected AttributeDefinitionMap buildSupportedAttributes()
Gets the list of supported attributes.

Overrides:
buildSupportedAttributes in class BaseDocumentTag
Returns:
The attribute definitions.

buildSupportedStyleAttributes

protected AttributeDefinitionMap buildSupportedStyleAttributes()
Gets the list of supported style attributes.

Overrides:
buildSupportedStyleAttributes in class BaseDocumentTag
Returns:
The attribute definitions.

buildSupportedChilds

public ChildDefinitionMap buildSupportedChilds()
Gets the list of supported childs.

Overrides:
buildSupportedChilds in class BaseDocumentTag
Returns:
The child definitions.

isStyleable

public boolean isStyleable()
Tells whether or not this tag does respect style attributes or not.

Overrides:
isStyleable in class BaseDocumentTag
Returns:
always true.

initialize

public void initialize()
                throws DocumentHandlerException
Initializes the item.

Overrides:
initialize in class BaseDocumentTag
Throws:
DocumentHandlerException - If something went badly wrong.

openItem

public void openItem()
              throws DocumentHandlerException
Opens the item.

Overrides:
openItem in class BaseDocumentTag
Throws:
DocumentHandlerException - Thrown in case something went wrong while opening the foreach item.

closeItem

public void closeItem()
               throws DocumentHandlerException
Closes the item.

Overrides:
closeItem in class BaseDocumentTag
Throws:
DocumentHandlerException - Thrown in case something went wrong while closing the foreach item.

insertExtraRow

public void insertExtraRow(ExtraRowTag extraRow,
                           int insertDirection)
Inserts a extra row.

Parameters:
extraRow - The extra row to insert.
insertDirection - The insert direction.

outputRow

public void outputRow(Row currentRow)
               throws DocumentHandlerException
Performs the row output.

Parameters:
currentRow - The row to print.
Throws:
DocumentHandlerException - Thrown in case something went wrong while closing the foreach item.

registerRowCell

public void registerRowCell(RowCellTag rowCell)
                     throws DocumentHandlerException
Registers the given cell style for the specified column name.

Specified by:
registerRowCell in interface RowCellContainer
Parameters:
rowCell - The row cell to register.
Throws:
DocumentHandlerException - In case the row-cell registration failed.

isTrue

public boolean isTrue()
Description copied from interface: Condition
Checks whether the condition is true or not.

Specified by:
isTrue in interface Condition
Returns:
true, if the condition evaluates to true, else false.
See Also:
Condition.isTrue()

isHeaderRow

protected boolean isHeaderRow()
Tells whether the row is a header row or not.

Returns:
true in case the row is a header row, else false.

getCellAttributes

public CellAttributes getCellAttributes()
Gets the cell attributes.

Specified by:
getCellAttributes in interface RowCellContainer
Returns:
The cell attributes.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.