root / branches / Mobile_Compatible_Hito_1 / libFMap / src-data / org / gvsig / data / DataStoreNotification.java @ 21606
History | View | Annotate | Download (1.33 KB)
1 |
package org.gvsig.data; |
---|---|
2 |
|
3 |
import org.gvsig.data.commands.ICommand; |
4 |
import org.gvsig.data.vectorial.IFeature; |
5 |
|
6 |
public class DataStoreNotification implements IDataStoreNotification { |
7 |
private String type; |
8 |
private IDataStore source;
|
9 |
private IDataCollection previousSelection = null; |
10 |
private IDataCollection newSelection = null; |
11 |
private IFeature feature = null; |
12 |
private ICommand command = null; |
13 |
|
14 |
public DataStoreNotification(IDataStore source, String type){ |
15 |
this.init(source,type);
|
16 |
} |
17 |
|
18 |
protected void init(IDataStore source, String type){ |
19 |
this.source = source;
|
20 |
this.type = type;
|
21 |
} |
22 |
|
23 |
public DataStoreNotification(IDataStore source, String type, IFeature feature){ |
24 |
this.init(source,type);
|
25 |
this.feature = feature;
|
26 |
} |
27 |
public DataStoreNotification(IDataStore source, String type, ICommand command){ |
28 |
this.init(source,type);
|
29 |
this.command = command;
|
30 |
} |
31 |
|
32 |
public DataStoreNotification(IDataStore source, String type, IDataCollection previousSeCollection, IDataCollection newSelection){ |
33 |
this.init(source,type);
|
34 |
this.previousSelection = previousSeCollection;
|
35 |
this.newSelection = newSelection;
|
36 |
} |
37 |
|
38 |
public IDataCollection getNewSelection() {
|
39 |
return newSelection;
|
40 |
} |
41 |
|
42 |
public IDataCollection getPreviousSelection() {
|
43 |
return previousSelection;
|
44 |
} |
45 |
|
46 |
public IDataStore getSource() {
|
47 |
return source;
|
48 |
} |
49 |
|
50 |
public String getType() { |
51 |
return type;
|
52 |
} |
53 |
|
54 |
} |