01: /*
02: * Copyright (c) 2000, Jacob Smullyan.
03: *
04: * This is part of SkunkDAV, a WebDAV client. See http://skunkdav.sourceforge.net/
05: * for the latest version.
06: *
07: * SkunkDAV is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License as published
09: * by the Free Software Foundation; either version 2, or (at your option)
10: * any later version.
11: *
12: * SkunkDAV is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with SkunkDAV; see the file COPYING. If not, write to the Free
19: * Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20: * 02111-1307, USA.
21: */
22:
23: package org.skunk.dav.client.gui.editor;
24:
25: import java.util.EventObject;
26:
27: public class EditEvent extends EventObject {
28: public static final int SAVE = 0;
29: public static final int CLOSE = 1;
30: public static final int SAVE_AS = 2;
31: public static final int DIRTY = 3;
32: public static final int NOT_DIRTY = 4;
33:
34: private int editCode;
35:
36: public EditEvent(DAVEditor editor, int editCode) {
37: super (editor);
38: this .editCode = editCode;
39: }
40:
41: public int getEditCode() {
42: return this .editCode;
43: }
44: }
45:
46: /* $Log: EditEvent.java,v $
47: /* Revision 1.5 2000/12/19 22:36:05 smulloni
48: /* adjustments to preamble.
49: /*
50: /* Revision 1.4 2000/12/03 23:53:26 smulloni
51: /* added license and copyright preamble to java files.
52: /*
53: /* Revision 1.3 2000/11/20 23:30:24 smullyan
54: /* more editor integration work.
55: /*
56: /* Revision 1.2 2000/11/17 20:25:07 smullyan
57: /* new SaveAction; a StateMonitor being added to handle application state.
58: /*
59: /* Revision 1.1 2000/11/14 23:14:39 smullyan
60: /* first cut at editing framework
61: /* */
|