|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport org.ujac.web.tag.BaseTag org.ujac.web.tag.PrintRowTag
public class PrintRowTag
Name: PrintRowTag
Description: A custom tag class printing normal rows.
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 RowCellHolder[] |
registeredRowCells
The cell style item map. |
protected PrintTableTag |
rowContainer
The surrounding print-table tag. |
Fields inherited from class org.ujac.web.tag.BaseTag |
---|
log |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
PrintRowTag()
|
Method Summary | |
---|---|
protected String |
alternateRowStyle()
Alternates the row style. |
protected boolean |
checkRowType(Row row)
Checks the row type. |
int |
doEndTag()
|
int |
doStartTag()
|
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 |
getEvenStyle()
Getter method for the the property evenStyle. |
String |
getHeight()
Getter method for the the property height. |
String |
getOddStyle()
Getter method for the the property oddStyle. |
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. |
PrintTableTag |
getRowContainer()
Getter method for the the property rowContainer. |
String |
getStyle()
Getter method for the the property style. |
protected String |
getStyleAttribute(String width,
String height,
String hAlign,
String vAlign,
float paddingLeft,
float paddingRight,
float paddingTop,
float paddingBottom)
Produces a td/th tag attribute list according to the given attributes. |
String |
getValign()
Getter method for the the property valign. |
void |
insertExtraRow(ExtraRowHolder extraRow,
int insertDirection)
Inserts a extra row. |
protected boolean |
isSkipped()
Getter method for the the property skipped. |
protected PrintTableTag |
lookupRowContainer()
Gets the latest row container from the tag stack. |
protected void |
outputRow()
Performs the row output. |
protected void |
outputRow(RowCellHolder[] rowCells,
String style,
String height,
String vAlign,
float paddingLeft,
float paddingRight,
float paddingTop,
float paddingBottom)
Performs the row output. |
protected void |
printTagStart()
Prints the tag start code. |
void |
registerRowCell(RowCellHolder rowCell)
Registers the given row cell with the print row tag. |
void |
release()
|
void |
setEvenStyle(String evenStyle)
Setter method for the the property evenStyle. |
void |
setHeight(String height)
Setter method for the the property height. |
void |
setOddStyle(String oddStyle)
Setter method for the the property oddStyle. |
void |
setPaddingBottom(float paddingBottom)
Setter method for the the property paddingBottom. |
void |
setPaddingLeft(float paddingLeft)
Setter method for the the property paddingLeft. |
void |
setPaddingRight(float paddingRight)
Setter method for the the property paddingRight. |
void |
setPaddingTop(float paddingTop)
Setter method for the the property paddingTop. |
protected void |
setSkipped(boolean skipped)
Setter method for the the property skipped. |
void |
setStyle(String style)
Setter method for the the property style. |
void |
setValign(String valign)
Setter method for the the property valign. |
Methods inherited from class org.ujac.web.tag.BaseTag |
---|
clearTagAttributes, getParent, getTagAttribute, getTagAttributes, getTemplateContext, removeTagAttribute, setAttribute, setTagAttribute, writeAttributes |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
protected PrintTableTag rowContainer
protected RowCellHolder[] registeredRowCells
protected List extraRowsBefore
protected List extraRowsAfter
Constructor Detail |
---|
public PrintRowTag()
Method Detail |
---|
public String getStyle()
public void setStyle(String style)
style
- The value to set for the property style.public String getEvenStyle()
public void setEvenStyle(String evenStyle)
evenStyle
- The value to set for the property evenStyle.public String getOddStyle()
public void setOddStyle(String oddStyle)
oddStyle
- The value to set for the property oddStyle.public String getHeight()
public void setHeight(String height)
height
- The value to set for the property height.public String getValign()
public void setValign(String valign)
valign
- The value to set for the property valign.public float getPaddingLeft()
public void setPaddingLeft(float paddingLeft)
paddingLeft
- The value to set for the property paddingLeft.public float getPaddingRight()
public void setPaddingRight(float paddingRight)
paddingRight
- The value to set for the property paddingRight.public float getPaddingTop()
public void setPaddingTop(float paddingTop)
paddingTop
- The value to set for the property paddingTop.public float getPaddingBottom()
public void setPaddingBottom(float paddingBottom)
paddingBottom
- The value to set for the property paddingBottom.public void registerRowCell(RowCellHolder rowCell)
registerRowCell
in interface RowCellContainer
rowCell
- The row cell to register.protected boolean isSkipped()
protected void setSkipped(boolean skipped)
skipped
- The value to set for the property skipped.public PrintTableTag getRowContainer()
protected String getCellAttributes(String styleClass, String width, String height, String hAlign, String vAlign, int colspan, float paddingLeft, float paddingRight, float paddingTop, float paddingBottom)
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.
protected String getStyleAttribute(String width, String height, String hAlign, String vAlign, float paddingLeft, float paddingRight, float paddingTop, float paddingBottom)
width
- The field width.height
- The field height.hAlign
- The horizontal alignment.vAlign
- The vertical alignment.paddingLeft
- The left padding.paddingRight
- The right padding.paddingTop
- The top padding.paddingBottom
- The bottom padding.
public void insertExtraRow(ExtraRowHolder extraRow, int insertDirection)
extraRow
- The extra row to insert.insertDirection
- The insert direction.public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class BaseTag
JspException
BodyTagSupport.doStartTag()
protected boolean checkRowType(Row row)
row
- The row to check.
protected void printTagStart()
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
JspException
BodyTagSupport.doEndTag()
protected void outputRow() throws JspException
JspException
- Thrown in case something went wrong while closing the foreach item.protected void outputRow(RowCellHolder[] rowCells, String style, String height, String vAlign, float paddingLeft, float paddingRight, float paddingTop, float paddingBottom) throws JspException
rowCells
- The row cells to render.style
- The style class.height
- The field height.hAlign
- The horizontal alignment.paddingLeft
- The left padding.paddingRight
- The right padding.paddingTop
- The top padding.paddingBottom
- The bottom padding.
JspException
- Thrown in case something went wrong while closing the foreach item.public void release()
release
in interface Tag
release
in class BaseTag
BodyTagSupport.release()
protected PrintTableTag lookupRowContainer()
protected String alternateRowStyle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |