|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.bridge.jsp.taglib.NodeListHelper
| Nested Class Summary |
| Nested classes inherited from class org.mmbase.bridge.jsp.taglib.ListProvider |
ListProvider.ListProviderLoopTagStatus |
| Field Summary | |
protected Attribute |
add
|
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 Attribute |
remove
|
protected Attribute |
retain
|
protected NodeList |
returnList
|
protected int |
timerHandle
A handle necessary when using the Time Tag; |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
NodeListHelper(ContextReferrerTag thisTag,
NodeProviderHelper nodeHelper)
|
|
| Method Summary | |
int |
doAfterBody()
|
int |
doEndTag()
|
int |
doStartTag()
|
void |
doStartTagHelper()
|
String |
getComparator()
|
ContextContainer |
getContextContainer()
|
Object |
getCurrent()
|
protected String |
getFirstOrderedField(NodeList returnList,
NodeManager nextNodeManager)
The first ordered field is used to determin the 'changed' status of a Node in a NodeList. |
String |
getId()
|
int |
getIndex()
|
int |
getIndexOffset()
|
LoopTagStatus |
getLoopStatus()
|
Attribute |
getMax()
|
Attribute |
getOffset()
|
PageContext |
getPageContext()
|
Tag |
getParent()
|
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()
|
void |
remove()
Removes the current item from the list. |
void |
setAdd(String a)
|
void |
setComparator(String c)
|
void |
setMax(String m)
Set the list maximum |
void |
setNext()
|
void |
setOffset(String o)
Set the list offset |
void |
setPageContext(PageContext pc)
|
void |
setParent(Tag tag)
|
void |
setRemove(String a)
|
void |
setRetain(String a)
|
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 Attribute add
protected Attribute retain
protected Attribute remove
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 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(String m)
throws JspTagException
m - the max number of values returned
JspTagExceptionpublic Attribute getMax()
public void setOffset(String o)
throws JspTagException
o - The offset for the List.
JspTagExceptionpublic Attribute getOffset()
public void setComparator(String c)
throws JspTagException
JspTagException
public void setAdd(String a)
throws JspTagException
JspTagException
public void setRetain(String a)
throws JspTagException
JspTagException
public void setRemove(String a)
throws JspTagException
JspTagException
public String getComparator()
throws JspTagException
JspTagExceptionpublic NodeList getReturnList()
public ContextContainer getContextContainer()
throws JspTagException
getContextContainer in interface ContextProviderJspTagException
public PageContext getPageContext()
throws JspTagException
getPageContext in interface ContextProviderJspTagException
public int setReturnValues(NodeList nodes,
boolean trim)
throws JspTagException
JspTagException
public void doStartTagHelper()
throws JspTagException
JspTagException
public int doAfterBody()
throws JspTagException
JspTagException
public int doEndTag()
throws JspTagException
doEndTag in interface TagJspTagException
protected String getFirstOrderedField(NodeList returnList,
NodeManager nextNodeManager)
public void setNext()
throws JspTagException
JspTagExceptionpublic boolean isChanged()
isChanged in interface ListProviderpublic int size()
size in interface ListProviderpublic Object getCurrent()
getCurrent in interface ListProviderpublic LoopTagStatus getLoopStatus()
getLoopStatus in interface LoopTagpublic void release()
release in interface Tag
public int doStartTag()
throws JspTagException
doStartTag in interface TagJspTagExceptionpublic Tag getParent()
getParent in interface Tagpublic void setParent(Tag tag)
setParent in interface Tagpublic void setPageContext(PageContext pc)
setPageContext in interface Tag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||