/[schmitzm]/branches/2.0-RC2/src/skrueger/geotools/selection/StyledLayerSelectionEvent.java
ViewVC logotype

Diff of /branches/2.0-RC2/src/skrueger/geotools/selection/StyledLayerSelectionEvent.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 102 by alfonx, Fri May 8 11:23:16 2009 UTC revision 103 by mojays, Fri May 8 13:48:00 2009 UTC
# Line 18  import java.beans.PropertyChangeEvent; Line 18  import java.beans.PropertyChangeEvent;
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    }    }
# Line 43  public class StyledLayerSelectionEvent e Line 43  public class StyledLayerSelectionEvent e
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    

Legend:
Removed from v.102  
changed lines
  Added in v.103

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26