com.github.dandelion.datatables.jsp.tag
Class AbstractColumnTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.github.dandelion.datatables.jsp.tag.AbstractColumnTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
ColumnTag

public abstract class AbstractColumnTag
extends javax.servlet.jsp.tagext.BodyTagSupport
implements javax.servlet.jsp.tagext.DynamicAttributes

Abstract class which contains :

Since:
0.1.0
Author:
Thibault Duchateau
See Also:
Serialized Form

Field Summary
protected  String cssCellClass
           
protected  String cssCellStyle
           
protected  String cssClass
           
protected  String cssStyle
           
protected  String defaultValue
           
protected  String display
           
protected  Map<String,String> dynamicAttributes
           
protected  String format
           
protected  String property
           
protected  Map<Configuration,Object> stagingConf
          Map holding the staging configuration to apply to the column.
protected  String title
           
protected  String titleKey
           
 
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
AbstractColumnTag()
           
 
Method Summary
protected  void addAjaxColumn(Boolean isHeader, String content)
           Add a head column to the table when using AJAX source.
protected  void addDomBodyColumn(String content)
           Adds a body column to the last body row when using a DOM source.
protected  void addDomHeadColumn(String content)
           Adds a head column to the last head row whren using a DOM source.
protected  String getColumnContent()
          Return the column content following some rules.
protected  Map<String,String> getDynamicAttributes()
          Get the map of dynamic attributes.
 String getTitle()
           
 String getTitleKey()
           
protected  boolean isValidDynamicAttribute(String localName, Object value)
          Whether the given name-value pair is a valid dynamic attribute.
 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 setFilterable(Boolean filterable)
           
 void setFilterCssClass(String filterCssClass)
           
 void setFilterPlaceholder(String filterPlaceholder)
           
 void setFilterType(String filterType)
           
 void setFilterValues(String filterValues)
           
 void setFormat(String format)
           
 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 setSortInit(String sortInit)
           
 void setSortType(String sortType)
           
 void setTitle(String titleKey)
           
 void setTitleKey(String titleKey)
           
 void setUid(String uid)
           
 void setVisible(Boolean visible)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, 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

stagingConf

protected Map<Configuration,Object> stagingConf
Map holding the staging configuration to apply to the column.


title

protected String title

titleKey

protected String titleKey

property

protected String property

defaultValue

protected String defaultValue

cssStyle

protected String cssStyle

cssCellStyle

protected String cssCellStyle

cssClass

protected String cssClass

cssCellClass

protected String cssCellClass

format

protected String format

display

protected String display

dynamicAttributes

protected Map<String,String> dynamicAttributes
Constructor Detail

AbstractColumnTag

public AbstractColumnTag()
Method Detail

addDomHeadColumn

protected void addDomHeadColumn(String content)
                         throws javax.servlet.jsp.JspException

Adds a head column to the last head row whren using a DOM source.

Parameters:
content - Content of the th cell.
Throws:
javax.servlet.jsp.JspException

addDomBodyColumn

protected void addDomBodyColumn(String content)
                         throws javax.servlet.jsp.JspException

Adds a body column to the last body row when using a DOM source.

Parameters:
content - Content of the td cell.
content -
Throws:
javax.servlet.jsp.JspException

addAjaxColumn

protected void addAjaxColumn(Boolean isHeader,
                             String content)
                      throws javax.servlet.jsp.JspException

Add a head column to the table when using AJAX source.

Column are always marked as "header" using an AJAX source.

Parameters:
isHeader -
content -
Throws:
javax.servlet.jsp.JspException

getColumnContent

protected String getColumnContent()
                           throws javax.servlet.jsp.JspException

Return the column content following some rules.

TODO

Returns:
the content of the column.
Throws:
javax.servlet.jsp.JspException

setUid

public void setUid(String uid)

setProperty

public void setProperty(String property)

setCssStyle

public void setCssStyle(String cssStyle)

setCssClass

public void setCssClass(String cssClass)

setSortable

public void setSortable(Boolean sortable)

setCssCellStyle

public void setCssCellStyle(String cssCellStyle)

setCssCellClass

public void setCssCellClass(String cssCellClass)

setFilterable

public void setFilterable(Boolean filterable)

setSearchable

public void setSearchable(Boolean searchable)

setVisible

public void setVisible(Boolean visible)

setFilterType

public void setFilterType(String filterType)

setFilterValues

public void setFilterValues(String filterValues)

setFilterCssClass

public void setFilterCssClass(String filterCssClass)

setFilterPlaceholder

public void setFilterPlaceholder(String filterPlaceholder)

setSortDirection

public void setSortDirection(String sortDirection)

setSortInit

public void setSortInit(String sortInit)

setDisplay

public void setDisplay(String display)

setDefault

public void setDefault(String defaultValue)

setRenderFunction

public void setRenderFunction(String renderFunction)

setFormat

public void setFormat(String format)

setSelector

public void setSelector(String selector)

setSortType

public void setSortType(String sortType)

getTitle

public String getTitle()

setTitle

public void setTitle(String titleKey)

getTitleKey

public String getTitleKey()

setTitleKey

public void setTitleKey(String titleKey)

getDynamicAttributes

protected Map<String,String> getDynamicAttributes()
Get the map of dynamic attributes.


setDynamicAttribute

public void setDynamicAttribute(String uri,
                                String localName,
                                Object value)
                         throws javax.servlet.jsp.JspException

Specified by:
setDynamicAttribute in interface javax.servlet.jsp.tagext.DynamicAttributes
Throws:
javax.servlet.jsp.JspException

isValidDynamicAttribute

protected boolean isValidDynamicAttribute(String localName,
                                          Object value)
Whether the given name-value pair is a valid dynamic attribute.



Copyright © 2013. All Rights Reserved.