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