public class CellValue extends TagSupport
<tbl:cell>
tag.
Syntax:
<tbl:cellvalue value=... list=... separator=... prefix=... suffix=... >
Attribute | Default value | Required | Description |
value | - | no |
A value to display in the cell. If a Formatter has been
defined for this column the value is formatted otherwise it is just
converted to a string with the toString() method.
|
list | - | no | A list of values to display in the cell. Each value is formatted the same way as for a single value. If a single value is also specified it is printed first. |
separator | ; | no | A separator to use between each value in a list. |
prefix | no | A prefix that is added before each value. Since 2.9. | |
suffix | no | A suffix that is added after each value. Since 2.9. |
Modifier and Type | Field and Description |
---|---|
private Iterable<?> |
list |
private String |
prefix |
private String |
separator |
private static long |
serialVersionUID |
private String |
suffix |
private static Formatter |
toStringFormatter |
private Object |
value
The value to display.
|
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
CellValue() |
Modifier and Type | Method and Description |
---|---|
int |
doStartTag() |
Iterable<?> |
getList() |
String |
getPrefix() |
String |
getSeparator() |
String |
getSuffix() |
Object |
getValue() |
void |
setList(Iterable<?> list) |
void |
setPrefix(String prefix) |
void |
setSeparator(String separator) |
void |
setSuffix(String suffix) |
void |
setValue(Object value) |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
private static final long serialVersionUID
private static final Formatter toStringFormatter
private Object value
private Iterable<?> list
private String prefix
private String suffix
private String separator
public void setValue(Object value)
public Object getValue()
public void setList(Iterable<?> list)
public Iterable<?> getList()
public void setSeparator(String separator)
public String getSeparator()
public void setPrefix(String prefix)
public String getPrefix()
public void setSuffix(String suffix)
public String getSuffix()
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException