Revision 1015 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/observer/ObservableHelper.java
ObservableHelper.java | ||
---|---|---|
32 | 32 |
|
33 | 33 |
private static final Logger logger = LoggerFactory.getLogger(ObservableHelper.class); |
34 | 34 |
|
35 |
public class BaseNotification implements Notification { |
|
35 |
public static class BaseNotification implements Notification {
|
|
36 | 36 |
|
37 | 37 |
private String type; |
38 | 38 |
protected Object[] values; |
39 | 39 |
protected boolean canceled = false; |
40 | 40 |
|
41 |
BaseNotification(String type, Object[] values) {
|
|
41 |
public BaseNotification(String type, int values) {
|
|
42 | 42 |
this.type = type; |
43 |
this.values = new Object[values]; |
|
44 |
} |
|
45 |
|
|
46 |
public BaseNotification(String type, Object[] values) { |
|
47 |
this.type = type; |
|
43 | 48 |
this.values = values; |
44 | 49 |
} |
45 | 50 |
|
... | ... | |
52 | 57 |
} |
53 | 58 |
|
54 | 59 |
public Object getValue(int n) { |
55 |
return this.values[1];
|
|
60 |
return this.values[n];
|
|
56 | 61 |
} |
57 | 62 |
|
58 | 63 |
public void setValue(Object value) { |
Also available in: Unified diff