org.objectweb.jac.aspects.gui
Class CollectionPosition

java.lang.Object
  extended byorg.objectweb.jac.aspects.gui.CollectionPosition

public class CollectionPosition
extends Object

A class that represents a position in a given collection.


Constructor Summary
CollectionPosition(CollectionView collectionView, CollectionItem collection, int index, Object substance)
          Constructs a new position.
 
Method Summary
 CollectionItem getCollection()
          Returns the collection.
 CollectionView getCollectionView()
          Returns the collection view.
 int getIndex()
          The index of this position in the collection.
 Object getSubstance()
          Returns the substance that holds the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionPosition

public CollectionPosition(CollectionView collectionView,
                          CollectionItem collection,
                          int index,
                          Object substance)
Constructs a new position.

Parameters:
collectionView - the collection view that corresponds to the substance
collection - the substance collection
index - the row index of this position
substance - the object that holds the collection
Method Detail

getCollectionView

public CollectionView getCollectionView()
Returns the collection view.


getCollection

public CollectionItem getCollection()
Returns the collection.


getIndex

public int getIndex()
The index of this position in the collection.


getSubstance

public Object getSubstance()
Returns the substance that holds the collection.