Revision 44871 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/raster/impl/DefaultRasterStoreNotification.java

View differences:

DefaultRasterStoreNotification.java
24 24

  
25 25
import org.gvsig.fmap.dal.DataStore;
26 26
import org.gvsig.fmap.dal.raster.RasterStoreNotification;
27
import org.gvsig.tools.observer.BaseNotification;
27 28

  
28 29
/**
29 30
 * Implements RasterNofication
30 31
 * @author dmartinezizquierdo
31 32
 *
32 33
 */
33
public class DefaultRasterStoreNotification implements RasterStoreNotification{
34
public class DefaultRasterStoreNotification 
35
        extends BaseNotification
36
        implements RasterStoreNotification 
37
  {
34 38

  
35
    private String type;
36
    private DataStore source;
37

  
38
    protected void init(DataStore source, String type) {
39
        this.source = source;
40
        this.type = type;
41
    }
42

  
43 39
    /**
44 40
     * @param source
45 41
     * @param type
46 42
     */
47 43
    public DefaultRasterStoreNotification(DataStore source, String type) {
48
        this.init(source, type);
44
        super(type, 1);
45
        this.setValue(0, source);
49 46
    }
50 47

  
51 48
    @Override
52 49
    public DataStore getSource() {
53
        return source;
50
        return (DataStore) this.getValue(0);
54 51
    }
55 52

  
56
    @Override
57
    public String getType() {
58
        return type;
59
    }
60 53
}

Also available in: Unified diff