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

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.QueryPreviousBatchesTag
All Implemented Interfaces:
BodyTag, ContainerReferrer, ContextProvider, IterationTag, ListProvider, LoopTag, QueryContainerReferrer, Serializable, Tag, TagIdentifier, Writer

public class QueryPreviousBatchesTag
extends StringListTag
implements QueryContainerReferrer

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

Since:
MMBase-1.7
Version:
$Id: QueryPreviousBatchesTag.java,v 1.7 2006/04/11 22:58:36 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.mmbase.bridge.jsp.taglib.ListProvider
ListProvider.ListProviderLoopTagStatus
 
Field Summary
protected  Attribute container
           
protected  int indexOffset
           
protected  Attribute indexOffsetOffset
           
protected  Attribute maxtotal
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.StringListTag
add, comparator, currentItemIndex, iterator, max, remove, retain, 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.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
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
 
Constructor Summary
QueryPreviousBatchesTag()
           
 
Method Summary
 int getIndexOffset()
           
protected  List getList()
          Creates the actual list of strings.
 void setContainer(String c)
          If it should not use parent container
 void setIndexoffset(String i)
           
 void setMaxtotal(String m)
           
protected  void truncateList()
          For use with referid
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.StringListTag
doAfterBody, doEndTag, doStartTag, getContextContainer, getCurrent, getIndex, getLoopStatus, getMaxNumber, isChanged, release, remove, setAdd, setComparator, setMax, setNext, setRemove, setRetain, size
 
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, setJspvar, setListdelimiter, 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.ContextProvider
getPageContext
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.TagIdentifier
getId
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 
Methods inherited from interface org.mmbase.bridge.jsp.taglib.Writer
getWriterValue, haveBody, setEscape, setJspvar, setVartype, setWrite
 

Field Detail

container

protected Attribute container

indexOffsetOffset

protected Attribute indexOffsetOffset

maxtotal

protected Attribute maxtotal

indexOffset

protected int indexOffset
Constructor Detail

QueryPreviousBatchesTag

public QueryPreviousBatchesTag()
Method Detail

setContainer

public void setContainer(String c)
                  throws JspTagException
Description copied from interface: ContainerReferrer
If it should not use parent container

Specified by:
setContainer in interface ContainerReferrer
Throws:
JspTagException

setMaxtotal

public void setMaxtotal(String m)
                 throws JspTagException
Throws:
JspTagException

setIndexoffset

public void setIndexoffset(String i)
                    throws JspTagException
Throws:
JspTagException

truncateList

protected void truncateList()
                     throws JspTagException
Description copied from class: StringListTag
For use with referid

Overrides:
truncateList in class StringListTag
Throws:
JspTagException

getIndexOffset

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

getList

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

Overrides:
getList in class StringListTag
Throws:
JspTagException


MMBase build 1.8.1.20060716