public abstract class BaseListDecorator extends java.lang.Object implements ListDecorator
Modifier and Type | Field and Description |
---|---|
protected int |
columnCount |
protected ListTag |
currentList |
protected java.lang.String |
listName |
protected javax.servlet.jsp.PageContext |
pageContext |
protected ListSetTag |
parent |
Constructor and Description |
---|
BaseListDecorator() |
Modifier and Type | Method and Description |
---|---|
void |
addColumn()
Notifies the decorator that a column has been detected
|
void |
afterBottomPagination()
Notifies the decorator that bottom pagination controls have been rendered
|
void |
afterList()
Notifies the decorator that list rendering is complete
|
void |
afterTopPagination()
Notifies the decorator that top pagination controls have been rendered
|
void |
beforeList()
Notifies the decorator that list rendering is about to begin
|
void |
beforeTopPagination()
Use this hook to insert content before the top pagination
|
protected ListTag |
getCurrentList() |
void |
onBottomExtraAddons()
With this hook one can insert extra addons after the list
|
void |
onBottomExtraContent()
With this hook one can insert content after the list
|
void |
onFooterExtraAddons()
With this hook one can insert extra addons in the footer
|
void |
onFooterExtraContent()
With this hook one can insert content in the footer
|
void |
onHeadExtraAddons()
With this hook one can insert extra addons in the heading
|
void |
onHeadExtraContent()
With this hook one can insert content in the heading
|
void |
onTopExtraAddons()
With this hook one can insert extra addons in the before the list
|
void |
onTopExtraContent()
With this hook one can insert content before the list
|
void |
setCurrentList(ListTag current)
Sets a refernce to the currently rendering list tag
|
void |
setEnvironment(javax.servlet.jsp.PageContext ctx,
ListSetTag parentIn,
java.lang.String name)
Sets up the runtime environment for the decorator
|
protected javax.servlet.jsp.PageContext pageContext
protected ListSetTag parent
protected java.lang.String listName
protected int columnCount
protected ListTag currentList
public void setEnvironment(javax.servlet.jsp.PageContext ctx, ListSetTag parentIn, java.lang.String name)
setEnvironment
in interface ListDecorator
ctx
- current JSP PageContextparentIn
- enclosing ListSetTagname
- name of listpublic void addColumn()
addColumn
in interface ListDecorator
public void setCurrentList(ListTag current)
setCurrentList
in interface ListDecorator
current
- the current list tagprotected ListTag getCurrentList()
public void afterList() throws javax.servlet.jsp.JspException
afterList
in interface ListDecorator
javax.servlet.jsp.JspException
- something bad happenedpublic void afterBottomPagination() throws javax.servlet.jsp.JspException
afterBottomPagination
in interface ListDecorator
javax.servlet.jsp.JspException
- something bad happenedpublic void afterTopPagination() throws javax.servlet.jsp.JspException
afterTopPagination
in interface ListDecorator
javax.servlet.jsp.JspException
- something bad happenedpublic void beforeList() throws javax.servlet.jsp.JspException
beforeList
in interface ListDecorator
javax.servlet.jsp.JspException
- something bad happenedpublic void beforeTopPagination() throws javax.servlet.jsp.JspException
beforeTopPagination
in interface ListDecorator
javax.servlet.jsp.JspException
- exceptionpublic void onTopExtraContent() throws javax.servlet.jsp.JspException
onTopExtraContent
in interface ListDecorator
javax.servlet.jsp.JspException
- exceptionpublic void onHeadExtraContent() throws javax.servlet.jsp.JspException
onHeadExtraContent
in interface ListDecorator
javax.servlet.jsp.JspException
- exceptionpublic void onFooterExtraContent() throws javax.servlet.jsp.JspException
onFooterExtraContent
in interface ListDecorator
javax.servlet.jsp.JspException
- exceptionpublic void onBottomExtraContent() throws javax.servlet.jsp.JspException
onBottomExtraContent
in interface ListDecorator
javax.servlet.jsp.JspException
- exceptionpublic void onTopExtraAddons() throws javax.servlet.jsp.JspException
onTopExtraAddons
in interface ListDecorator
javax.servlet.jsp.JspException
- something bad happenedpublic void onHeadExtraAddons() throws javax.servlet.jsp.JspException
onHeadExtraAddons
in interface ListDecorator
javax.servlet.jsp.JspException
- something bad happenedpublic void onFooterExtraAddons() throws javax.servlet.jsp.JspException
onFooterExtraAddons
in interface ListDecorator
javax.servlet.jsp.JspException
- something bad happenedpublic void onBottomExtraAddons() throws javax.servlet.jsp.JspException
onBottomExtraAddons
in interface ListDecorator
javax.servlet.jsp.JspException
- something bad happened