Project

General

Profile

« Previous | Next » 

Revision 3be6ef3e

Added by Niels Hoffmann over 13 years ago

performed javacscript:fix and worked on documentation

View differences:

taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/annotatedlineeditor/EntityListener.java
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
 * @author p.ciardelli
20
 * @created 31.08.2009
21
 * @version 1.0
22
 */
23
abstract public class EntityListener implements PropertyChangeListener {
24
	private static final Logger logger = Logger
25
			.getLogger(EntityListener.class);
26

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

  
34
	/**
35
	 * 
36
	 */
37
	abstract protected void updateEntity();
38
}
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
}

Also available in: Unified diff