|
2.9.2: 2009-01-08 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
net.sf.basedb.clients.web.taglib.table.Cell
public class Cell
This tag defines a new cell in a row. It should be placed inside a
<tbl:row>
tag.
Syntax:
<tbl:cell clazz=... errorclazz=... style=... column=... visible=true|false value=... >
Attribute | Default value | Required | Description |
clazz | cell | no |
The value if this attribute goes directly into the standard HTML
class attribute. This allows you to apply different styles
to different tables.
|
errorclazz | cell error | no | Value for the class attribute to use if an exception is thrown while evaluating the contents of the cell. Since BASE 2.9.1 |
style | - | no |
The value if this attribute goes directly into the standard HTML
style attribute. This allows you to apply different styles
to different tables.
|
column | - | yes |
The ID of the <tbl:columndef> this cell
is linked to.
|
visible | true | no | If the cell should be visible or not. |
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.
|
Field Summary | |
---|---|
private String |
clazz
Optional class attribute |
private String |
columnId
The ID of the column to which this cell belongs. |
private Data |
data
The parent <tbl:data> tag. |
private String |
errorClazz
Optional class attribute for errors. |
private Formatter |
formatter
|
private static long |
serialVersionUID
|
private String |
style
Optional style attribute |
private Table |
table
The parent <tbl:table> tag. |
private Object |
value
The value to displaye. |
private boolean |
visible
If the cell should be visible or not. |
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 | |
---|---|
Cell()
|
Method Summary | |
---|---|
void |
doCatch(Throwable t)
|
int |
doEndTag()
|
void |
doFinally()
|
int |
doStartTag()
|
String |
getClazz()
|
String |
getColumn()
|
String |
getErrorclazz()
|
Formatter<?> |
getFormatter()
|
String |
getStyle()
|
Object |
getValue()
|
boolean |
isVisible()
|
void |
setClazz(String clazz)
|
void |
setColumn(String columnId)
|
void |
setErrorclazz(String errorClazz)
|
void |
setStyle(String style)
|
void |
setValue(Object value)
|
void |
setVisible(boolean visible)
|
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, 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 |
---|
private static final long serialVersionUID
private Table table
private Data data
private String clazz
class
attribute
private String errorClazz
class
attribute for errors.
private String style
style
attribute
private String columnId
private boolean visible
private Object value
private Formatter formatter
Constructor Detail |
---|
public Cell()
Method Detail |
---|
public void setClazz(String clazz)
public String getClazz()
public void setErrorclazz(String errorClazz)
public String getErrorclazz()
public void setStyle(String style)
public String getStyle()
public void setColumn(String columnId)
public String getColumn()
public void setVisible(boolean visible)
public boolean isVisible()
public void setValue(Object value)
public Object getValue()
public Formatter<?> getFormatter()
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class BodyTagSupport
JspException
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
JspException
public void doCatch(Throwable t) throws Throwable
doCatch
in interface TryCatchFinally
Throwable
public void doFinally()
doFinally
in interface TryCatchFinally
|
2.9.2: 2009-01-08 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |