performed javacscript:fix and worked on documentation
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / forms / TextActionElement.java
index 3e3422e706cfc177d97211c9cfdf5ba99e6e3ee0..ed336bc72f63d103a09bffddf5c87ed23539c892 100644 (file)
@@ -16,8 +16,10 @@ import org.eclipse.swt.widgets.Text;
 import eu.etaxonomy.cdm.common.CdmUtils;
 
 /**
- * @author nho
+ * <p>TextActionElement class.</p>
  *
+ * @author nho
+ * @version $Id: $
  */
 public class TextActionElement extends AbstractCdmFormElement implements ModifyListener{
 
@@ -27,8 +29,14 @@ public class TextActionElement extends AbstractCdmFormElement implements ModifyL
        private Composite box;
 
        /**
-        * @param parent
-        * @param style
+        * <p>Constructor for TextActionElement.</p>
+        *
+        * @param style a int.
+        * @param toolkit a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
+        * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
+        * @param labelString a {@link java.lang.String} object.
+        * @param buttonLabel a {@link java.lang.String} object.
+        * @param initialText a {@link java.lang.String} object.
         */
        protected TextActionElement(CdmFormFactory toolkit, ICdmFormElement parentElement, String labelString, String buttonLabel, String initialText, int style) {
                super(toolkit, parentElement);
@@ -52,23 +60,37 @@ public class TextActionElement extends AbstractCdmFormElement implements ModifyL
        }
 
        /**
-        * @param text the text to set
+        * <p>Setter for the field <code>text</code>.</p>
+        *
+        * @param string a {@link java.lang.String} object.
         */
        public void setText(String string) {
                text.setText(CdmUtils.Nz(string));
        }
 
        /**
+        * <p>Getter for the field <code>text</code>.</p>
+        *
         * @return the text
         */
        public String getText() {
                return text.getText();
        }
 
+       /**
+        * <p>addSelectionListener</p>
+        *
+        * @param listener a {@link org.eclipse.swt.events.SelectionListener} object.
+        */
        public void addSelectionListener(SelectionListener listener){
                button.addSelectionListener(listener);
        }
 
+       /**
+        * <p>removeSelectionListener</p>
+        *
+        * @param listener a {@link org.eclipse.swt.events.SelectionListener} object.
+        */
        public void removeSelectionListener(SelectionListener listener){
                button.removeSelectionListener(listener);
        }
@@ -76,22 +98,35 @@ public class TextActionElement extends AbstractCdmFormElement implements ModifyL
        /* (non-Javadoc)
         * @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)
         */
+       /** {@inheritDoc} */
        public void modifyText(ModifyEvent e) {
                propertyChange(null);
        }
 
+       /** {@inheritDoc} */
        public void setSelected(boolean selected) {
                label.setBackground(getColor(selected));
        }
        
+       /**
+        * <p>addModifyListener</p>
+        *
+        * @param listener a {@link org.eclipse.swt.events.ModifyListener} object.
+        */
        public void addModifyListener(ModifyListener listener){
                text.addModifyListener(listener);
        }
        
+       /**
+        * <p>removeModifyListener</p>
+        *
+        * @param listener a {@link org.eclipse.swt.events.ModifyListener} object.
+        */
        public void removeModifyListener(ModifyListener listener){
                text.removeModifyListener(listener);
        }
        
+       /** {@inheritDoc} */
        @Override
        public void setBackground(Color color) {
                label.setBackground(color);