|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
org.mmbase.bridge.jsp.taglib.AbstractNodeListTag
AbstractNodeListTag, provides basic functionality for listing objects stored in MMBase
| Field Summary | |
protected boolean |
changed
Determines whether a field in orderby changed
during iteration. |
protected java.lang.String |
constraints
Holds the clause used to filter the list. |
protected int |
currentItemIndex
The current item |
protected java.lang.String |
directions
Holds the direction to sort the list on (per field in orderby). |
protected int |
max
The maximum number of elements in a list. |
protected static int |
NOT_HANDLED
|
protected int |
offset
The offset of the elements that are returned in a list. |
protected java.lang.String |
orderby
Holds the list of fields to sort the list on. |
protected NodeList |
returnList
|
protected NodeIterator |
returnValues
Data member to hold an iteration of the values to return. |
protected int |
timerHandle
A handle necessary when using the Time Tag; |
| Constructor Summary | |
AbstractNodeListTag()
|
|
| Method Summary | |
int |
doAfterBody()
|
int |
doEndTag()
|
void |
doInitBody()
|
protected int |
doStartTagHelper()
|
java.lang.Object |
getCurrent()
|
int |
getIndex()
|
boolean |
isChanged()
If you order a list, then the 'changed' property will be true if the field on which you order changed value. |
void |
setConstraints(java.lang.String where)
Sets the selection query |
void |
setDirections(java.lang.String directions)
Sets the direction to sort on |
void |
setMax(java.lang.String m)
Set the list maximum |
void |
setOffset(java.lang.String o)
Set the list offset |
void |
setOrderby(java.lang.String orderby)
Sets the fields to sort on. |
protected int |
setReturnValues(NodeList nodes)
Creates the node iterator and sets appropriate variables (i.e. |
protected int |
setReturnValues(NodeList nodes,
boolean trim)
Creates the node iterator and sets appropriate variables (i.e. |
int |
size()
|
| Methods inherited from interface org.mmbase.bridge.jsp.taglib.TagIdentifier |
getId |
| Field Detail |
protected java.lang.String orderby
protected java.lang.String directions
orderby).
The sort itself is implementation specific.protected java.lang.String constraints
protected int max
protected int offset
protected boolean changed
orderby changed
during iteration.protected NodeIterator returnValues
setReturnValues(NodeList), which
should be called from #doStartTag, and will be used to
fill the return variables for every iteration.protected NodeList returnList
protected int currentItemIndex
protected int timerHandle
protected static int NOT_HANDLED
| Constructor Detail |
public AbstractNodeListTag()
| Method Detail |
public int getIndex()
getIndex in interface ListProviderorg.mmbase.bridge.jsp.taglib.ListProviderpublic java.lang.Object getCurrent()
getCurrent in interface ListProviderorg.mmbase.bridge.jsp.taglib.ListProvider
public void setOrderby(java.lang.String orderby)
throws javax.servlet.jsp.JspTagException
sorted - A comma separated list of fields on witch the returned
nodes should be sorted
public void setDirections(java.lang.String directions)
throws javax.servlet.jsp.JspTagException
direction - the selection query for the object we are looking for
direction
public void setMax(java.lang.String m)
throws javax.servlet.jsp.JspTagException
max - the max number of values returned
public void setOffset(java.lang.String o)
throws javax.servlet.jsp.JspTagException
max - the max number of values returned
public void setConstraints(java.lang.String where)
throws javax.servlet.jsp.JspTagException
where - the selection query
protected int doStartTagHelper()
throws javax.servlet.jsp.JspTagException
protected int setReturnValues(NodeList nodes)
throws javax.servlet.jsp.JspTagException
nodes - the nodelist to create the iterator from
protected int setReturnValues(NodeList nodes,
boolean trim)
throws javax.servlet.jsp.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)
public int doAfterBody()
throws javax.servlet.jsp.JspTagException
public int doEndTag()
throws javax.servlet.jsp.JspTagException
public void doInitBody()
throws javax.servlet.jsp.JspTagException
public boolean isChanged()
isChanged in interface ListProviderorg.mmbase.bridge.jsp.taglib.ListProviderpublic int size()
size in interface ListProviderorg.mmbase.bridge.jsp.taglib.ListProvider
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||