Statistics
| Revision:

svn-document-layout / trunk / org.gvsig.app.document.layout2.app / org.gvsig.app.document.layout2.app.mainplugin / src / main / java / org / gvsig / app / project / documents / layout / TocModelChangedNotification.java @ 168

History | View | Annotate | Download (970 Bytes)

1 153 cmartinez
package org.gvsig.app.project.documents.layout;
2
3
import org.gvsig.fmap.mapcontext.MapContext;
4
5
/**
6
 * Fired when the Toc model changes.
7
 * @author Cesar Martinez Izquierdo
8
 *
9
 */
10
public interface TocModelChangedNotification {
11
12 168 cmartinez
        public enum Type {
13
                /**
14
                 * The model (MapContext object) has been set (understood as
15
                 * added, removed or replaced) by a new one, including a null one.
16
                 */
17
                MODEL_SET,
18
19
                /**
20
                 * There has been some change on the model collection
21
                 * (layer added or removed, visibility changed, etc)
22
                 */
23
                MODEL_CHANGED;
24
        }
25
26 153 cmartinez
    /**
27
     * Returns the type of this notification, represented by one of the constants defined in this interface.
28
     * @return a String containing this notification's type
29
     */
30 168 cmartinez
    public Type getType();
31 153 cmartinez
32
    /**
33
     * Gets the added or changed model
34
     *
35
     * @return The added or changed model, or <code>null</code> if the
36
     * model has been removed
37
     */
38
    public MapContext getModel();
39
}