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.operations;
16:
17: /**
18: * Notified when the results of the {@link OpFilter} is obtained by the {@link LazyOpFilter}
19: * @author Jesse
20: * @since 1.1.0
21: */
22: public interface ILazyOpListener {
23:
24: /**
25: * Called when a result has been found. Please ensure that this does not block as it is called within a lock. A dangerous
26: * practice admittedly but has to be done in this case so the tools are correctly set. If a lot of work must be done
27: * make sure it is done in a new thread
28: *
29: * @param result the result of whether the OpFilter evaluated to true or false.
30: */
31: void notifyResultObtained(boolean result);
32:
33: }
|