|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| GenericEditor.java | 0% | 0% | 33,3% | 10% |
|
||||||||||||||
| 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;
|
|
| 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 |
|
| 19 |
{
|
|
| 20 |
/** Description of the Field */
|
|
| 21 |
protected Object value = null; |
|
| 22 |
|
|
| 23 |
|
|
| 24 |
/** Constructor for the PropertiesEditor object */
|
|
| 25 | 24 |
public GenericEditor() { }
|
| 26 |
|
|
| 27 |
|
|
| 28 |
/**
|
|
| 29 |
* Gets the value attribute of the FileEditor object
|
|
| 30 |
*
|
|
| 31 |
* @return The value value
|
|
| 32 |
*/
|
|
| 33 | 0 |
public Object getValue()
|
| 34 |
{
|
|
| 35 | 0 |
return this.value; |
| 36 |
} |
|
| 37 |
|
|
| 38 |
|
|
| 39 |
/**
|
|
| 40 |
* Setter for the value attribute
|
|
| 41 |
*
|
|
| 42 |
* @param object The new value value
|
|
| 43 |
*/
|
|
| 44 | 0 |
public void setValue(Object object) |
| 45 |
{
|
|
| 46 | 0 |
if (object == null) |
| 47 |
{
|
|
| 48 | 0 |
return;
|
| 49 |
} |
|
| 50 | 0 |
this.value = object;
|
| 51 | 0 |
this.firePropertyChange();
|
| 52 |
} |
|
| 53 |
} |
|
| 54 |
|
|
||||||||||