Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / edition / EditionEvent.java @ 5893

History | View | Annotate | Download (1.11 KB)

1
package com.iver.cit.gvsig.fmap.edition;
2

    
3
public class EditionEvent {
4
        public static int START_EDITION = 0;
5
        public static int STOP_EDITION = 1;
6
        public static int CANCEL_EDITION = 2;
7
        public static int ROW_EDITION = 3;
8

    
9
        public static int CHANGE_TYPE_ADD = 10;
10
        public static int CHANGE_TYPE_MODIFY = 11;
11
        public static int CHANGE_TYPE_DELETE = 12;
12

    
13
        public static int ALPHANUMERIC=13;
14
    public static int GRAPHIC=14;
15

    
16
        IEditableSource source; // Ser? un EditableAdapter (o sus subclases: VectorialEditableAdapter
17
                                        // o VectorialEditableDBAdapter
18
        int sourceType;
19
        int changeType;
20

    
21
        /*public EditionEvent(IEditableSource source, int type)
22
        {
23
                this.source = source;
24
                this.changeType = type;
25
                this.sourceType=GRAPHIC;
26
        }
27
        */
28
        public EditionEvent(IEditableSource source, int type,int sourceType)
29
        {
30
                this.source = source;
31
                this.changeType = type;
32
                this.sourceType=sourceType;
33
        }
34
        /**
35
         * @return Returns the source.
36
         */
37
        public IEditableSource getSource() {
38
                return source;
39
        }
40
        /**
41
         * @return Returns the type.
42
         */
43
        public int getChangeType() {
44
                return changeType;
45
        }
46

    
47
        public int getSourceType(){
48
                return sourceType;
49
        }
50

    
51

    
52
}