Introduce always editing CmsEditable.
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / ui / CmsEditable.java
index bc952c3021b6755908902058379fd0e71706ee1f..72cc5971ab869e7e4bbd448a3111c652c8142a00 100644 (file)
@@ -33,4 +33,25 @@ public interface CmsEditable {
                }
        };
 
+       public static CmsEditable ALWAYS_EDITING = new CmsEditable() {
+
+               @Override
+               public void stopEditing() {
+               }
+
+               @Override
+               public void startEditing() {
+               }
+
+               @Override
+               public Boolean isEditing() {
+                       return true;
+               }
+
+               @Override
+               public Boolean canEdit() {
+                       return true;
+               }
+       };
+
 }