public class TLspEditingSupport extends Object
Constructor and Description |
---|
TLspEditingSupport(ILspLayer aLayer)
Creates a new editing support.
|
Modifier and Type | Method and Description |
---|---|
void |
addEditingStateListener(ILspEditingStateListener aListener)
Adds an
ILspEditingStateListener to this ILspEditing . |
void |
editedObjectChanged(Object aObject)
Deprecated.
Use editedObjectsChanged() instead.
|
void |
editedObjectsChanged(Collection<Object> aObjectList)
This method should be called when a collection of objects that has been edited has changed significantly.
|
protected void |
fireEditingEvent(List<Object> aObjects,
TLspEditingStateEvent.ChangeType aChangeType)
Fires an editing event.
|
protected void |
fireEditingEvent(Object aObject,
TLspEditingStateEvent.ChangeType aChangeType)
Deprecated.
Use fireEditingEvent() with a list of objects instead.
|
ILcdCollection<Object> |
getObjects()
Returns the edited objects.
|
void |
removeEditingStateListener(ILspEditingStateListener aListener)
Removes an
ILspEditingStateListener from this ILspEditing . |
public TLspEditingSupport(ILspLayer aLayer)
aLayer
- the layer for which this editing support is created.public ILcdCollection<Object> getObjects()
public void addEditingStateListener(ILspEditingStateListener aListener)
ILspEditingStateListener
to this ILspEditing
.aListener
- the ILspEditingStateListener
to be added.public void removeEditingStateListener(ILspEditingStateListener aListener)
ILspEditingStateListener
from this ILspEditing
.aListener
- the ILspEditingStateListener
to be removed.public void editedObjectChanged(Object aObject)
aObject
- the objectTLspEditingStateEvent.ChangeType.EDITING_CHANGE
public void editedObjectsChanged(Collection<Object> aObjectList)
aObjectList
- the collection of objects that have changedTLspEditingStateEvent.ChangeType.EDITING_CHANGE
protected void fireEditingEvent(Object aObject, TLspEditingStateEvent.ChangeType aChangeType)
aObject
- the objectaChangeType
- the change typeTLspEditingStateEvent
protected void fireEditingEvent(List<Object> aObjects, TLspEditingStateEvent.ChangeType aChangeType)
aObjects
- a list of objectsaChangeType
- the change typeTLspEditingStateEvent