Statistics
| Revision:

root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / edition / BeforeFieldEditEvent.java @ 8181

History | View | Annotate | Download (853 Bytes)

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

    
3
import com.iver.cit.gvsig.fmap.drivers.FieldDescription;
4
import com.iver.utiles.swing.threads.Cancellable;
5

    
6
public class BeforeFieldEditEvent extends EditionEvent {
7

    
8
        FieldDescription newField;
9
        int changeType;
10
        Cancellable cancel;
11
        public BeforeFieldEditEvent(IEditableSource source, FieldDescription field, int changeType, Cancellable cancel)
12
        {
13
                super(source, EditionEvent.FIELD_EDITION, EditionEvent.ALPHANUMERIC);
14
                this.newField = field;
15
                this.changeType = changeType;
16
                this.cancel = cancel;
17
        }
18
        /**
19
         * @return Returns the cancel.
20
         */
21
        public Cancellable getCancel() {
22
                return cancel;
23
        }
24
        /**
25
         * @return Returns the changeType.
26
         */
27
        public int getChangeType() {
28
                return changeType;
29
        }
30
        /**
31
         * @return Returns the new field.
32
         */
33
        public FieldDescription getNewField() {
34
                return newField;
35
        }
36

    
37
}