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 ListDecoratorctx - current JSP PageContextparentIn - enclosing ListSetTagname - name of listpublic void addColumn()
addColumn in interface ListDecoratorpublic void setCurrentList(ListTag current)
setCurrentList in interface ListDecoratorcurrent - the current list tagprotected ListTag getCurrentList()
public void afterList()
throws javax.servlet.jsp.JspException
afterList in interface ListDecoratorjavax.servlet.jsp.JspException - something bad happenedpublic void afterBottomPagination()
throws javax.servlet.jsp.JspException
afterBottomPagination in interface ListDecoratorjavax.servlet.jsp.JspException - something bad happenedpublic void afterTopPagination()
throws javax.servlet.jsp.JspException
afterTopPagination in interface ListDecoratorjavax.servlet.jsp.JspException - something bad happenedpublic void beforeList()
throws javax.servlet.jsp.JspException
beforeList in interface ListDecoratorjavax.servlet.jsp.JspException - something bad happenedpublic void beforeTopPagination()
throws javax.servlet.jsp.JspException
beforeTopPagination in interface ListDecoratorjavax.servlet.jsp.JspException - exceptionpublic void onTopExtraContent()
throws javax.servlet.jsp.JspException
onTopExtraContent in interface ListDecoratorjavax.servlet.jsp.JspException - exceptionpublic void onHeadExtraContent()
throws javax.servlet.jsp.JspException
onHeadExtraContent in interface ListDecoratorjavax.servlet.jsp.JspException - exceptionpublic void onFooterExtraContent()
throws javax.servlet.jsp.JspException
onFooterExtraContent in interface ListDecoratorjavax.servlet.jsp.JspException - exceptionpublic void onBottomExtraContent()
throws javax.servlet.jsp.JspException
onBottomExtraContent in interface ListDecoratorjavax.servlet.jsp.JspException - exceptionpublic void onTopExtraAddons()
throws javax.servlet.jsp.JspException
onTopExtraAddons in interface ListDecoratorjavax.servlet.jsp.JspException - something bad happenedpublic void onHeadExtraAddons()
throws javax.servlet.jsp.JspException
onHeadExtraAddons in interface ListDecoratorjavax.servlet.jsp.JspException - something bad happenedpublic void onFooterExtraAddons()
throws javax.servlet.jsp.JspException
onFooterExtraAddons in interface ListDecoratorjavax.servlet.jsp.JspException - something bad happenedpublic void onBottomExtraAddons()
throws javax.servlet.jsp.JspException
onBottomExtraAddons in interface ListDecoratorjavax.servlet.jsp.JspException - something bad happened