Project

General

Profile

« Previous | Next » 

Revision b66bc2e5

Added by Andreas Müller about 3 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/ToggleableTextElement.java
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
9

  
10 9
package eu.etaxonomy.taxeditor.ui.element;
11 10

  
12 11
import java.util.HashSet;
......
35 34
 *
36 35
 * @author n.hoffmann
37 36
 * @created Nov 18, 2009
38
 * @version 1.0
39 37
 */
40 38
public class ToggleableTextElement extends AbstractCdmFormElement implements SelectionListener, ModifyListener, IEnableableFormElement, ISelectable {
41 39

  
......
71 69
		text_cache.addModifyListener(this);
72 70
		text_cache.setLayoutData(LayoutConstants.FILL());
73 71

  
74

  
75 72
		// Don't accept carriage returns as input
76 73
		text_cache.addKeyListener( new KeyAdapter(){
77 74
			@Override
......
188 185
	public void setSelected(boolean selected) {
189 186
		setBackground(selected ? SELECTED : getPersistentBackground());
190 187
	}
191
}
188
}

Also available in: Unified diff