|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.ui.util.CollectionPager
public class CollectionPager
Convenience class for use in UI to encapsulate paging logic, and enable creation of HTML links which maintain context
Constructor Summary | |
---|---|
CollectionPager(Collection theAlwaysShowCollection,
Collection collection,
int count,
String startStr,
int start,
String pageSizeStr,
int pageSize)
Constructor. |
Method Summary | |
---|---|
Collection |
getCollection()
Returns the collection. |
int |
getCount()
Returns the count. |
int |
getLast()
|
Map |
getNextParams()
|
int |
getNextStart()
|
int |
getPageSize()
Returns the pageSize. |
HashMap |
getParams()
Returns the params. |
Map |
getPrevParams()
|
int |
getPrevStart()
|
Map |
getRestartParams()
|
int |
getStart()
Returns the start. |
int |
getStart1()
Returns the start. |
String |
getTarget()
|
boolean |
isNext()
|
boolean |
isPrev()
|
void |
setCollection(Collection collection)
Sets the collection. |
void |
setCount(int count)
Sets the count. |
void |
setPageSize(int pageSize)
Sets the pageSize. |
void |
setPageSizeStr(String pageSizeStr)
|
void |
setParam(String key,
Object value)
|
void |
setParams(Map map)
Adds to any existing params - used for generating links |
void |
setStartStr(String startStr)
|
void |
setTarget(String target)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionPager(Collection theAlwaysShowCollection, Collection collection, int count, String startStr, int start, String pageSizeStr, int pageSize)
collection
- to pagecount
- total number of elements in collectionstartStr
- start
- pageSizeStr
- pageSize
- Method Detail |
---|
public String getTarget()
public void setTarget(String target)
target
- The target to set.public boolean isNext()
public boolean isPrev()
public int getNextStart()
public int getPrevStart()
public int getLast()
public Map getNextParams()
public Map getPrevParams()
public Map getRestartParams()
public Collection getCollection()
public int getCount()
public int getPageSize()
public HashMap getParams()
public void setCollection(Collection collection)
collection
- The collection to setpublic void setCount(int count)
count
- The count to setpublic void setPageSize(int pageSize)
pageSize
- The pageSize to setpublic void setParam(String key, Object value)
key
- value
- public void setParams(Map map)
map
- The params to setpublic int getStart()
public int getStart1()
public void setPageSizeStr(String pageSizeStr)
pageSizeStr
- The pageSizeStr to set.public void setStartStr(String startStr)
startStr
- The startStr to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |