|
|||||||||||
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 net.mlw.vlh.web.tag.ConfigurableTag net.mlw.vlh.web.tag.DefaultRowTag
This tag creates a table. It is ment to be used along with vlh:root tag. If the valuelist is empty, render only header.
Field Summary | |
protected String |
bean
The name and type of the bean put in the pageContext. |
protected Object |
beanInPageScope
|
protected int |
currentRowNumber
|
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 | |
DefaultRowTag()
|
Method Summary | |
void |
addColumnInfo(ColumnInfo column)
Adds a column to this table. |
int |
doAfterBody()
|
int |
doEndTag()
|
int |
doStartTag()
|
String |
getBeanName()
Gets the name of the bean put in the pageContext. |
protected List |
getColumns()
Returns list of ColumnInfo objects. |
int |
getCurrentRowNumber()
Gets the current row in the iteration. |
DisplayProvider |
getDisplayProvider()
|
ValueListSpaceTag |
getRootTag()
|
String |
getRowStyleClass()
|
protected void |
init()
Initialization is called at the beginning of doStart . |
protected boolean |
isEnabledHeader()
This option could be overwritten by disableHeader (default set to false) |
boolean |
isNestedHeader()
|
protected int |
processIteration()
Produces one row. |
void |
release()
Called on a Tag handler to release state. |
protected void |
renderHeaderCell(StringBuffer sb,
ColumnInfo columnInfo,
TableInfo tableInfo,
ValueListInfo vlInfo,
Map parameters)
Renders header cell. |
protected void |
renderHeaderRow(StringBuffer sb,
List columns,
TableInfo tableInfo,
ValueListInfo vlInfo,
Map parameters)
Renders header row. |
protected void |
renderNestedHeader(StringBuffer sb,
ColumnInfo columnInfo,
TableInfo tableInfo,
ValueListInfo vlInfo,
Map parameters)
|
void |
setBean(String bean)
Sets the name of the bean put in the pageContext. |
void |
setDisableHeader(boolean disableHeader)
|
void |
setDisplay(String display)
|
void |
setFocusRowNumber(String focusRowNumber)
|
void |
setNestedHeader(boolean nestedHeader)
Set how to render the header in case of nested value list (the default is true ). |
Methods inherited from class net.mlw.vlh.web.tag.ConfigurableTag |
appendClassCellAttribute, getAttributes, getCellAttributes, resetAttributes, setAttributes, setCellAttribute |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
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 int currentRowNumber
protected Object beanInPageScope
protected String bean
Constructor Detail |
public DefaultRowTag()
Method Detail |
protected void init() throws javax.servlet.jsp.JspException
doStart
.
Subclasses have to call either super.init()
or super.doStart()
.
javax.servlet.jsp.JspException
public int doStartTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
Tag.doStartTag()
public int doAfterBody() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
IterationTag.doAfterBody()
protected void renderHeaderRow(StringBuffer sb, List columns, TableInfo tableInfo, ValueListInfo vlInfo, Map parameters) throws javax.servlet.jsp.JspException
sb
- tableInfo
- vlInfo
- parameters
-
javax.servlet.jsp.JspException
protected void renderHeaderCell(StringBuffer sb, ColumnInfo columnInfo, TableInfo tableInfo, ValueListInfo vlInfo, Map parameters) throws javax.servlet.jsp.JspException
sb
- columnInfo
- tableInfo
- vlInfo
- parameters
-
javax.servlet.jsp.JspException
protected void renderNestedHeader(StringBuffer sb, ColumnInfo columnInfo, TableInfo tableInfo, ValueListInfo vlInfo, Map parameters) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
protected boolean isEnabledHeader()
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class ConfigurableTag
javax.servlet.jsp.JspException
Tag.doStartTag()
protected int processIteration() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- is an error occurs.Tag.doEndTag()
public final ValueListSpaceTag getRootTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public DisplayProvider getDisplayProvider() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public void setDisplay(String display) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public int getCurrentRowNumber()
public void addColumnInfo(ColumnInfo column)
column
- The Column to add.protected List getColumns()
ColumnInfo
objects.
public void setBean(String bean)
bean
- The name of the bean put in the pageContext.public String getBeanName()
public void setFocusRowNumber(String focusRowNumber)
focusRowNumber
- (0 is considered to be first row) The focusRowNumber to set.public void setDisableHeader(boolean disableHeader)
disableHeader
- The disableHeader to set.public boolean isNestedHeader()
setNestedHeader(boolean)
public void setNestedHeader(boolean nestedHeader)
true
).
nestedHeader
- false
- the header of the nested value list is rendered as a part of the top value list
true
- the header is rendered for each nested valuelistpublic String getRowStyleClass() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class ConfigurableTag
Tag.release()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |