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-editor/src/main/java/eu/etaxonomy/taxeditor/forms/TextActionElement.java
16 16
import eu.etaxonomy.cdm.common.CdmUtils;
17 17

  
18 18
/**
19
 * @author nho
19
 * <p>TextActionElement class.</p>
20 20
 *
21
 * @author nho
22
 * @version $Id: $
21 23
 */
22 24
public class TextActionElement extends AbstractCdmFormElement implements ModifyListener{
23 25

  
......
27 29
	private Composite box;
28 30

  
29 31
	/**
30
	 * @param parent
31
	 * @param style
32
	 * <p>Constructor for TextActionElement.</p>
33
	 *
34
	 * @param style a int.
35
	 * @param toolkit a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
36
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
37
	 * @param labelString a {@link java.lang.String} object.
38
	 * @param buttonLabel a {@link java.lang.String} object.
39
	 * @param initialText a {@link java.lang.String} object.
32 40
	 */
33 41
	protected TextActionElement(CdmFormFactory toolkit, ICdmFormElement parentElement, String labelString, String buttonLabel, String initialText, int style) {
34 42
		super(toolkit, parentElement);
......
52 60
	}
53 61

  
54 62
	/**
55
	 * @param text the text to set
63
	 * <p>Setter for the field <code>text</code>.</p>
64
	 *
65
	 * @param string a {@link java.lang.String} object.
56 66
	 */
57 67
	public void setText(String string) {
58 68
		text.setText(CdmUtils.Nz(string));
59 69
	}
60 70

  
61 71
	/**
72
	 * <p>Getter for the field <code>text</code>.</p>
73
	 *
62 74
	 * @return the text
63 75
	 */
64 76
	public String getText() {
65 77
		return text.getText();
66 78
	}
67 79

  
80
	/**
81
	 * <p>addSelectionListener</p>
82
	 *
83
	 * @param listener a {@link org.eclipse.swt.events.SelectionListener} object.
84
	 */
68 85
	public void addSelectionListener(SelectionListener listener){
69 86
		button.addSelectionListener(listener);
70 87
	}
71 88

  
89
	/**
90
	 * <p>removeSelectionListener</p>
91
	 *
92
	 * @param listener a {@link org.eclipse.swt.events.SelectionListener} object.
93
	 */
72 94
	public void removeSelectionListener(SelectionListener listener){
73 95
		button.removeSelectionListener(listener);
74 96
	}
......
76 98
	/* (non-Javadoc)
77 99
	 * @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)
78 100
	 */
101
	/** {@inheritDoc} */
79 102
	public void modifyText(ModifyEvent e) {
80 103
		propertyChange(null);
81 104
	}
82 105

  
106
	/** {@inheritDoc} */
83 107
	public void setSelected(boolean selected) {
84 108
		label.setBackground(getColor(selected));
85 109
	}
86 110
	
111
	/**
112
	 * <p>addModifyListener</p>
113
	 *
114
	 * @param listener a {@link org.eclipse.swt.events.ModifyListener} object.
115
	 */
87 116
	public void addModifyListener(ModifyListener listener){
88 117
		text.addModifyListener(listener);
89 118
	}
90 119
	
120
	/**
121
	 * <p>removeModifyListener</p>
122
	 *
123
	 * @param listener a {@link org.eclipse.swt.events.ModifyListener} object.
124
	 */
91 125
	public void removeModifyListener(ModifyListener listener){
92 126
		text.removeModifyListener(listener);
93 127
	}
94 128
	
129
	/** {@inheritDoc} */
95 130
	@Override
96 131
	public void setBackground(Color color) {
97 132
		label.setBackground(color);

Also available in: Unified diff