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: import org.eclipse.core.runtime.IProgressMonitor;
18:
19: /**
20: * A listener that is notified when the FeatureTable begins loading features and stops loading features.
21: *
22: * @author Jesse
23: * @since 1.1.0
24: */
25: public interface IFeatureTableLoadingListener {
26: /**
27: * Called when the {@link FeatureTableControl} starts loading features. The progress monitor is only for cancelling the
28: * loading any other method will throw a {@link UnsupportedOperationException}
29: *
30: * @param monitor monitor that is being updated by the job loading the features.
31: */
32: public void loadingStarted(IProgressMonitor monitor);
33:
34: /**
35: * Called when the loading stops. Either canceled or finished
36: * @param canceled if true the loading was canceled.
37: *
38: */
39: public void loadingStopped(boolean canceled);
40: }
|