net.windward.tags
Class RowTag

net.windward.tags.BaseTag
  |
  +--net.windward.tags.RowTag

public class RowTag
extends BaseTag

The start of a row in a matrix. This tag represents a <wr:row/> in the template. This can only appear at the start of a row in cell [N0,0]

Version:
5.0 20 August 2007

Field Summary
static java.lang.String PROP_ROWS_PER_ITER
           
static java.lang.String PROP_ROWS_SETS
           
 
Fields inherited from class net.windward.tags.BaseTag
CHART, COLUMN, DISPLAY_ALWAYS, DISPLAY_NOT_EMPTY, DISPLAY_NOT_NULL, ELSE, END_FOREACH, END_IF, END_LINK, END_MATRIX, ESCAPE, FOREACH, FUNCTION, HTML, IF, IMPORT, LINK, MATRIX, OUT, PROP_COMMENT, PROP_DATASOURCE, PROP_DEFAULT, PROP_DISPLAY, PROP_ENABLED, PROP_INPUT, PROP_PATTERN, PROP_TITLE, PROP_TYPE, PROP_VAR, PROP_WRAP, QUERY, ROW, SET, TAG_DISPLAY_DEFAULT, TAG_DISPLAY_SELECT, TAG_DISPLAY_TAG, TYPE_BITMAP, TYPE_BOTH, TYPE_CURRENCY, TYPE_DATE, TYPE_NUMBER, TYPE_PERCENT, TYPE_TIME, WRAP_BEHIND, WRAP_FRONT, WRAP_INLINE, WRAP_SQUARE
 
Constructor Summary
RowTag(java.util.Map map, boolean selfContained, int nestLevel, boolean ignoreErrors)
          Create an else element using the passed in map values.
 
Method Summary
 net.windward.document.Element dup(boolean sameRefId)
          Makes a duplicate of this object.
 int getNumRowSets()
           
 int getNumRowsPerIteration()
           
 int getXmlType()
          Returns which type of xml element this is.
 java.lang.String toDisplay(int type)
          How this node is displayed on the page when in a field.
 java.lang.String toString()
          Returns this object as a string in the format "end[1]" where the number is it's level.
 java.lang.String toText()
          Converts this node back in to it's string representation in the document
 
Methods inherited from class net.windward.tags.BaseTag
containsAttribute, factory, factory, getAttribute, getAttributes, getBean, getDatasource, getIntAttribute, getLevel, getMode, getNode, getType, setLevel, setNode, toTagText
 

Field Detail

PROP_ROWS_SETS

public static final java.lang.String PROP_ROWS_SETS

PROP_ROWS_PER_ITER

public static final java.lang.String PROP_ROWS_PER_ITER
Constructor Detail

RowTag

public RowTag(java.util.Map map,
              boolean selfContained,
              int nestLevel,
              boolean ignoreErrors)
       throws TagException
Create an else element using the passed in map values.
Parameters:
map - Attributes for the tag.
selfContained - Must be true.
nestLevel - The nest level for this row.
ignoreErrors - Create a tage even if it has illegal and/or missing attributes.
Throws:
TagException - thrown if illegal parameters passed in.
Method Detail

getNumRowsPerIteration

public int getNumRowsPerIteration()

getNumRowSets

public int getNumRowSets()

toText

public java.lang.String toText()
                        throws TagException
Converts this node back in to it's string representation in the document
Overrides:
toText in class BaseTag
Returns:
<wr:row/> type string.

toDisplay

public java.lang.String toDisplay(int type)
How this node is displayed on the page when in a field.
Overrides:
toDisplay in class BaseTag
Parameters:
type - One of the DISPLAY_* constants
Returns:
title, end of select, or <cmd> type string.

dup

public net.windward.document.Element dup(boolean sameRefId)
Makes a duplicate of this object. A deep clone is done so the new object shares nothing with the original object.
Parameters:
sameRefId - don't change the refid.
Returns:
The new duplicate of this object

getXmlType

public int getXmlType()
Returns which type of xml element this is.
Overrides:
getXmlType in class BaseTag
Returns:
ROW

toString

public java.lang.String toString()
Returns this object as a string in the format "end[1]" where the number is it's level.
Returns:
A String listing this element.


Copyright © 2002 - 2008 Windward Reports - All Rights Reserved. java reporting software