1 19 20 package org.netbeans.beaninfo.editors; 21 22 import java.beans.*; 23 import org.openide.explorer.propertysheet.PropertyEnv; 24 import org.openide.explorer.propertysheet.ExPropertyEditor; 25 26 31 public class IntegerEditor extends WrappersEditor { 32 33 public IntegerEditor() { 34 super(java.lang.Integer.TYPE); 35 } 36 37 public String getJavaInitializationString() { 38 return "new java.lang.Integer(" + pe.getJavaInitializationString() + ")"; } 40 41 public void setAsText(String text) throws IllegalArgumentException { 42 super.setAsText (text.trim()); 43 } 44 } 45 46 47 | Popular Tags |