|
||||||||||
| 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
org.mmbase.bridge.jsp.taglib.ContextReferrerTag
org.mmbase.bridge.jsp.taglib.CloudReferrerTag
org.mmbase.bridge.jsp.taglib.NodeReferrerTag
org.mmbase.bridge.jsp.taglib.AbstractNodeProviderTag
org.mmbase.bridge.jsp.taglib.AbstractNodeListTag
AbstractNodeListTag, provides basic functionality for listing objects stored in MMBase
| Nested Class Summary | |
protected static class |
AbstractNodeListTag.NodesAndTrim
|
| Nested classes inherited from class org.mmbase.bridge.jsp.taglib.ListProvider |
ListProvider.ListProviderLoopTagStatus |
| Field Summary | |
protected Attribute |
constraints
Holds the clause used to filter the list. |
protected Attribute |
directions
Holds the direction to sort the list on (per field in orderby). |
protected NodeListHelper |
listHelper
|
protected static int |
NOT_HANDLED
|
protected Attribute |
orderby
Holds the list of fields to sort the list on. |
| Fields inherited from class org.mmbase.bridge.jsp.taglib.AbstractNodeProviderTag |
fieldEscaper, nodeHelper |
| Fields inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag |
parentNodeId |
| Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
contextId, EVAL_BODY, helper, id, pageContextTag, referid, writerid |
| 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 | |
AbstractNodeListTag()
|
|
| Method Summary | |
int |
doAfterBody()
Does everything needed on the afterbody tag of every NodeProvider. |
int |
doEndTag()
|
protected int |
doStartTagHelper()
|
ContextContainer |
getContextContainer()
|
Object |
getCurrent()
|
Query |
getGeneratingQuery()
Returns a query which (a.o) results this Node. |
int |
getIndex()
|
int |
getIndexOffset()
|
LoopTagStatus |
getLoopStatus()
|
protected AbstractNodeListTag.NodesAndTrim |
getNodesAndTrim(Query query)
|
protected AbstractNodeListTag.NodesAndTrim |
getNodesAndTrim(Query query,
int more)
|
protected NodeList |
getReturnList()
|
boolean |
isChanged()
If you order a list, then the 'changed' property will be true if the field on which you order changed value. |
void |
release()
Release all allocated resources. |
void |
remove()
Removes the current item from the list. |
void |
setAdd(String c)
|
void |
setComparator(String c)
|
void |
setConstraints(String where)
Sets the selection query |
void |
setDirections(String directions)
Sets the direction to sort on |
void |
setMax(String max)
Set the list maximum |
void |
setOffset(String o)
Set the list offset |
void |
setOrderby(String orderby)
Sets the fields to sort on. |
void |
setRemove(String c)
|
void |
setRetain(String c)
|
protected int |
setReturnValues(NodeList nodes)
Creates the node iterator and sets appropriate variables (such as listsize) from a passed node list. |
protected int |
setReturnValues(NodeList nodes,
boolean trim)
Creates the node iterator and sets appropriate variables (such as listsize). |
int |
size()
|
| Methods inherited from class org.mmbase.bridge.jsp.taglib.AbstractNodeProviderTag |
fillVars, getNodeVar, setCommitonclose, setFieldescape, setJspvar, setNodeVar |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag |
fillStandardParameters, findNodeProvider, findNodeProvider, getLocale, getNode, setElement, setNode |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag |
findCloudProvider, findCloudProvider, getCloudContext, getCloudVar, getNode, getNodeOrNull, setCloud |
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
findLoopOrQuery, findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getDefaultLocale, getEscapedValue, getId, getObject, getObjectConditional, getPageContext, getPageContextTag, getReferid, getString, getTaglibVersion, getTimeZone, getWriterValue, haveBody, setContext, setEscape, setId, setListdelimiter, setPageContext, setReferid, setVartype, setWrite, setWriter |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getParent, getValue, getValues, removeValue, 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.BodyTag |
doInitBody, setBodyContent |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
doStartTag, getParent, setPageContext, setParent |
| Methods inherited from interface org.mmbase.bridge.jsp.taglib.ContextProvider |
getPageContext |
| Methods inherited from interface org.mmbase.bridge.jsp.taglib.TagIdentifier |
getId |
| Field Detail |
protected Attribute orderby
protected Attribute directions
orderby).
The sort itself is implementation specific.
protected Attribute constraints
protected final NodeListHelper listHelper
protected static final int NOT_HANDLED
| Constructor Detail |
public AbstractNodeListTag()
| Method Detail |
protected NodeList getReturnList()
public Object getCurrent()
getCurrent in interface ListProviderpublic int getIndex()
getIndex in interface ListProviderpublic int getIndexOffset()
getIndexOffset in interface ListProviderpublic void remove()
ListProvider
remove in interface ListProviderpublic Query getGeneratingQuery()
NodeProvider
getGeneratingQuery in interface NodeProvidergetGeneratingQuery in class AbstractNodeProviderTag
public void setOrderby(String orderby)
throws JspTagException
orderby - A comma separated list of fields on which the returned
nodes should be sorted
JspTagException
public void setDirections(String directions)
throws JspTagException
directions - the selection query for the object we are looking for
direction
JspTagException
public void setMax(String max)
throws JspTagException
max - the max number of values returned
JspTagException
public void setOffset(String o)
throws JspTagException
o - Offset for the returned list.
JspTagException
public void setComparator(String c)
throws JspTagException
JspTagException
public void setAdd(String c)
throws JspTagException
JspTagException
public void setRetain(String c)
throws JspTagException
JspTagException
public void setRemove(String c)
throws JspTagException
JspTagException
public void setConstraints(String where)
throws JspTagException
where - the selection query
JspTagException
protected final AbstractNodeListTag.NodesAndTrim getNodesAndTrim(Query query)
throws JspTagException
JspTagException
protected AbstractNodeListTag.NodesAndTrim getNodesAndTrim(Query query,
int more)
throws JspTagException
more - How many more than max must be queried (if something will be subtracted later)
JspTagException
public ContextContainer getContextContainer()
throws JspTagException
getContextContainer in interface ContextProviderJspTagException
protected int doStartTagHelper()
throws JspTagException
JspTagException
protected int setReturnValues(NodeList nodes)
throws JspTagException
nodes - the nodelist to create the iterator from
JspTagException
protected int setReturnValues(NodeList nodes,
boolean trim)
throws JspTagException
nodes - the nodelist to create the iterator fromtrim - if true, trim the list using offset and max
(if false, it is assumed the calling routine already did so)
BodyTagSupport.doStartTag().
JspTagException
public int doAfterBody()
throws JspTagException
AbstractNodeProviderTag
doAfterBody in interface IterationTagdoAfterBody in class AbstractNodeProviderTagJspTagException
public int doEndTag()
throws JspTagException
doEndTag in interface TagdoEndTag in class AbstractNodeProviderTagJspTagExceptionpublic void release()
ContextReferrerTag
release in interface Tagrelease in class AbstractNodeProviderTagpublic boolean isChanged()
isChanged in interface ListProviderpublic int size()
size in interface ListProviderpublic LoopTagStatus getLoopStatus()
getLoopStatus in interface LoopTag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||