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