|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.oness.common.all.BaseObject
net.sf.oness.common.model.util.PaginatedList
Class that represents a paginated List, with elements from firstElement and at maximum maxElements elements from the full list of size elements.
Note that firstElement starts at 0
Any attempt to access other than the current page will cause an error.
This is a read only implementation and many of the
List methods are not implemented.
| Field Summary |
| Fields inherited from class net.sf.oness.common.all.BaseObject |
log |
| Constructor Summary | |
PaginatedList()
|
|
PaginatedList(java.util.List list,
int firstElement,
int maxElements,
int size)
|
|
| Method Summary | |
void |
add(int arg0,
java.lang.Object arg1)
Unsupported operation |
boolean |
add(java.lang.Object arg0)
Unsupported operation |
boolean |
addAll(java.util.Collection arg0)
Unsupported operation |
boolean |
addAll(int arg0,
java.util.Collection arg1)
Unsupported operation |
void |
clear()
Unsupported operation |
boolean |
contains(java.lang.Object arg0)
Unsupported operation |
boolean |
containsAll(java.util.Collection arg0)
Unsupported operation |
java.lang.Object |
get(int arg0)
Unsupported operation |
int |
getFirstElement()
First element of this page, starting at 0 |
int |
getLastPageNumber()
Calculate the last page number, starting at 0 |
java.util.List |
getList()
Get list with the elements of this page |
int |
getMaxElements()
Max number of elements in the page |
int |
getPageNumber()
Calculate the page number, starting at 0 |
int |
getPageSize()
Number of elements in this page |
int |
getSize()
Number of elements in all the pages |
int |
indexOf(java.lang.Object arg0)
Unsupported operation |
boolean |
isEmpty()
Unsupported operation |
java.util.Iterator |
iterator()
Unsupported operation |
int |
lastIndexOf(java.lang.Object arg0)
Unsupported operation |
java.util.ListIterator |
listIterator()
Unsupported operation |
java.util.ListIterator |
listIterator(int arg0)
Unsupported operation |
java.lang.Object |
remove(int arg0)
Unsupported operation |
boolean |
remove(java.lang.Object arg0)
Unsupported operation |
boolean |
removeAll(java.util.Collection arg0)
Unsupported operation |
boolean |
retainAll(java.util.Collection arg0)
Unsupported operation |
java.lang.Object |
set(int arg0,
java.lang.Object arg1)
Unsupported operation |
void |
setFirstElement(int firstElement)
|
void |
setList(java.util.List list)
|
void |
setMaxElements(int maxElements)
|
void |
setSize(int size)
Set the number of elements in all the pages |
int |
size()
Number of elements in all the pages |
java.util.List |
subList(int arg0,
int arg1)
Unsupported operation |
java.lang.Object[] |
toArray()
Unsupported operation |
java.lang.Object[] |
toArray(java.lang.Object[] arg0)
Unsupported operation |
| Methods inherited from class net.sf.oness.common.all.BaseObject |
clone, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
equals, hashCode |
| Constructor Detail |
public PaginatedList()
public PaginatedList(java.util.List list,
int firstElement,
int maxElements,
int size)
| Method Detail |
public java.util.List getList()
public void setList(java.util.List list)
public int getFirstElement()
public void setFirstElement(int firstElement)
public int getMaxElements()
public void setMaxElements(int maxElements)
public void setSize(int size)
public int getPageSize()
public int getPageNumber()
public int getLastPageNumber()
public java.util.Iterator iterator()
iterator in interface java.util.Listjava.lang.UnsupportedOperationExceptionCollection.iterator()public int size()
size in interface java.util.ListCollection.size()public int getSize()
size()
public void add(int arg0,
java.lang.Object arg1)
add in interface java.util.Listjava.lang.UnsupportedOperationExceptionList.add(int, java.lang.Object)public boolean add(java.lang.Object arg0)
add in interface java.util.Listjava.lang.UnsupportedOperationExceptionCollection.add(java.lang.Object)public boolean addAll(java.util.Collection arg0)
addAll in interface java.util.Listjava.lang.UnsupportedOperationExceptionCollection.addAll(java.util.Collection)
public boolean addAll(int arg0,
java.util.Collection arg1)
addAll in interface java.util.Listjava.lang.UnsupportedOperationExceptionList.addAll(int, java.util.Collection)public void clear()
clear in interface java.util.Listjava.lang.UnsupportedOperationExceptionCollection.clear()public boolean contains(java.lang.Object arg0)
contains in interface java.util.Listjava.lang.UnsupportedOperationExceptionCollection.contains(java.lang.Object)public boolean containsAll(java.util.Collection arg0)
containsAll in interface java.util.Listjava.lang.UnsupportedOperationExceptionCollection.containsAll(java.util.Collection)public java.lang.Object get(int arg0)
get in interface java.util.Listjava.lang.UnsupportedOperationExceptionList.get(int)public int indexOf(java.lang.Object arg0)
indexOf in interface java.util.Listjava.lang.UnsupportedOperationExceptionList.indexOf(java.lang.Object)public boolean isEmpty()
isEmpty in interface java.util.Listjava.lang.UnsupportedOperationExceptionCollection.isEmpty()public int lastIndexOf(java.lang.Object arg0)
lastIndexOf in interface java.util.Listjava.lang.UnsupportedOperationExceptionList.lastIndexOf(java.lang.Object)public java.util.ListIterator listIterator()
listIterator in interface java.util.Listjava.lang.UnsupportedOperationExceptionList.listIterator()public java.util.ListIterator listIterator(int arg0)
listIterator in interface java.util.Listjava.lang.UnsupportedOperationExceptionList.listIterator(int)public java.lang.Object remove(int arg0)
remove in interface java.util.Listjava.lang.UnsupportedOperationExceptionList.remove(int)public boolean remove(java.lang.Object arg0)
remove in interface java.util.Listjava.lang.UnsupportedOperationExceptionCollection.remove(java.lang.Object)public boolean removeAll(java.util.Collection arg0)
removeAll in interface java.util.Listjava.lang.UnsupportedOperationExceptionCollection.removeAll(java.util.Collection)public boolean retainAll(java.util.Collection arg0)
retainAll in interface java.util.Listjava.lang.UnsupportedOperationExceptionCollection.retainAll(java.util.Collection)
public java.lang.Object set(int arg0,
java.lang.Object arg1)
set in interface java.util.Listjava.lang.UnsupportedOperationExceptionList.set(int, java.lang.Object)
public java.util.List subList(int arg0,
int arg1)
subList in interface java.util.Listjava.lang.UnsupportedOperationExceptionList.subList(int, int)public java.lang.Object[] toArray()
toArray in interface java.util.Listjava.lang.UnsupportedOperationExceptionCollection.toArray()public java.lang.Object[] toArray(java.lang.Object[] arg0)
toArray in interface java.util.Listjava.lang.UnsupportedOperationExceptionCollection.toArray(java.lang.Object[])
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||