net.databinder.models
Class SublistProjectionModel.Chunked
java.lang.Object
org.apache.wicket.model.AbstractReadOnlyModel
org.apache.wicket.model.LoadableDetachableModel
net.databinder.models.SublistProjectionModel
net.databinder.models.SublistProjectionModel.Chunked
- All Implemented Interfaces:
- java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel
- Direct Known Subclasses:
- SublistProjectionModel.Transposed
- Enclosing class:
- SublistProjectionModel
public static class SublistProjectionModel.Chunked
- extends SublistProjectionModel
Breaks the parent list into chunks of the requested size, in the same order as
the parent list.
- See Also:
- Serialized Form
| Methods inherited from class org.apache.wicket.model.LoadableDetachableModel |
detach, getObject, isAttached, onAttach, toString |
| Methods inherited from class org.apache.wicket.model.AbstractReadOnlyModel |
getObject, setObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
chunkSize
protected int chunkSize
SublistProjectionModel.Chunked
public SublistProjectionModel.Chunked(int chunkSize,
org.apache.wicket.model.IModel master)
transform
protected int transform(int parentIdx,
int sublistIdx)
- Specified by:
transform in class SublistProjectionModel
- Returns:
- index of master list mapped to parameters
getSize
protected int getSize(int parentIdx)
- Specified by:
getSize in class SublistProjectionModel
- Returns:
- size sublist at given index
getParentSize
protected int getParentSize()
- Specified by:
getParentSize in class SublistProjectionModel
- Returns:
- number of sublists
Copyright © 2005-2008 Nathan Hamblen. All Rights Reserved.