|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IEntityCollection defines the interface to entity collection class that can store zero or more IEntity objects. The entities stored by this interface are type specified and must be defined by a single IEntityDescriptor. IEntityCollection is ordered and contained entities can be accesed by index. Implementations to this interface must not accept duplicate entities.
Method Summary | |
boolean |
addEntity(IEntity entity)
Adds the provided IEntity object to the end of selection object. |
boolean |
addEntity(int index,
IEntity entity)
Adds the provided IEntity object to at the specified index in the selection object. |
void |
addEntityChangeListener(IEntityChangeListener listener)
Adds IEntityChangeListener to receive notifications of performed data operations on all entities contained in the collection object. |
void |
addEntityListener(IEntityListener listener)
Adds IEntityListener to receive notifications of performed data operations on all entities contained in the collection object. |
void |
addSelectionListener(ISelectionListener listener)
Adds an IEntityCollectionListener to receive notifiactions of changes in the entity content of the collection object. |
java.util.List |
asList()
Returns a List that acts as a wrapper for the selection. |
java.util.Set |
asSet()
Returns a Set that acts as a wrapper for the selection. |
void |
clear()
Mutation method the removes all entities currently stored in the selection. |
boolean |
contains(IEntity entity)
Help method that returns true if the provided IEntity object exists in the selection otherwise false is returned. |
ISelection |
createSubSelection(int[] indexArray)
Creates a sub selection with the indexed entities in the called selection. |
ISelection |
createSubSelection(Qualifier qualifier)
Creates a sub selection with all qualified entities in the called selection. |
void |
deleteAll()
Deletes all contained entities. |
boolean |
doesAccept(IEntity entity)
Help method that returns true if the provided IEntity object will be accepted by the selection if added or inserted to it. |
java.lang.Object |
getData(int row,
int column)
Access method that views the selection objct as a grid where row is the entity index and column is the field index for the stored entities. |
IEntity |
getEntity(int index)
Access method that returns the contained IEntity object with the specified index. |
IEntityDescriptor |
getEntityDescriptor()
Access method that returns the IEntityDescriptor for the selection. |
int |
indexOf(IEntity entity)
Help method that returns the index of the provided IEntity object in the selection if it exists othewise a negative value is returned. |
int |
indexOf(IFieldDescriptor fieldDescriptor,
java.lang.Object fieldData)
Help method that returns the index of the the first entity object in the selection with the specified field set to the specified value. |
boolean |
isDirty()
Return true if any (one or more) of the collections's contained entities has the DIRTY flag set to true that is have unsaved changes. |
boolean |
isEmpty()
Boolean access method that return true if the selection is empty. |
java.util.Iterator |
iterator()
Returns a java.util.Iterator object that iterates over all entities in the selection. |
void |
refreshAll()
Performs a refresh on all contained entities. |
boolean |
removeEntity(IEntity entity)
Mutation method that removes the provided entity from the selection. |
IEntity |
removeEntity(int index)
Mutation method that removes the indexed entity from the selection. |
void |
removeEntityChangeListener(IEntityChangeListener listener)
Removes the specified IEntityListener from the collection object. |
void |
removeEntityListener(IEntityListener listener)
Removes the specified IEntityListener from the collection object. |
void |
removeSelectionListener(ISelectionListener listener)
Removes an IEntityCollectionListener from the collection object. |
void |
setData(int row,
int column,
java.lang.Object dataValue)
Mutation method that views the selection objct as a grid where row is the entity index and column is the field index for the stored entities. |
int |
size()
Access method that reurns the number entities currently contained in the selection object. |
void |
sort(java.util.Comparator comparator)
This method sorts the called selection using the provided comparator. |
void |
storeAll()
Stores all contained entities that have the DIRTY flag set to true. |
Method Detail |
public boolean isDirty()
isDirty
in interface IEntityPool
public void storeAll()
storeAll
in interface IEntityPool
public void deleteAll()
deleteAll
in interface IEntityPool
public void refreshAll()
refreshAll
in interface IEntityPool
public boolean addEntity(IEntity entity)
addEntity
in interface IEntityPool
public boolean addEntity(int index, IEntity entity)
public IEntity getEntity(int index)
public boolean removeEntity(IEntity entity)
removeEntity
in interface IEntityPool
public IEntity removeEntity(int index)
public java.util.Iterator iterator()
iterator
in interface IEntityPool
public void clear()
clear
in interface IEntityPool
public int size()
size
in interface IEntityPool
public boolean isEmpty()
isEmpty
in interface IEntityPool
public java.lang.Object getData(int row, int column)
public void setData(int row, int column, java.lang.Object dataValue)
public IEntityDescriptor getEntityDescriptor()
public void addSelectionListener(ISelectionListener listener)
public void removeSelectionListener(ISelectionListener listener)
public void addEntityListener(IEntityListener listener)
public void removeEntityListener(IEntityListener listener)
public void addEntityChangeListener(IEntityChangeListener listener)
public void removeEntityChangeListener(IEntityChangeListener listener)
public ISelection createSubSelection(int[] indexArray)
public ISelection createSubSelection(Qualifier qualifier)
public boolean contains(IEntity entity)
contains
in interface IEntityPool
public int indexOf(IEntity entity)
public int indexOf(IFieldDescriptor fieldDescriptor, java.lang.Object fieldData)
public boolean doesAccept(IEntity entity)
doesAccept
in interface IEntityPool
public void sort(java.util.Comparator comparator)
EntityCollator
public java.util.Set asSet()
asSet
in interface IEntityPool
public java.util.List asList()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |