|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.github.dandelion.datatables.jsp.tag.AbstractTableTag
public abstract class AbstractTableTag
Abstract class which contains :
| Field Summary | |
|---|---|
protected String |
confGroup
|
protected Object |
currentObject
|
protected Object |
data
First way to populate the table: using a Collection previously set in request. |
protected Map<String,String> |
dynamicAttributes
|
protected String |
footer
|
protected String |
id
|
protected Integer |
iterationNumber
|
protected Iterator<Object> |
iterator
|
protected String |
loadingType
|
protected String |
row
Name that has been assigned with the row attribute for the
iterated object set in the page context. |
protected String |
rowIdBase
|
protected String |
rowIdPrefix
|
protected String |
rowIdSufix
|
protected Map<Configuration,Object> |
stagingConf
Map holding the staging configuration to apply to the table. |
protected HtmlTable |
table
|
protected String |
url
Second way to populate the table: using the URL that returns data. |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
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 | |
|---|---|
AbstractTableTag()
|
|
| Method Summary | |
|---|---|
protected void |
generateLinkTag(String href)
Generate and write a new HTML link tag. |
protected void |
generateScriptTag(String src)
Generate and write a new HTML script tag. |
protected ExportType |
getCurrentExportType()
Return the current export type asked by the user on export link click. |
Object |
getCurrentObject()
|
protected Map<String,String> |
getDynamicAttributes()
Get the map of dynamic attributes. |
Integer |
getIterationNumber()
|
protected String |
getRowId()
Return the row id using prefix, base and suffix. |
HtmlTable |
getTable()
Getters and setters for all attributes |
Boolean |
isFirstIteration()
|
protected int |
processIteration()
Process the iteration over the data (only for DOM source). |
void |
setCurrentObject(Object currentObject)
|
void |
setDynamicAttribute(String uri,
String localName,
Object value)
|
void |
setId(String id)
|
void |
setRow(String row)
|
protected void |
validDynamicAttribute(String localName,
Object value)
Whether the given name-value pair is a valid dynamic attribute. |
| 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, 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 |
|---|
protected Map<Configuration,Object> stagingConf
protected Object data
protected String url
protected String row
row attribute for the
iterated object set in the page context.
protected String id
protected String rowIdBase
protected String rowIdPrefix
protected String rowIdSufix
protected Map<String,String> dynamicAttributes
protected String footer
protected Integer iterationNumber
protected HtmlTable table
protected Iterator<Object> iterator
protected Object currentObject
protected String loadingType
protected String confGroup
| Constructor Detail |
|---|
public AbstractTableTag()
| Method Detail |
|---|
protected int processIteration()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - if something went wrong during the row id generation.protected ExportType getCurrentExportType()
protected String getRowId()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - is the rowIdBase doesn't have a corresponding property
accessor method.
protected void generateLinkTag(String href)
throws IOException
href -
IOException
protected void generateScriptTag(String src)
throws IOException
href -
IOExceptionpublic HtmlTable getTable()
public void setRow(String row)
public Boolean isFirstIteration()
public Integer getIterationNumber()
public Object getCurrentObject()
public void setCurrentObject(Object currentObject)
public void setId(String id)
setId in class javax.servlet.jsp.tagext.TagSupportprotected Map<String,String> getDynamicAttributes()
public void setDynamicAttribute(String uri,
String localName,
Object value)
throws javax.servlet.jsp.JspException
setDynamicAttribute in interface javax.servlet.jsp.tagext.DynamicAttributesjavax.servlet.jsp.JspException
protected void validDynamicAttribute(String localName,
Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||