1 7 package org.ejtools.adwt.editor; 8 9 import java.net.URL ; 10 11 18 public class URLEditor extends GenericEditor 19 { 20 21 public URLEditor() { } 22 23 24 29 public String getAsText() 30 { 31 if (this.value != null) 32 { 33 return value.toString(); 34 } 35 else 36 { 37 return null; 38 } 39 } 40 41 42 47 public void setAsText(String s) 48 { 49 try 50 { 51 value = new URL (s); 52 } 53 catch (Exception e) 54 { 55 } 56 this.firePropertyChange(); 57 } 58 } 59 60 | Popular Tags |