|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.graph.IlpAbstractGraphSelectionModel
ilog.cpl.equipment.IlpAbstractEquipmentSelectionModel
ilog.cpl.equipment.IlpDefaultEquipmentSelectionModel
public class IlpDefaultEquipmentSelectionModel
This is the default implementation of
IlpEquipmentSelectionModel.
It manages an unordered set of selected objects. When this set changes,
EquipmentSelectionEvents are sent.
| Field Summary |
|---|
| Fields inherited from class ilog.cpl.graph.IlpAbstractGraphSelectionModel |
|---|
helper |
| Constructor Summary | |
|---|---|
IlpDefaultEquipmentSelectionModel()
Creates an equipment selection model, which is able to manage an unordered set of selected objects. |
|
| Methods inherited from class ilog.cpl.equipment.IlpAbstractEquipmentSelectionModel |
|---|
addEquipmentSelectionListener, fireEquipmentSelectionEvent, removeEquipmentSelectionListener |
| Methods inherited from class ilog.cpl.graph.IlpAbstractGraphSelectionModel |
|---|
addSelectionListener, fireGraphSelectionEvent, getRepresentationObjectMapper, removeSelectionListener, setRepresentationObjectMapper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.cpl.graph.IlpGraphSelectionModel |
|---|
getRepresentationObjectMapper, setRepresentationObjectMapper |
| Constructor Detail |
|---|
public IlpDefaultEquipmentSelectionModel()
EquipmentSelectionEvents are sent.
| Method Detail |
|---|
public IlpRepresentationObject getSelectedRepresentationObject()
IlpRepresentationObject
from the collection of selected representation objects.
Returns null if there is no selected object.
null if
the selection is empty.public Collection getSelectedRepresentationObjects()
IlpRepresentationObjects.
The set should be ordered if the component implementing this interface
supports an ordered selection.
Returns an empty set if there is no selected object.
IlpRepresentationObjects.public void setSelectedRepresentationObject(IlpRepresentationObject object)
IlpRepresentationObject.
This has no effect if the given object is already selected.
object - The object that will become the selection.public void setSelectedRepresentationObjects(Collection selected)
IlpRepresentationObjects.
selected - The collection of representation objects that will become
the selection.public boolean isRepresentationObjectSelected(IlpRepresentationObject object)
true if the given
IlpRepresentationObject
is selected, false otherwise.
object - The representation object which may be selected.public void addSelectionRepresentationObject(IlpRepresentationObject object)
IlpRepresentationObject to the
selection.
This has no effect if the given object is null or if
it has already been selected.
object - The representation object that will be added to the
selection.public void removeSelectionRepresentationObject(IlpRepresentationObject object)
IlpRepresentationObject from the
selection.
This has no effect if the given object is null or if it
is currently unselected.
object - The representation object that will be removed from the
selection.public void removeSelectionRepresentationObjects(Collection ros)
IlpRepresentationObjects from
the selection.
This has no effect if the given objects are null or if
they are currently unselected.
ros - The collection of representation objects to be removedpublic void clearSelection()
public IlpObject getSelectedObject()
IlpObject
from the collection of selected objects.
Returns null if there is no selected object.
public Collection getSelectedObjects()
IlpObjects.
The set should be ordered if the component implementing this interface
supports an ordered selection.
Returns an empty set if there is no selected object.
IlpObjects.public void setSelectedObject(IlpObject object)
IlpObject.
This has no effect if the given object is already selected.
object - The object that will become the selection.public void setSelectedObjects(Collection objects)
IlpObjects.
objects - The collection of objects that will become the selection.public boolean isObjectSelected(IlpObject object)
true if the given IlpObject
is selected, false otherwise.
object - The object which may be selected.public void addSelectionObject(IlpObject object)
IlpObject to the selection.
This has no effect if the given object is null or if
it has already been selected.
object - The object that will be added to the selection.public void removeSelectionObject(IlpObject object)
IlpObject from the selection.
This has no effect if the given object is null or if it
is currently unselected.
object - The object that will be removed from the selection.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||