public class Cell extends BodyTagSupport implements TryCatchFinally
<tbl:row>
tag.
Syntax:
<tbl:cell clazz=... errorclazz=... style=... column=... visible=true|false value=... maxcharacters=... maxheight=... maxwidth=... autoshow=true|false >
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.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
autoShow |
private java.lang.String |
clazz
Optional
class attribute |
private java.lang.String |
columnId
The ID of the column to which this cell belongs.
|
private java.lang.String |
errorClazz
Optional
class attribute for errors. |
private Formatter |
formatter |
private boolean |
isHidden |
private int |
maxCharacters |
private java.lang.String |
maxHeight |
private java.lang.String |
maxWidth |
private static long |
serialVersionUID |
private java.lang.String |
style
Optional
style attribute |
private Table |
table
The parent <tbl:table> tag.
|
private java.lang.Object |
value
The value to display.
|
private boolean |
visible
If the cell should be visible or not.
|
bodyContent
id, pageContext
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
Cell() |
Modifier and Type | Method and Description |
---|---|
void |
doCatch(java.lang.Throwable t) |
int |
doEndTag() |
void |
doFinally() |
int |
doStartTag() |
java.lang.String |
getClazz() |
java.lang.String |
getColumn() |
java.lang.String |
getErrorclazz() |
Formatter<?> |
getFormatter() |
java.lang.String |
getStyle() |
java.lang.Object |
getValue() |
boolean |
isVisible() |
void |
setAutoshow(boolean autoShow) |
void |
setClazz(java.lang.String clazz) |
void |
setColumn(java.lang.String columnId) |
void |
setErrorclazz(java.lang.String errorClazz) |
void |
setMaxcharacters(int maxCharacters) |
void |
setMaxheight(java.lang.String maxHeight) |
void |
setMaxwidth(java.lang.String maxWidth) |
void |
setStyle(java.lang.String style) |
void |
setValue(java.lang.Object value) |
void |
setVisible(boolean visible) |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParent, setPageContext, setParent
private static final long serialVersionUID
private Table table
private java.lang.String clazz
class
attributeprivate java.lang.String errorClazz
class
attribute for errors.private java.lang.String style
style
attributeprivate java.lang.String columnId
private boolean visible
private transient java.lang.Object value
private transient Formatter formatter
private boolean isHidden
private int maxCharacters
private boolean autoShow
private java.lang.String maxHeight
private java.lang.String maxWidth
public void setClazz(java.lang.String clazz)
public java.lang.String getClazz()
public void setErrorclazz(java.lang.String errorClazz)
public java.lang.String getErrorclazz()
public void setStyle(java.lang.String style)
public java.lang.String getStyle()
public void setColumn(java.lang.String columnId)
public java.lang.String getColumn()
public void setVisible(boolean visible)
public boolean isVisible()
public void setValue(java.lang.Object value)
public java.lang.Object getValue()
public Formatter<?> getFormatter()
public void setMaxcharacters(int maxCharacters)
public void setAutoshow(boolean autoShow)
public void setMaxwidth(java.lang.String maxWidth)
public void setMaxheight(java.lang.String maxHeight)
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(java.lang.Throwable t) throws java.lang.Throwable
doCatch
in interface TryCatchFinally
java.lang.Throwable
public void doFinally()
doFinally
in interface TryCatchFinally