Introduce UUID identified and openForEdit/freeze cycle
[lgpl/argeo-commons.git] / org.argeo.cms.ux / src / org / argeo / cms / ux / AbstractCmsEditable.java
index a1cd3d90e072e99b2209c98b8959c26141c8ed24..96c15bbca95660cbf7ec2b156d2ad0ab721b1278 100644 (file)
@@ -6,9 +6,14 @@ import org.argeo.api.cms.ux.CmsEditable;
 import org.argeo.api.cms.ux.CmsEditionEvent;
 import org.argeo.api.cms.ux.CmsEditionListener;
 
+/**
+ * Base class for implementing {@link CmsEditable}, mostly managing
+ * {@link CmsEditionListener}s.
+ */
 public abstract class AbstractCmsEditable implements CmsEditable {
        private IdentityHashMap<CmsEditionListener, Object> listeners = new IdentityHashMap<>();
 
+       /** Notifies listeners of a {@link CmsEditionEvent}. */
        protected void notifyListeners(CmsEditionEvent e) {
                if (CmsEditionEvent.START_EDITING == e.getType()) {
                        for (CmsEditionListener listener : listeners.keySet())