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