Project

General

Profile

Download (1000 Bytes) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

    
11
package eu.etaxonomy.taxeditor.annotatedlineeditor;
12

    
13
import java.beans.PropertyChangeEvent;
14
import java.beans.PropertyChangeListener;
15

    
16
import org.apache.log4j.Logger;
17

    
18
/**
19
 * <p>Abstract EntityListener class.</p>
20
 *
21
 * @author p.ciardelli
22
 * @created 31.08.2009
23
 * @version 1.0
24
 */
25
abstract public class EntityListener implements PropertyChangeListener {
26
	private static final Logger logger = Logger
27
			.getLogger(EntityListener.class);
28

    
29
	/* (non-Javadoc)
30
	 * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
31
	 */
32
	/** {@inheritDoc} */
33
	public void propertyChange(PropertyChangeEvent evt) {
34
		updateEntity();
35
	}
36

    
37
	/**
38
	 * <p>updateEntity</p>
39
	 */
40
	abstract protected void updateEntity();
41
}
(6-6/18)