Class Cell
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
net.sf.basedb.clients.web.taglib.table.Cell
- All Implemented Interfaces:
Serializable
,BodyTag
,IterationTag
,JspTag
,Tag
,TryCatchFinally
This tag defines a new cell in a row. It should be placed inside a
<tbl:row>
tag.
Syntax:
<tbl:cell clazz=... subclass=... 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.
|
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private String
Optionalclass
attributeprivate String
The ID of the column to which this cell belongs.private boolean
private String
Optionalclass
attribute for errors.private Formatter
private boolean
private int
private String
private String
private static final long
private String
Optionalstyle
attributeprivate String
More classes.private Table
The parent <tbl:table> tag.private Object
The value to display.private boolean
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
doEndTag()
void
int
getClazz()
Formatter<?>
getStyle()
getValue()
boolean
void
setAutoshow
(boolean autoShow) void
void
void
setDisableOverflowCheck
(boolean disable) void
setErrorclazz
(String errorClazz) void
setMaxcharacters
(int maxCharacters) void
setMaxheight
(String maxHeight) void
setMaxwidth
(String maxWidth) void
void
setSubclass
(String subclas) void
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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
table
The parent <tbl:table> tag. -
clazz
Optionalclass
attribute -
subclass
More classes.- Since:
- 3.18
-
errorClazz
Optionalclass
attribute for errors. -
style
Optionalstyle
attribute -
columnId
The ID of the column to which this cell belongs. -
visible
private boolean visibleIf the cell should be visible or not. -
value
The value to display. -
formatter
-
isHidden
private boolean isHidden -
disableOverflowCheck
private boolean disableOverflowCheck -
maxCharacters
private int maxCharacters -
autoShow
private boolean autoShow -
maxHeight
-
maxWidth
-
-
Constructor Details
-
Cell
public Cell()
-
-
Method Details
-
setClazz
-
getClazz
-
setSubclass
- Since:
- 3.18
-
getSubclass
- Since:
- 3.18
-
setErrorclazz
- Since:
- 2.9.1
-
getErrorclazz
- Since:
- 2.9.1
-
setStyle
-
getStyle
-
setColumn
-
getColumn
-
setVisible
public void setVisible(boolean visible) -
isVisible
public boolean isVisible() -
setValue
-
getValue
-
getFormatter
-
setDisableOverflowCheck
public void setDisableOverflowCheck(boolean disable) - Since:
- 3.18
-
setMaxcharacters
public void setMaxcharacters(int maxCharacters) -
setAutoshow
public void setAutoshow(boolean autoShow) -
setMaxwidth
-
setMaxheight
-
doStartTag
- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classBodyTagSupport
- Throws:
JspException
-
doEndTag
- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classBodyTagSupport
- Throws:
JspException
-
doCatch
- Specified by:
doCatch
in interfaceTryCatchFinally
- Throws:
Throwable
-
doFinally
public void doFinally()- Specified by:
doFinally
in interfaceTryCatchFinally
-