svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / DataStoreNotification.java @ 40435
History | View | Annotate | Download (1.72 KB)
1 | 40435 | jjdelcerro | package org.gvsig.fmap.dal; |
---|---|---|---|
2 | |||
3 | /**
|
||
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 | public interface DataStoreNotification { |
||
11 | |||
12 | /** Complex notification for special situations */
|
||
13 | public static final String COMPLEX_NOTIFICATION = "complex_notification"; |
||
14 | |||
15 | /** Fired before opening the store */
|
||
16 | public static final String BEFORE_OPEN = "before_Open_DataStore"; |
||
17 | |||
18 | /** Fired after opening the store */
|
||
19 | public static final String AFTER_OPEN = "after_Open_DataStore"; |
||
20 | |||
21 | /** Fired before closing the store */
|
||
22 | public static final String BEFORE_CLOSE = "before_Close_DataStore"; |
||
23 | |||
24 | /** Fired after closing the store */
|
||
25 | public static final String AFTER_CLOSE = "after_Close_DataStore"; |
||
26 | |||
27 | /** Fired before disposing the store */
|
||
28 | public static final String BEFORE_DISPOSE = "before_Dispose_DataStore"; |
||
29 | |||
30 | /** Fired after disposing the store */
|
||
31 | public static final String AFTER_DISPOSE = "after_Dispose_DataStore"; |
||
32 | |||
33 | /** Fired after the store selection has changed */
|
||
34 | public static final String SELECTION_CHANGE = "after_SelectionChange_DataStore"; |
||
35 | |||
36 | /** Fired when a resource of the store has changed */
|
||
37 | public static final String RESOURCE_CHANGED = "resourceChange_DataStore"; |
||
38 | |||
39 | /**
|
||
40 | * Returns the DataStore that produced this notification
|
||
41 | * @return DataStore source of this
|
||
42 | */
|
||
43 | public DataStore getSource();
|
||
44 | |||
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 | public String getType(); |
||
50 | |||
51 | } |