org.mmbase.bridge.jsp.taglib.containers
Class QueryNextBatchesTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.mmbase.bridge.jsp.taglib.ContextReferrerTag
              extended byorg.mmbase.bridge.jsp.taglib.CloudReferrerTag
                  extended byorg.mmbase.bridge.jsp.taglib.NodeReferrerTag
                      extended byorg.mmbase.bridge.jsp.taglib.StringListTag
                          extended byorg.mmbase.bridge.jsp.taglib.containers.QueryNextBatchesTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, ContainerReferrer, ContextProvider, javax.servlet.jsp.tagext.IterationTag, ListProvider, QueryContainerOrListProvider, QueryContainerReferrer, java.io.Serializable, javax.servlet.jsp.tagext.Tag, TagIdentifier, Writer

public class QueryNextBatchesTag
extends StringListTag
implements QueryContainerReferrer

A way to make paging-mechanisms. Considers 'offset' and 'maxnumber' of surrounding query.

Since:
MMBase-1.7
Version:
$Id: QueryNextBatchesTag.java,v 1.4 2004/03/08 17:15:46 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
protected  Attribute container
           
protected  int indexOffSet
           
protected  Attribute indexOffsetOffset
           
protected  Attribute maxtotal
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.StringListTag
comparator, currentItemIndex, iterator, max, returnList
 
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
QueryNextBatchesTag()
           
 
Method Summary
 int getIndexOffset()
           
protected  java.util.List getList()
          Creates the actual list of strings.
 void setContainer(java.lang.String c)
          If it should not use parent container
 void setIndexoffset(java.lang.String i)
           
 void setMaxtotal(java.lang.String m)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.StringListTag
doAfterBody, doEndTag, doStartTag, getContextContainer, getCurrent, getIndex, getMaxNumber, isChanged, remove, setComparator, setMax, setNext, size, truncateList
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.NodeReferrerTag
findNodeProvider, findNodeProvider, getNode, setNode
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
findCloudProvider, findCloudProvider, getCloud, getCloudContext, getCloudVar, getNode, getNodeOrNull, setCloud
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getId, getLocale, getObject, getPageContext, getReferid, getString, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setPageContext, setReferid, setVartype, setWrite, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, 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 org.mmbase.bridge.jsp.taglib.TagIdentifier
getId
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.Writer
getWriterValue, haveBody, setEscape, setJspvar, setVartype, setWrite
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

container

protected Attribute container

indexOffsetOffset

protected Attribute indexOffsetOffset

maxtotal

protected Attribute maxtotal

indexOffSet

protected int indexOffSet
Constructor Detail

QueryNextBatchesTag

public QueryNextBatchesTag()
Method Detail

setIndexoffset

public void setIndexoffset(java.lang.String i)
                    throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setContainer

public void setContainer(java.lang.String c)
                  throws javax.servlet.jsp.JspTagException
Description copied from interface: ContainerReferrer
If it should not use parent container

Specified by:
setContainer in interface ContainerReferrer
Throws:
javax.servlet.jsp.JspTagException

setMaxtotal

public void setMaxtotal(java.lang.String m)
                 throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

getIndexOffset

public int getIndexOffset()
Specified by:
getIndexOffset in interface ListProvider
Overrides:
getIndexOffset in class StringListTag

getList

protected java.util.List getList()
                          throws javax.servlet.jsp.JspTagException
Description copied from class: StringListTag
Creates the actual list of strings.

Overrides:
getList in class StringListTag
Throws:
javax.servlet.jsp.JspTagException


MMBase build 1.7.1.20041002