| DoubleEditor.java |
/***************************************
* *
* JBoss: The OpenSource J2EE WebOS *
* *
* Distributable under LGPL license. *
* See terms of license at gnu.org. *
* *
***************************************/
package org.jboss.util.propertyeditor;
import java.beans.PropertyEditorSupport;
/**
* A property editor for {@link Integer}.
*
* @author Scott.Stark@jboss.org
* @version $Revision: 1.1.2.1 $
*/
public class DoubleEditor extends PropertyEditorSupport
{
/**
* Map the argument text into and Integer using Integer.valueOf.
*/
public void setAsText(final String text)
{
Object newValue = Double.valueOf(text);
setValue(newValue);
}
}
| DoubleEditor.java |