/[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

trunk/src/skrueger/geotools/selection/StyledLayerSelectionEvent.java revision 96 by alfonx, Fri May 8 11:23:16 2009 UTC branches/2.0-RC2/src/skrueger/geotools/selection/StyledLayerSelectionEvent.java revision 621 by alfonx, Thu Jan 28 10:06:05 2010 UTC
# Line 1  Line 1 
1    /*******************************************************************************
2     * Copyright (c) 2009 Martin O. J. Schmitz.
3     *
4     * This file is part of the SCHMITZM library - a collection of utility
5     * classes based on Java 1.6, focusing (not only) on Java Swing
6     * and the Geotools library.
7     *
8     * The SCHMITZM project is hosted at:
9     * http://wald.intevation.org/projects/schmitzm/
10     *
11     * This program is free software; you can redistribute it and/or
12     * modify it under the terms of the GNU Lesser General Public License
13     * as published by the Free Software Foundation; either version 3
14     * of the License, or (at your option) any later version.
15     *
16     * This program is distributed in the hope that it will be useful,
17     * but WITHOUT ANY WARRANTY; without even the implied warranty of
18     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19     * GNU General Public License for more details.
20     *
21     * You should have received a copy of the GNU Lesser General Public License (license.txt)
22     * along with this program; if not, write to the Free Software
23     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
24     * or try this link: http://www.gnu.org/licenses/lgpl.html
25     *
26     * Contributors:
27     *     Martin O. J. Schmitz - initial API and implementation
28     *     Stefan A. Krüger - additional utility classes
29     ******************************************************************************/
30  /**  /**
31   Copyright 2008 Stefan Alfons Krüger   Copyright 2008 Stefan Alfons Krüger
32    
# Line 18  import java.beans.PropertyChangeEvent; Line 47  import java.beans.PropertyChangeEvent;
47  /**  /**
48   * Extends the {@link PropertyChangeEvent} by maintaining the event emitter.   * Extends the {@link PropertyChangeEvent} by maintaining the event emitter.
49   * The emitter is the {@link StyledLayerSelectionModel} while the event {@link #getSource() source}   * The emitter is the {@link StyledLayerSelectionModel} while the event {@link #getSource() source}
50   * holds the component which is component which causes the {@link StyledLayerSelectionModel}   * holds the component which causes the {@link StyledLayerSelectionModel}
51   * 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).
52   * @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)
53   */   */
54  public class StyledLayerSelectionEvent extends PropertyChangeEvent {  public class StyledLayerSelectionEvent extends PropertyChangeEvent {
55    /** Holds the {@link StyledLayerSelectionModel} which invokes the event. */    /** Holds the {@link StyledLayerSelectionModel} which invokes the event. */
56    protected  StyledLayerSelectionModel emitter = null;    protected  StyledLayerSelectionModel<?> emitter = null;
57        
58    /**    /**
59     * Creates a new event.     * Creates a new event.
60     * @param emitter      the {@link StyledLayerSelectionModel} which invokes the event     * @param emitter      the {@link StyledLayerSelectionModel} which invokes the event
61     * @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);
62     *                     can be {@code null} if its a refresh event with no responsible     *                     can be {@code null} if its a refresh event with no responsible
63     * @param propertyName the name of the changed property     * @param propertyName the name of the changed property
64     * @param oldValue     the old property value (can be <code>null</code>)     * @param oldValue     the old property value (can be <code>null</code>)
65     * @param newValue     the new property value (can be <code>null</code>)     * @param newValue     the new property value (can be <code>null</code>)
66     */     */
67    public StyledLayerSelectionEvent(StyledLayerSelectionModel emitter, Object source, String propertyName, Object oldValue, Object newValue) {    public StyledLayerSelectionEvent(StyledLayerSelectionModel<?> emitter, Object source, String propertyName, Object oldValue, Object newValue) {
68      super(source, propertyName, oldValue, newValue);      super(source, propertyName, oldValue, newValue);
69      this.emitter = emitter;      this.emitter = emitter;
70    }    }
# Line 43  public class StyledLayerSelectionEvent e Line 72  public class StyledLayerSelectionEvent e
72    /**    /**
73     * Returns the {@link StyledLayerSelectionModel} which invokes the event.     * Returns the {@link StyledLayerSelectionModel} which invokes the event.
74     */     */
75    public StyledLayerSelectionModel getEmitter() {    public StyledLayerSelectionModel<?> getEmitter() {
76      return emitter;      return emitter;
77    }    }
78    

Legend:
Removed from v.96  
changed lines
  Added in v.621

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26