public class ColumnTag
extends javax.servlet.jsp.tagext.BodyTagSupport
implements javax.servlet.jsp.tagext.DynamicAttributes
JSP tag used for creating a table column.
Note that this tag supports dynamic attributes with only string values. See
setDynamicAttribute(String, String, Object)
below.
Example usage:
<datatables:table id="myTableId" data="${persons}"> <datatables:column title="Id" property="id" /> <datatables:column title="LastName" property="lastName" /> <datatables:column title="FirstName" property="firstName" /> <datatables:column title="City" property="address.town.name" /> <datatables:column title="Mail" property="mail" /> </datatables:table>
Superclass of ColumnTag
containing:
ColumnTag
Note that this tag supports dynamic attributes with only string values. See
setDynamicAttribute(String, String, Object)
below.
Constructor and Description |
---|
ColumnTag()
Initializes a new staging options map and a new staging extension map to
be applied to the
ColumnConfiguration instance. |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Configure the current
HtmlColumn . |
int |
doStartTag() |
HtmlColumn |
getHeaderColumn() |
Map<com.github.dandelion.core.option.Option<?>,Object> |
getStagingConf() |
void |
setCssCellClass(String cssCellClass) |
void |
setCssCellStyle(String cssCellStyle) |
void |
setCssClass(String cssClass) |
void |
setCssStyle(String cssStyle) |
void |
setDefault(String defaultValue) |
void |
setDisplay(String display) |
void |
setDynamicAttribute(String uri,
String localName,
Object value) |
void |
setEscapeXml(boolean escapeXml) |
void |
setFilterable(Boolean filterable) |
void |
setFilterPlaceholder(String filterPlaceholder) |
void |
setFilterType(String filterType) |
void |
setFilterValues(String filterValues) |
void |
setFormat(String format) |
void |
setId(String id) |
void |
setName(String name) |
void |
setProperty(String property) |
void |
setRenderFunction(String renderFunction) |
void |
setSearchable(Boolean searchable) |
void |
setSelector(String selector) |
void |
setSortable(Boolean sortable) |
void |
setSortDirection(String sortDirection) |
void |
setSortInitDirection(String sortInitDirection) |
void |
setSortInitOrder(String sortInitOrder) |
void |
setSortType(String sortType) |
void |
setTitle(String titleKey) |
void |
setTitleKey(String titleKey) |
void |
setVisible(Boolean visible) |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
public ColumnTag()
Initializes a new staging options map and a new staging extension map to
be applied to the ColumnConfiguration
instance.
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
Configure the current HtmlColumn
.
Note that when using an AJAX source, since there is only one iteration, it
just adds a header column to the last added header HtmlRow
. When
using a DOM source, a header HtmlColumn
is added at the first
iteration and a HtmlColumn
is added for each iteration.
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public void setDynamicAttribute(String uri, String localName, Object value) throws javax.servlet.jsp.JspException
setDynamicAttribute
in interface javax.servlet.jsp.tagext.DynamicAttributes
javax.servlet.jsp.JspException
public HtmlColumn getHeaderColumn()
public void setTitle(String titleKey)
public void setTitleKey(String titleKey)
public void setEscapeXml(boolean escapeXml)
public void setName(String name)
public void setProperty(String property)
public void setFormat(String format)
public void setCssStyle(String cssStyle)
public void setCssClass(String cssClass)
public void setSortable(Boolean sortable)
public void setCssCellStyle(String cssCellStyle)
public void setCssCellClass(String cssCellClass)
public void setFilterable(Boolean filterable)
public void setSearchable(Boolean searchable)
public void setVisible(Boolean visible)
public void setFilterType(String filterType)
public void setFilterValues(String filterValues)
public void setFilterPlaceholder(String filterPlaceholder)
public void setSortDirection(String sortDirection)
public void setSortInitDirection(String sortInitDirection)
public void setSortInitOrder(String sortInitOrder)
public void setDisplay(String display)
public void setDefault(String defaultValue)
public void setRenderFunction(String renderFunction)
public void setSelector(String selector)
public void setSortType(String sortType)
public void setId(String id)
setId
in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2013–2015 Dandelion Project. All rights reserved.