18 |
/** |
/** |
19 |
* Extends the {@link PropertyChangeEvent} by maintaining the event emitter. |
* Extends the {@link PropertyChangeEvent} by maintaining the event emitter. |
20 |
* The emitter is the {@link StyledLayerSelectionModel} while the event {@link #getSource() source} |
* The emitter is the {@link StyledLayerSelectionModel} while the event {@link #getSource() source} |
21 |
* holds the component which is component which causes the {@link StyledLayerSelectionModel} |
* holds the component which causes the {@link StyledLayerSelectionModel} |
22 |
* to invoke the event (e.g. a chart, a map or a feature table). |
* to invoke the event (e.g. a chart, a map or a feature table). |
23 |
* @author <a href="mailto:[email protected]">Martin Schmitz</a> (University of Bonn/Germany) |
* @author <a href="mailto:[email protected]">Martin Schmitz</a> (University of Bonn/Germany) |
24 |
*/ |
*/ |
25 |
public class StyledLayerSelectionEvent extends PropertyChangeEvent { |
public class StyledLayerSelectionEvent extends PropertyChangeEvent { |
26 |
/** Holds the {@link StyledLayerSelectionModel} which invokes the event. */ |
/** Holds the {@link StyledLayerSelectionModel} which invokes the event. */ |
27 |
protected StyledLayerSelectionModel emitter = null; |
protected StyledLayerSelectionModel<?> emitter = null; |
28 |
|
|
29 |
/** |
/** |
30 |
* Creates a new event. |
* Creates a new event. |
31 |
* @param emitter the {@link StyledLayerSelectionModel} which invokes the event |
* @param emitter the {@link StyledLayerSelectionModel} which invokes the event |
32 |
* @param source the object which is responsable for the change (e.g. map or table); |
* @param source the object which is responsible for the change (e.g. map or table); |
33 |
* can be {@code null} if its a refresh event with no responsible |
* can be {@code null} if its a refresh event with no responsible |
34 |
* @param propertyName the name of the changed property |
* @param propertyName the name of the changed property |
35 |
* @param oldValue the old property value (can be <code>null</code>) |
* @param oldValue the old property value (can be <code>null</code>) |
36 |
* @param newValue the new property value (can be <code>null</code>) |
* @param newValue the new property value (can be <code>null</code>) |
37 |
*/ |
*/ |
38 |
public StyledLayerSelectionEvent(StyledLayerSelectionModel emitter, Object source, String propertyName, Object oldValue, Object newValue) { |
public StyledLayerSelectionEvent(StyledLayerSelectionModel<?> emitter, Object source, String propertyName, Object oldValue, Object newValue) { |
39 |
super(source, propertyName, oldValue, newValue); |
super(source, propertyName, oldValue, newValue); |
40 |
this.emitter = emitter; |
this.emitter = emitter; |
41 |
} |
} |
43 |
/** |
/** |
44 |
* Returns the {@link StyledLayerSelectionModel} which invokes the event. |
* Returns the {@link StyledLayerSelectionModel} which invokes the event. |
45 |
*/ |
*/ |
46 |
public StyledLayerSelectionModel getEmitter() { |
public StyledLayerSelectionModel<?> getEmitter() { |
47 |
return emitter; |
return emitter; |
48 |
} |
} |
49 |
|
|