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

Annotation of /branches/2.0-RC1/src/skrueger/geotools/selection/StyledLayerSelectionEvent.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 103 - (hide annotations)
Fri May 8 13:48:00 2009 UTC (15 years, 9 months ago) by mojays
Original Path: trunk/src/skrueger/geotools/selection/StyledLayerSelectionEvent.java
File MIME type: text/plain
File size: 3248 byte(s)


1 alfonx 96 /**
2     Copyright 2008 Stefan Alfons Krüger
3    
4     atlas-framework - This file is part of the Atlas Framework
5    
6     This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
7     This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
8     You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
9    
10     Diese Bibliothek ist freie Software; Sie dürfen sie unter den Bedingungen der GNU Lesser General Public License, wie von der Free Software Foundation veröffentlicht, weiterverteilen und/oder modifizieren; entweder gemäß Version 2.1 der Lizenz oder (nach Ihrer Option) jeder späteren Version.
11     Diese Bibliothek wird in der Hoffnung weiterverbreitet, daß sie nützlich sein wird, jedoch OHNE IRGENDEINE GARANTIE, auch ohne die implizierte Garantie der MARKTREIFE oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK. Mehr Details finden Sie in der GNU Lesser General Public License.
12     Sie sollten eine Kopie der GNU Lesser General Public License zusammen mit dieser Bibliothek erhalten haben; falls nicht, schreiben Sie an die Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA.
13     **/
14     package skrueger.geotools.selection;
15    
16     import java.beans.PropertyChangeEvent;
17    
18     /**
19     * Extends the {@link PropertyChangeEvent} by maintaining the event emitter.
20     * The emitter is the {@link StyledLayerSelectionModel} while the event {@link #getSource() source}
21 mojays 103 * holds the component which causes the {@link StyledLayerSelectionModel}
22 alfonx 96 * 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)
24     */
25     public class StyledLayerSelectionEvent extends PropertyChangeEvent {
26     /** Holds the {@link StyledLayerSelectionModel} which invokes the event. */
27 mojays 103 protected StyledLayerSelectionModel<?> emitter = null;
28 alfonx 96
29     /**
30     * Creates a new event.
31     * @param emitter the {@link StyledLayerSelectionModel} which invokes the event
32 mojays 103 * @param source the object which is responsible for the change (e.g. map or table);
33 alfonx 96 * can be {@code null} if its a refresh event with no responsible
34     * @param propertyName the name of the changed property
35     * @param oldValue the old property value (can be <code>null</code>)
36     * @param newValue the new property value (can be <code>null</code>)
37     */
38 mojays 103 public StyledLayerSelectionEvent(StyledLayerSelectionModel<?> emitter, Object source, String propertyName, Object oldValue, Object newValue) {
39 alfonx 96 super(source, propertyName, oldValue, newValue);
40     this.emitter = emitter;
41     }
42    
43     /**
44     * Returns the {@link StyledLayerSelectionModel} which invokes the event.
45     */
46 mojays 103 public StyledLayerSelectionModel<?> getEmitter() {
47 alfonx 96 return emitter;
48     }
49    
50     }

Properties

Name Value
svn:eol-style native
svn:keywords Id
svn:mime-type text/plain

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26