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 String |
clazz
Optional
class attribute |
private String |
columnId
The ID of the column to which this cell belongs.
|
private String |
errorClazz
Optional
class attribute for errors. |
private Formatter |
formatter |
private boolean |
isHidden |
private int |
maxCharacters |
private String |
maxHeight |
private String |
maxWidth |
private static long |
serialVersionUID |
private String |
style
Optional
style attribute |
private Table |
table
The parent <tbl:table> tag.
|
private 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(Throwable t) |
int |
doEndTag() |
void |
doFinally() |
int |
doStartTag() |
String |
getClazz() |
String |
getColumn() |
String |
getErrorclazz() |
Formatter<?> |
getFormatter() |
String |
getStyle() |
Object |
getValue() |
boolean |
isVisible() |
void |
setAutoshow(boolean autoShow) |
void |
setClazz(String clazz) |
void |
setColumn(String columnId) |
void |
setErrorclazz(String errorClazz) |
void |
setMaxcharacters(int maxCharacters) |
void |
setMaxheight(String maxHeight) |
void |
setMaxwidth(String maxWidth) |
void |
setStyle(String style) |
void |
setValue(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 String clazz
class
attributeprivate String errorClazz
class
attribute for errors.private String style
style
attributeprivate String columnId
private boolean visible
private transient Object value
private transient Formatter formatter
private boolean isHidden
private int maxCharacters
private boolean autoShow
private String maxHeight
private String maxWidth
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 void setMaxcharacters(int maxCharacters)
public void setAutoshow(boolean autoShow)
public void setMaxwidth(String maxWidth)
public void setMaxheight(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(Throwable t) throws Throwable
doCatch
in interface TryCatchFinally
Throwable
public void doFinally()
doFinally
in interface TryCatchFinally