01: /* uDig - User Friendly Desktop Internet GIS client
02: * http://udig.refractions.net
03: * (C) 2004, Refractions Research Inc.
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation;
08: * version 2.1 of the License.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: */
15: package net.refractions.udig.ui;
16:
17: /**
18: * Listener that is notified when a drop is completed.
19: *
20: * @author Jesse
21: * @since 1.1.0
22: */
23: public interface IDropHandlerListener {
24: /**
25: * Called when an action is about to be ran.
26: *
27: * @param action action about to be ran.
28: */
29: public void starting(IDropAction action);
30:
31: /**
32: * Called when no drop action could be found that can process the data.
33: *
34: * @param data data that was dropped.
35: */
36: public void noAction(Object data);
37:
38: /**
39: * Called when an action is complete.
40: *
41: * @param action completed action.
42: * @param error Null unless an error occurred during the execution of
43: * the drop event;
44: */
45: public void done(IDropAction action, Throwable error);
46: }
|