Class CellValue
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
net.sf.basedb.clients.web.taglib.table.CellValue
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
This tag adds a value to a cell in a row. It should be placed inside a
<tbl:cell>
tag.
Syntax:
<tbl:cellvalue value=... list=... separator=... prefix=... suffix=... bulletlist=false|true clazz=... style=... >
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. | |
bulletlist | false | no | A flag, that if it is set will display all values as <li> items inside a <ul> list. The separator setting is ignored, but prefix and suffix is applied to each value as usual. Since 3.19.9. |
clazz | no | Optional class name. Generates an extra <span> tag around the value(s). | |
style | no | Optional style attributes. Generates an extra <span> tag around the value(s). |
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private String
private Collection<?>
private String
private String
private static final long
private String
private String
private Object
The value to display.Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
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
-
Method Summary
Modifier and TypeMethodDescriptionint
getClazz()
Iterable<?>
getList()
getStyle()
getValue()
void
setBulletlist
(boolean bulletlist) void
void
setList
(Collection<?> list) void
void
setSeparator
(String separator) void
void
void
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
toStringFormatter
-
value
The value to display. -
list
-
prefix
-
suffix
-
separator
-
clazz
-
style
-
bulletlist
private boolean bulletlist
-
-
Constructor Details
-
CellValue
public CellValue()
-
-
Method Details
-
setValue
-
getValue
-
setList
-
getList
-
setSeparator
-
getSeparator
-
setPrefix
- Since:
- 2.9
-
getPrefix
- Since:
- 2.9
-
setSuffix
- Since:
- 2.9
-
getSuffix
- Since:
- 2.9
-
getClazz
- Since:
- 3.11
-
setClazz
- Since:
- 3.11
-
getStyle
- Since:
- 3.11
-
setStyle
- Since:
- 3.11
-
setBulletlist
public void setBulletlist(boolean bulletlist) -
doStartTag
- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
- Throws:
JspException
-