public class PagerData
extends java.lang.Object
implements java.lang.Iterable<java.lang.Object>
Constructor and Description |
---|
PagerData(org.restlet.data.Request request,
javax.servlet.http.HttpServletRequest j2eeRequest) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getCollectionTagAttributeMap() |
java.lang.String |
getCollectionTagAttributes() |
java.lang.String |
getCollectionTagName() |
java.lang.String |
getItemTagName() |
int |
getPageSize() |
java.lang.String |
getSort() |
int |
getStart() |
int |
getTotal() |
boolean |
hasRequestPagerData() |
boolean |
isCollection() |
boolean |
isPagerAll() |
boolean |
isReverse() |
java.util.Iterator |
iterator() |
void |
setCollection(java.util.Collection collection)
Set the collection associated with this page, the collection must be sorted, so a sort is done by default inside.
|
void |
setCollection(java.util.Collection collection,
boolean collectionAlreaySorted)
Set the collection associated with this page, the collection must be sorted, so a sort is done by default.
|
void |
setCollectionTagAttributeMap(java.util.Map<java.lang.String,java.lang.String> collectionAttributeMap) |
void |
setCollectionTagName(java.lang.String collectionTagName) |
void |
setFromPageResult(PageResult<?> pageResult) |
void |
setItemTagName(java.lang.String itemTagName) |
void |
setReverse(boolean reverse) |
void |
setSort(java.lang.String sort) |
void |
setStart(int start) |
java.lang.String |
toXmlString() |
public PagerData(org.restlet.data.Request request, javax.servlet.http.HttpServletRequest j2eeRequest)
public int getPageSize()
public boolean isPagerAll()
public boolean hasRequestPagerData()
public int getStart()
public void setStart(int start)
public java.lang.String getSort()
public void setSort(java.lang.String sort)
public boolean isReverse()
public void setReverse(boolean reverse)
public boolean isCollection()
public void setFromPageResult(PageResult<?> pageResult)
public void setCollection(java.util.Collection collection)
setCollection(Collection, boolean)
method to disable internalmcollection
- the Collection
(if the paramter is an instance of QueryResultSet
, the collectionAlreaySorted is ignored and sort is always done on QueryResultSet
sort)public void setCollection(java.util.Collection collection, boolean collectionAlreaySorted)
collection
- the Collection
(if the paramter is an instance of QueryResultSet
, the collectionAlreaySorted is ignored and sort is always done on QueryResultSet
sort)collectionAlreaySorted
- false is the Collection
is a Data collection which has already been sorted previouslypublic java.lang.String getCollectionTagName()
public void setCollectionTagName(java.lang.String collectionTagName)
public java.util.Map<java.lang.String,java.lang.String> getCollectionTagAttributeMap()
public void setCollectionTagAttributeMap(java.util.Map<java.lang.String,java.lang.String> collectionAttributeMap)
public java.lang.String getCollectionTagAttributes()
public java.lang.String getItemTagName()
public void setItemTagName(java.lang.String itemTagName)
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable<java.lang.Object>
public java.lang.String toXmlString()
public int getTotal()
Copyright © 2001-2020 Jalios SA. All Rights Reserved.