Clover coverage report - AdWT - 1.0.0
Coverage timestamp: sam. déc. 27 2003 15:14:10 CET
file stats: LOC: 60   Methods: 3
NCLOC: 28   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
URLEditor.java 0% 0% 0% 0%
coverage
 1   
 /*
 2   
  * EJTools, the Enterprise Java Tools
 3   
  *
 4   
  * Distributable under LGPL license.
 5   
  * See terms of license at www.gnu.org.
 6   
  */
 7   
 package org.ejtools.adwt.editor;
 8   
 
 9   
 import java.net.URL;
 10   
 
 11   
 /**
 12   
  * Description of the Class
 13   
  *
 14   
  * @author    Laurent Etiemble
 15   
  * @version   $Revision: 1.5 $
 16   
  * @todo      Javadoc to complete
 17   
  */
 18   
 public class URLEditor extends GenericEditor
 19   
 {
 20   
    /** Constructor */
 21  0
    public URLEditor() { }
 22   
 
 23   
 
 24   
    /**
 25   
     * Getter for the asText attribute
 26   
     *
 27   
     * @return   The value
 28   
     */
 29  0
    public String getAsText()
 30   
    {
 31  0
       if (this.value != null)
 32   
       {
 33  0
          return value.toString();
 34   
       }
 35   
       else
 36   
       {
 37  0
          return null;
 38   
       }
 39   
    }
 40   
 
 41   
 
 42   
    /**
 43   
     * Setter for the asText attribute
 44   
     *
 45   
     * @param s  The new value
 46   
     */
 47  0
    public void setAsText(String s)
 48   
    {
 49  0
       try
 50   
       {
 51  0
          value = new URL(s);
 52   
       }
 53   
       catch (Exception e)
 54   
       {
 55   
       }
 56  0
       this.firePropertyChange();
 57   
    }
 58   
 }
 59   
 
 60