svn-gvsig-desktop / tags / v1_0_2_Build_906 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / edition / EditionEvent.java @ 10972
History | View | Annotate | Download (1.15 KB)
1 | 4832 | fjp | 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 | 6335 | fjp | public static int FIELD_EDITION = 4; |
9 | 4832 | fjp | |
10 | public static int CHANGE_TYPE_ADD = 10; |
||
11 | public static int CHANGE_TYPE_MODIFY = 11; |
||
12 | public static int CHANGE_TYPE_DELETE = 12; |
||
13 | 5115 | caballero | |
14 | public static int ALPHANUMERIC=13; |
||
15 | public static int GRAPHIC=14; |
||
16 | |||
17 | 4832 | fjp | IEditableSource source; // Ser? un EditableAdapter (o sus subclases: VectorialEditableAdapter
|
18 | // o VectorialEditableDBAdapter
|
||
19 | 5115 | caballero | int sourceType;
|
20 | int changeType;
|
||
21 | |||
22 | 5184 | caballero | /*public EditionEvent(IEditableSource source, int type)
|
23 | 4832 | fjp | {
|
24 | this.source = source;
|
||
25 | 5115 | caballero | this.changeType = type;
|
26 | 5184 | caballero | this.sourceType=GRAPHIC;
|
27 | }
|
||
28 | */
|
||
29 | public EditionEvent(IEditableSource source, int type,int sourceType) |
||
30 | { |
||
31 | this.source = source;
|
||
32 | this.changeType = type;
|
||
33 | 5115 | caballero | this.sourceType=sourceType;
|
34 | 4832 | fjp | } |
35 | /**
|
||
36 | * @return Returns the source.
|
||
37 | */
|
||
38 | public IEditableSource getSource() {
|
||
39 | return source;
|
||
40 | } |
||
41 | /**
|
||
42 | * @return Returns the type.
|
||
43 | */
|
||
44 | 5115 | caballero | public int getChangeType() { |
45 | return changeType;
|
||
46 | 4832 | fjp | } |
47 | |||
48 | 5115 | caballero | public int getSourceType(){ |
49 | return sourceType;
|
||
50 | } |
||
51 | |||
52 | |||
53 | 4832 | fjp | } |