1 package tests.jfun.models; 2 3 import java.beans.PropertyEditorSupport ; 4 5 public class BankAccountEditor extends PropertyEditorSupport { 6 private String text; 7 public Object getValue() { 8 final Object v = text; 9 if(v instanceof String ){ 10 return new BankAccount((String )v, 0); 11 } 12 else return v; 13 } 14 public void setAsText(String t){ 15 this.text = t; 16 } 17 } 18 | Popular Tags |