net.sf.basedb.clients.web.taglib.table
Class ExtensionCells
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
net.sf.basedb.clients.web.taglib.table.ExtensionCells
- All Implemented Interfaces:
- Serializable, BodyTag, IterationTag, JspTag, Tag
public class ExtensionCells
- extends BodyTagSupport
Tag for generating content from extension columns.
Syntax:
<tbl:xt-cells
dc=...
item=...
>
<tbl:cell column="xt-columns" />
</tbl:xt-cells>
Attribute |
Default value |
Required |
Description |
dc |
- |
yes |
A DbControl that can be used to query the database.
|
item |
- |
yes |
The current item in the table.
|
- Since:
- 3.2
- Author:
- Nicklas
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
item
private Object item
dc
private DbControl dc
extensionColumns
private Iterator<ListColumnAction> extensionColumns
current
private ListColumnAction current
ExtensionCells
public ExtensionCells()
setDc
public void setDc(DbControl dc)
setItem
public void setItem(Object item)
doStartTag
public int doStartTag()
throws JspException
- Specified by:
doStartTag
in interface Tag
- Overrides:
doStartTag
in class BodyTagSupport
- Throws:
JspException
doAfterBody
public int doAfterBody()
throws JspException
- Specified by:
doAfterBody
in interface IterationTag
- Overrides:
doAfterBody
in class BodyTagSupport
- Throws:
JspException
readObject
private void readObject(ObjectInputStream ois)
throws ClassNotFoundException,
IOException
- Throws:
ClassNotFoundException
IOException
writeObject
private void writeObject(ObjectOutputStream ois)
throws IOException
- Throws:
IOException
getNextColumnId
String getNextColumnId()
- This is called by the Cell taglib when the next extension column
is about to be processed. The method should step to the next column
and return the column id.
getCurrentValue
Object getCurrentValue()
- Get the value for the current column and item.