net.databinder.models
Class SublistProjectionModel.Transposed

java.lang.Object
  extended by org.apache.wicket.model.AbstractReadOnlyModel
      extended by org.apache.wicket.model.LoadableDetachableModel
          extended by net.databinder.models.SublistProjectionModel
              extended by net.databinder.models.SublistProjectionModel.Chunked
                  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class net.databinder.models.SublistProjectionModel
SublistProjectionModel.Chunked, SublistProjectionModel.ProjectedSublist, SublistProjectionModel.Transposed
 
Field Summary
 
Fields inherited from class net.databinder.models.SublistProjectionModel.Chunked
chunkSize
 
Constructor Summary
SublistProjectionModel.Transposed(int columns, org.apache.wicket.model.IModel master)
           
 
Method Summary
protected  int getSize(int parentIdx)
           
protected  int transform(int parentIdx, int sublistIdx)
           
 
Methods inherited from class net.databinder.models.SublistProjectionModel.Chunked
getParentSize
 
Methods inherited from class net.databinder.models.SublistProjectionModel
getMasterList, load, onDetach
 
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
 

Constructor Detail

SublistProjectionModel.Transposed

public SublistProjectionModel.Transposed(int columns,
                                         org.apache.wicket.model.IModel master)
Method Detail

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.