/[schmitzm]/trunk/src/skrueger/geotools/selection/StyledLayerSelectionEvent.java
ViewVC logotype

Annotation of /trunk/src/skrueger/geotools/selection/StyledLayerSelectionEvent.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 604 - (hide annotations)
Wed Dec 9 14:15:53 2009 UTC (15 years, 2 months ago) by alfonx
Original Path: branches/2.0-RC1/src/skrueger/geotools/selection/StyledLayerSelectionEvent.java
File MIME type: text/plain
File size: 4663 byte(s)
2.0-RC1 branch ist für GP1.3 bugfixes...  1.0-gt2-2.6  ist der entwicklungs brnach 
1 alfonx 244 /*******************************************************************************
2     * Copyright (c) 2009 Martin O. J. Schmitz.
3     *
4     * This file is part of the SCHMITZM library - a collection of utility
5 alfonx 256 * classes based on Java 1.6, focusing (not only) on Java Swing
6 alfonx 244 * 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 alfonx 96 /**
31     Copyright 2008 Stefan Alfons Krüger
32    
33     atlas-framework - This file is part of the Atlas Framework
34    
35     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.
36     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.
37     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
38    
39     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.
40     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.
41     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.
42     **/
43     package skrueger.geotools.selection;
44    
45     import java.beans.PropertyChangeEvent;
46    
47     /**
48     * Extends the {@link PropertyChangeEvent} by maintaining the event emitter.
49     * The emitter is the {@link StyledLayerSelectionModel} while the event {@link #getSource() source}
50 mojays 103 * holds the component which causes the {@link StyledLayerSelectionModel}
51 alfonx 96 * 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)
53     */
54     public class StyledLayerSelectionEvent extends PropertyChangeEvent {
55     /** Holds the {@link StyledLayerSelectionModel} which invokes the event. */
56 mojays 103 protected StyledLayerSelectionModel<?> emitter = null;
57 alfonx 96
58     /**
59     * Creates a new event.
60     * @param emitter the {@link StyledLayerSelectionModel} which invokes the event
61 mojays 103 * @param source the object which is responsible for the change (e.g. map or table);
62 alfonx 96 * can be {@code null} if its a refresh event with no responsible
63     * @param propertyName the name of the changed property
64     * @param oldValue the old property value (can be <code>null</code>)
65     * @param newValue the new property value (can be <code>null</code>)
66     */
67 mojays 103 public StyledLayerSelectionEvent(StyledLayerSelectionModel<?> emitter, Object source, String propertyName, Object oldValue, Object newValue) {
68 alfonx 96 super(source, propertyName, oldValue, newValue);
69     this.emitter = emitter;
70     }
71    
72     /**
73     * Returns the {@link StyledLayerSelectionModel} which invokes the event.
74     */
75 mojays 103 public StyledLayerSelectionModel<?> getEmitter() {
76 alfonx 96 return emitter;
77     }
78    
79     }

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