Class CmsEntityObserver
java.lang.Object
org.opencms.ade.contenteditor.client.CmsEntityObserver
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.ValueChangeHandler<org.opencms.acacia.shared.CmsEntity>
,com.google.gwt.event.shared.EventHandler
public class CmsEntityObserver
extends Object
implements com.google.gwt.event.logical.shared.ValueChangeHandler<org.opencms.acacia.shared.CmsEntity>
Observer for content entities, used to notify listeners of entity changes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntityChangeListener
(I_CmsEntityChangeListener changeListener, String changeScope) Adds an entity change listener for the given scope.void
clear()
Removes this observer from the entities change handler registration and clears registered listeners.void
onValueChange
(com.google.gwt.event.logical.shared.ValueChangeEvent<org.opencms.acacia.shared.CmsEntity> event) protected void
safeExecuteChangeListener
(org.opencms.acacia.shared.CmsEntity entity, I_CmsEntityChangeListener listener) Calls an entity change listener, catching any errors.
-
Constructor Details
-
Method Details
-
addEntityChangeListener
Adds an entity change listener for the given scope.- Parameters:
changeListener
- the change listenerchangeScope
- the change scope
-
clear
Removes this observer from the entities change handler registration and clears registered listeners.
-