Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap / src / org / gvsig / fmap / drivers / writing / commands / events / BeforeFieldEditEvent.java @ 20989

History | View | Annotate | Download (975 Bytes)

1
package org.gvsig.fmap.drivers.writing.commands.events;
2

    
3
import org.gvsig.fmap.drivers.reading.FieldDescription;
4
import org.gvsig.fmap.drivers.writing.EditionEvent;
5
import org.gvsig.fmap.drivers.writing.IEditableSource;
6

    
7
import com.iver.utiles.swing.threads.Cancellable;
8

    
9
public class BeforeFieldEditEvent extends EditionEvent {
10

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

    
40
}