Project

General

Profile

Download (3.24 KB) 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.singlesource.ui.forms;
12

    
13
import javax.naming.OperationNotSupportedException;
14

    
15
import org.eclipse.swt.events.ModifyEvent;
16
import org.eclipse.swt.events.ModifyListener;
17
import org.eclipse.swt.widgets.Text;
18

    
19
import eu.etaxonomy.cdm.common.CdmUtils;
20
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory;
21
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
22

    
23

    
24
/**
25
 * <p>NumberWithLabelElement class.</p>
26
 *
27
 * @author n.hoffmann
28
 * @created Mar 22, 2010
29
 * @version 1.0
30
 */
31
public class NumberWithLabelElementFacadeImpl extends NumberWithLabelElementFacade {
32

    
33
	public NumberWithLabelElementFacadeImpl(){
34
	}
35

    
36
	/**
37
	 * <p>Constructor for NumberWithLabelElement.</p>
38
	 *
39
	 * @param toolkit a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory} object.
40
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement} object.
41
	 * @param labelString a {@link java.lang.String} object.
42
	 * @param initialInteger a {@link java.lang.Integer} object.
43
	 * @param style a int.
44
	 */
45
	public NumberWithLabelElementFacadeImpl(CdmFormFactory toolkit,
46
			ICdmFormElement parentElement, String labelString,
47
			Integer initialInteger, int style) {
48
		super(toolkit, parentElement, labelString, initialInteger, style);
49
	}
50

    
51
	protected Object getInstanceInternal (CdmFormFactory toolkit,
52
			ICdmFormElement parentElement, String labelString,
53
			Integer initialInteger, int style) {
54
		return new NumberWithLabelElementFacadeImpl(toolkit, parentElement, labelString, initialInteger, style);
55
	}
56

    
57
	/**
58
	 * <p>Constructor for NumberWithLabelElement.</p>
59
	 *
60
	 * @param toolkit a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory} object.
61
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement} object.
62
	 * @param labelString a {@link java.lang.String} object.
63
	 * @param initialFloat a {@link java.lang.Float} object.
64
	 * @param style a int.
65
	 */
66
	public NumberWithLabelElementFacadeImpl(CdmFormFactory toolkit,
67
			ICdmFormElement parentElement, String labelString,
68
			Float initialFloat, int style) {
69
		super(toolkit, parentElement, labelString, initialFloat, style);
70
	}
71

    
72
	protected Object getInstanceInternal (CdmFormFactory toolkit,
73
			ICdmFormElement parentElement, String labelString,
74
			Float initialFloat, int style) {
75
		return new NumberWithLabelElementFacadeImpl(toolkit, parentElement, labelString, initialFloat, style);
76
	}
77

    
78
	protected Object getInstanceInternal(CdmFormFactory formFactory,ICdmFormElement parentElement, String labelString,
79
			String initialText, Integer textHeight, int style)
80
	{
81
		return null;
82
	}
83
	
84
	public Object[] removeModifyListenersInternal(Text text)
85
	{
86
		return TextWithLabelElementFacadeImpl.removeModifyListeners(text);
87
	}
88

    
89
	public void addModifyListenersInternal(Text text, Object[] listeners)
90
	{
91
		TextWithLabelElementFacadeImpl.addModifyListeners(text, listeners);
92
	}
93

    
94
	public boolean traverseInternal(int traversal) throws OperationNotSupportedException
95
	{
96
		throw new OperationNotSupportedException("Text.traverse(int) not supported !");
97
	}
98

    
99
}
(2-2/4)