org.ujac.web.tag
Class ExtraRowHolder

java.lang.Object
  extended by org.ujac.web.tag.ExtraRowHolder

public class ExtraRowHolder
extends Object

Name: ExtraRowHolder
Description: A class holding extra-row data.

Author:
lauerc

Field Summary
protected  RowCellHolder[] registeredRowCells
          The registered row cells.
protected  PrintTableTag rowContainer
          The surrounding print-table tag.
 
Constructor Summary
ExtraRowHolder(PrintTableTag rowContainer, RowCellHolder[] registeredRowCells, String style, String height, String valign, float paddingLeft, float paddingRight, float paddingTop, float paddingBottom)
          Constructs a ExtraRowHolder instance with specific attributes.
 
Method Summary
protected  String getCellAttributes(String styleClass, String width, String height, String hAlign, String vAlign, int colspan, float paddingLeft, float paddingRight, float paddingTop, float paddingBottom)
          Produces a td/th tag attribute list according to the given attributes.
 String getHeight()
          Getter method for the the property height.
 float getPaddingBottom()
          Getter method for the the property paddingBottom.
 float getPaddingLeft()
          Getter method for the the property paddingLeft.
 float getPaddingRight()
          Getter method for the the property paddingRight.
 float getPaddingTop()
          Getter method for the the property paddingTop.
 RowCellHolder[] getRowCells()
          Gets the registered row cells.
 String getStyle()
          Getter method for the the property style.
 String getValign()
          Getter method for the the property valign.
 void outputRow(JspWriter writer)
          Performs the row output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rowContainer

protected PrintTableTag rowContainer
The surrounding print-table tag.


registeredRowCells

protected RowCellHolder[] registeredRowCells
The registered row cells.

Constructor Detail

ExtraRowHolder

public ExtraRowHolder(PrintTableTag rowContainer,
                      RowCellHolder[] registeredRowCells,
                      String style,
                      String height,
                      String valign,
                      float paddingLeft,
                      float paddingRight,
                      float paddingTop,
                      float paddingBottom)
Constructs a ExtraRowHolder instance with specific attributes.

Parameters:
rowContainer - The row container.
registeredRowCells - The registerd row cells.
style - The row style.
height - The row height.
valign - The vertical alignment.
paddingLeft - The left padding.
paddingRight - The right padding.
paddingTop - The top padding.
paddingBottom - The bottom padding.
Method Detail

getRowCells

public RowCellHolder[] getRowCells()
Gets the registered row cells.

Returns:
The registered row cells.

outputRow

public void outputRow(JspWriter writer)
               throws JspException
Performs the row output.

Parameters:
writer - The JSP writer to use.
Throws:
JspException - Thrown in case something went wrong while closing the foreach item.

getCellAttributes

protected String getCellAttributes(String styleClass,
                                   String width,
                                   String height,
                                   String hAlign,
                                   String vAlign,
                                   int colspan,
                                   float paddingLeft,
                                   float paddingRight,
                                   float paddingTop,
                                   float paddingBottom)
Produces a td/th tag attribute list according to the given attributes.

Parameters:
styleClass - The style class.
width - The field width.
height - The field height.
hAlign - The horizontal alignment.
vAlign - The vertical alignment.
colspan - The column span.
paddingLeft - The left padding.
paddingRight - The right padding.
paddingTop - The top padding.
paddingBottom - The bottom padding.
Returns:
The generated attribute list string.

getStyle

public String getStyle()
Getter method for the the property style.

Returns:
The current value of property style.

getHeight

public String getHeight()
Getter method for the the property height.

Returns:
The current value of property height.

getValign

public String getValign()
Getter method for the the property valign.

Returns:
The current value of property valign.

getPaddingLeft

public float getPaddingLeft()
Getter method for the the property paddingLeft.

Returns:
The current value of property paddingLeft.

getPaddingRight

public float getPaddingRight()
Getter method for the the property paddingRight.

Returns:
The current value of property paddingRight.

getPaddingTop

public float getPaddingTop()
Getter method for the the property paddingTop.

Returns:
The current value of property paddingTop.

getPaddingBottom

public float getPaddingBottom()
Getter method for the the property paddingBottom.

Returns:
The current value of property paddingBottom.


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