]> git.argeo.org Git - lgpl/argeo-commons.git/blob - ux/CmsEditionEvent.java
Prepare next development cycle
[lgpl/argeo-commons.git] / ux / CmsEditionEvent.java
1 package org.argeo.api.cms.ux;
2
3 import java.util.EventObject;
4
5 /** Notify of the edition lifecycle */
6 public class CmsEditionEvent extends EventObject {
7 private static final long serialVersionUID = 950914736016693110L;
8
9 public final static Integer START_EDITING = 0;
10 public final static Integer STOP_EDITING = 1;
11
12 private final Integer type;
13 private final CmsEditable cmsEditable;
14
15 public CmsEditionEvent(Object source, Integer type, CmsEditable cmsEditable) {
16 super(source);
17 this.type = type;
18 this.cmsEditable = cmsEditable;
19 }
20
21 public Integer getType() {
22 return type;
23 }
24
25 public CmsEditable getCmsEditable() {
26 return cmsEditable;
27 }
28
29 }