1 22 package org.jboss.util.propertyeditor; 23 24 import java.beans.PropertyEditorSupport ; 25 26 32 public class DoubleEditor extends PropertyEditorSupport  33 { 34 37 public void setAsText(final String text) 38 { 39 if (PropertyEditors.isNull(text)) 40 { 41 setValue(null); 42 return; 43 } 44 Object newValue = Double.valueOf(text); 45 setValue(newValue); 46 } 47 } 48 | Popular Tags |