org.objectweb.jac.aspects.gui
Interface CollectionModel

All Superinterfaces:
Model
All Known Subinterfaces:
ExtendedTableModel
All Known Implementing Classes:
LessAbstractListModel, org.objectweb.jac.aspects.gui.TableMap, TableModel

public interface CollectionModel
extends Model

An abstract representation of a collection.


Method Summary
 CollectionItem getCollection()
          Get the collection item represented by the model
 Object getObject(int index)
          Returns the object at the row represented by the given index.
 int getRowCount()
          Gets the number of rows of this collection.
 int indexOf(Object object)
          Returns the index of an object in the collection
 
Methods inherited from interface org.objectweb.jac.aspects.gui.Model
close
 

Method Detail

getRowCount

public int getRowCount()
Gets the number of rows of this collection.

Returns:
the number of rows

getObject

public Object getObject(int index)
Returns the object at the row represented by the given index.

Parameters:
index - a row index

indexOf

public int indexOf(Object object)
Returns the index of an object in the collection

Parameters:
object - the object whose index to find
Returns:
the index of object, or -1 if the object is not in the collection

getCollection

public CollectionItem getCollection()
Get the collection item represented by the model

Returns:
a collection item