svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / DataStoreNotification.java @ 33717
History | View | Annotate | Download (1.72 KB)
1 | 24496 | jmvivo | package org.gvsig.fmap.dal; |
---|---|---|---|
2 | 19399 | vcaballero | |
3 | 24397 | jiyarza | /**
|
4 | * This interface represents a notification produced by a DataStore.
|
||
5 | *
|
||
6 | * Notifications can be of several types. This interface also defines a set
|
||
7 | * of constants that represent the types of notifications that a DataStore
|
||
8 | * can produce.
|
||
9 | */
|
||
10 | 21045 | jmvivo | public interface DataStoreNotification { |
11 | 19399 | vcaballero | |
12 | 24397 | jiyarza | /** Complex notification for special situations */
|
13 | 19399 | vcaballero | public static final String COMPLEX_NOTIFICATION = "complex_notification"; |
14 | |||
15 | 24397 | jiyarza | /** Fired before opening the store */
|
16 | 19399 | vcaballero | public static final String BEFORE_OPEN = "before_Open_DataStore"; |
17 | 24397 | jiyarza | |
18 | /** Fired after opening the store */
|
||
19 | 19399 | vcaballero | public static final String AFTER_OPEN = "after_Open_DataStore"; |
20 | 23772 | jjdelcerro | |
21 | 24397 | jiyarza | /** Fired before closing the store */
|
22 | 19399 | vcaballero | public static final String BEFORE_CLOSE = "before_Close_DataStore"; |
23 | 24397 | jiyarza | |
24 | /** Fired after closing the store */
|
||
25 | 19399 | vcaballero | public static final String AFTER_CLOSE = "after_Close_DataStore"; |
26 | 23772 | jjdelcerro | |
27 | 24397 | jiyarza | /** Fired before disposing the store */
|
28 | 19399 | vcaballero | public static final String BEFORE_DISPOSE = "before_Dispose_DataStore"; |
29 | 24397 | jiyarza | |
30 | /** Fired after disposing the store */
|
||
31 | 23772 | jjdelcerro | public static final String AFTER_DISPOSE = "after_Dispose_DataStore"; |
32 | 19399 | vcaballero | |
33 | 24397 | jiyarza | /** Fired after the store selection has changed */
|
34 | 22353 | jmvivo | public static final String SELECTION_CHANGE = "after_SelectionChange_DataStore"; |
35 | 19399 | vcaballero | |
36 | 24397 | jiyarza | /** Fired when a resource of the store has changed */
|
37 | 20624 | jmvivo | public static final String RESOURCE_CHANGED = "resourceChange_DataStore"; |
38 | |||
39 | 24397 | jiyarza | /**
|
40 | * Returns the DataStore that produced this notification
|
||
41 | * @return DataStore source of this
|
||
42 | */
|
||
43 | 21045 | jmvivo | public DataStore getSource();
|
44 | 24397 | jiyarza | |
45 | /**
|
||
46 | * Returns the type of this notification, represented by one of the constants defined in this interface.
|
||
47 | * @return a String containing this notification's type
|
||
48 | */
|
||
49 | 19399 | vcaballero | public String getType(); |
50 | |||
51 | } |