net.databinder.models
Class SublistProjectionModel.Transposed
java.lang.Object
org.apache.wicket.model.AbstractReadOnlyModel
org.apache.wicket.model.LoadableDetachableModel
net.databinder.models.SublistProjectionModel
net.databinder.models.SublistProjectionModel.Chunked
net.databinder.models.SublistProjectionModel.Transposed
- All Implemented Interfaces:
- java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel
- Enclosing class:
- SublistProjectionModel
public static class SublistProjectionModel.Transposed
- extends SublistProjectionModel.Chunked
Transposes rows and columns so the list runs top to bottom rather than
left to right.
- See Also:
- Serialized Form
|
Method Summary |
protected int |
getSize(int parentIdx)
|
protected int |
transform(int parentIdx,
int sublistIdx)
|
| 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 |
SublistProjectionModel.Transposed
public SublistProjectionModel.Transposed(int columns,
org.apache.wicket.model.IModel master)
transform
protected int transform(int parentIdx,
int sublistIdx)
- Overrides:
transform in class SublistProjectionModel.Chunked
- Returns:
- index of master list mapped to parameters
getSize
protected int getSize(int parentIdx)
- Overrides:
getSize in class SublistProjectionModel.Chunked
- Returns:
- size sublist at given index
Copyright © 2005-2008 Nathan Hamblen. All Rights Reserved.