|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.bridge.jsp.taglib.NodeListHelper
| Field Summary | |
protected boolean |
changed
Determines whether a field in AbstractNodeListTag.orderby changed
during iteration. |
protected Attribute |
comparator
|
protected int |
currentItemIndex
The current item |
protected Attribute |
max
The maximum number of elements in a list. |
protected NodeIterator |
nodeIterator
Data member to hold an iteration of the values to return. |
protected Attribute |
offset
The offset of the elements that are returned in a list. |
protected NodeList |
returnList
|
protected int |
timerHandle
A handle necessary when using the Time Tag; |
| Constructor Summary | |
NodeListHelper(ContextReferrerTag thisTag,
NodeProviderHelper nodeHelper)
|
|
| Method Summary | |
int |
doAfterBody()
|
void |
doEndTag()
|
void |
doStartTagHelper()
|
java.lang.String |
getComparator()
|
ContextContainer |
getContextContainer()
|
java.lang.Object |
getCurrent()
|
java.lang.String |
getId()
|
int |
getIndex()
|
int |
getIndexOffset()
|
Attribute |
getMax()
|
Attribute |
getOffset()
|
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 |
remove()
Removes the current item from the list. |
void |
setComparator(java.lang.String c)
|
void |
setMax(java.lang.String m)
Set the list maximum |
void |
setNext()
|
void |
setOffset(java.lang.String o)
Set the list offset |
int |
setReturnValues(NodeList nodes,
boolean trim)
|
int |
size()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Attribute max
protected Attribute offset
protected Attribute comparator
protected boolean changed
AbstractNodeListTag.orderby changed
during iteration.
protected NodeIterator nodeIterator
setReturnValues(NodeList, boolean), which
should be called from BodyTagSupport.doStartTag(), and will be used to
fill the return variables for every iteration.
protected NodeList returnList
protected int currentItemIndex
protected int timerHandle
| Constructor Detail |
public NodeListHelper(ContextReferrerTag thisTag,
NodeProviderHelper nodeHelper)
| Method Detail |
public java.lang.String getId()
getId in interface TagIdentifierpublic int getIndex()
getIndex in interface ListProviderpublic int getIndexOffset()
getIndexOffset in interface ListProviderpublic void remove()
ListProvider
remove in interface ListProvider
public void setMax(java.lang.String m)
throws javax.servlet.jsp.JspTagException
m - the max number of values returned
javax.servlet.jsp.JspTagExceptionpublic Attribute getMax()
public void setOffset(java.lang.String o)
throws javax.servlet.jsp.JspTagException
o - The offset for the List.
javax.servlet.jsp.JspTagExceptionpublic Attribute getOffset()
public void setComparator(java.lang.String c)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public java.lang.String getComparator()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic NodeList getReturnList()
public ContextContainer getContextContainer()
throws javax.servlet.jsp.JspTagException
getContextContainer in interface ContextProviderjavax.servlet.jsp.JspTagException
public int setReturnValues(NodeList nodes,
boolean trim)
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public void doStartTagHelper()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public int doAfterBody()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public void doEndTag()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public void setNext()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic boolean isChanged()
isChanged in interface ListProviderpublic int size()
size in interface ListProviderpublic java.lang.Object getCurrent()
getCurrent in interface ListProvider
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||