KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > adwt > editor > GenericEditor


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.adwt.editor;
8
9 import java.beans.PropertyEditorSupport JavaDoc;
10
11 /**
12  * Description of the Class
13  *
14  * @author Laurent Etiemble
15  * @version $Revision: 1.5 $
16  * @todo Javadoc to complete
17  */

18 public abstract class GenericEditor extends PropertyEditorSupport JavaDoc
19 {
20    /** Description of the Field */
21    protected Object JavaDoc value = null;
22
23
24    /** Constructor for the PropertiesEditor object */
25    public GenericEditor() { }
26
27
28    /**
29     * Gets the value attribute of the FileEditor object
30     *
31     * @return The value value
32     */

33    public Object JavaDoc getValue()
34    {
35       return this.value;
36    }
37
38
39    /**
40     * Setter for the value attribute
41     *
42     * @param object The new value value
43     */

44    public void setValue(Object JavaDoc object)
45    {
46       if (object == null)
47       {
48          return;
49       }
50       this.value = object;
51       this.firePropertyChange();
52    }
53 }
54
Popular Tags