org.caleigo.core
Interface IProxySelection
- All Superinterfaces:
- IEntityPool, ISelection, java.io.Serializable
- All Known Implementing Classes:
- ProxySelection
- public interface IProxySelection
- extends ISelection
- Version:
- 1.00
- Author:
- Dennis Zikovic
Method Summary |
void |
addProxyListener(IProxyListener listener)
Adds IProxyListener to receive notifications of performed
data operations on the entity object. |
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. |
ISelection |
getRemoteSelection()
Access method that returns the remote entity of the proxy.
|
ISelection |
getSourceSelection()
Access method that returns the source entity of the proxy.
|
boolean |
hasRemoteSelection()
Boolean access method that returns true if the proxy has a remote
entity if false then getRemoteEntity() will return null. |
boolean |
hasSourceSelection()
Boolean access method that returns true if the proxy has a source
entity if false then getSourceEntity() will return null. |
void |
removeProxyListener(IProxyListener listener)
Removes the specified IProxyListener from the entity object. |
void |
setRemoteSelection(ISelection entity)
Optional mutation method that throws an UnsupportedOperationException
if the implementing class does not support the method. |
Methods inherited from interface org.caleigo.core.ISelection |
addEntity, addEntity, addEntityChangeListener, addEntityListener, addSelectionListener, asList, asSet, clear, deleteAll, doesAccept, getData, getEntity, getEntityDescriptor, indexOf, indexOf, isDirty, isEmpty, iterator, refreshAll, removeEntity, removeEntity, removeEntityChangeListener, removeEntityListener, removeSelectionListener, setData, size, sort, storeAll |
hasRemoteSelection
public boolean hasRemoteSelection()
- Boolean access method that returns true if the proxy has a remote
entity if false then getRemoteEntity() will return null.
getRemoteSelection
public ISelection getRemoteSelection()
- Access method that returns the remote entity of the proxy.
May return null if the proxy does not currently have a remote.
hasSourceSelection
public boolean hasSourceSelection()
- Boolean access method that returns true if the proxy has a source
entity if false then getSourceEntity() will return null.
getSourceSelection
public ISelection getSourceSelection()
- Access method that returns the source entity of the proxy.
May return null if the proxy does not currently have a source entity.
setRemoteSelection
public void setRemoteSelection(ISelection entity)
- Optional mutation method that throws an UnsupportedOperationException
if the implementing class does not support the method.
addProxyListener
public void addProxyListener(IProxyListener listener)
- Adds IProxyListener to receive notifications of performed
data operations on the entity object.
removeProxyListener
public void removeProxyListener(IProxyListener listener)
- Removes the specified IProxyListener from the entity object.
contains
public boolean contains(IEntity entity)
- Help method that returns true if the provided IEntity object exists in
the selection otherwise false is returned.
- Specified by:
contains
in interface ISelection
createSubSelection
public ISelection createSubSelection(Qualifier qualifier)
- Creates a sub selection with all qualified entities in the called
selection. The created selection that should be independant of changes
in the source/called selection after the time of creation.
- Specified by:
createSubSelection
in interface ISelection
createSubSelection
public ISelection createSubSelection(int[] indexArray)
- Creates a sub selection with the indexed entities in the called
selection. The created selection that should be independant of changes
in the source/called selection after the time of creation.
- Specified by:
createSubSelection
in interface ISelection
Copyright © 2005 Caleigo. All Rights Reserved.