You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by hi...@apache.org on 2001/05/07 19:39:41 UTC

cvs commit: xml-batik/sources/org/apache/batik/swing/svg LinkActivationEvent.java LinkActivationListener.java

hillion     01/05/07 10:39:41

  Added:       sources/org/apache/batik/swing/svg LinkActivationEvent.java
                        LinkActivationListener.java
  Log:
  
  
  Revision  Changes    Path
  1.1                  xml-batik/sources/org/apache/batik/swing/svg/LinkActivationEvent.java
  
  Index: LinkActivationEvent.java
  ===================================================================
  /*****************************************************************************
   * Copyright (C) The Apache Software Foundation. All rights reserved.        *
   * ------------------------------------------------------------------------- *
   * This software is published under the terms of the Apache Software License *
   * version 1.1, a copy of which has been included with this distribution in  *
   * the LICENSE file.                                                         *
   *****************************************************************************/
  
  package org.apache.batik.swing.svg;
  
  import java.util.EventObject;
  
  import org.w3c.dom.svg.SVGAElement;
  
  /**
   * This class represents an event which indicate an event originated
   * from a GVTTreeBuilder instance.
   *
   * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
   * @version $Id: LinkActivationEvent.java,v 1.1 2001/05/07 17:39:38 hillion Exp $
   */
  public class LinkActivationEvent extends EventObject {
      
      /**
       * The URI the link references.
       */
      protected String referencedURI;
  
      /**
       * Creates a new LinkActivationEvent.
       * @param source the object that originated the event, ie. the
       *               GVTTreeBuilder.
       * @param link   the link element.
       * @param uri    the URI of the document loaded.
       */
      public LinkActivationEvent(Object source, SVGAElement link, String uri) {
          super(source);
          referencedURI = uri;
      }
  
      /**
       * Returns the referenced URI.
       */
      public String getReferencedURI() {
          return referencedURI;
      }
  }
  
  
  
  1.1                  xml-batik/sources/org/apache/batik/swing/svg/LinkActivationListener.java
  
  Index: LinkActivationListener.java
  ===================================================================
  /*****************************************************************************
   * Copyright (C) The Apache Software Foundation. All rights reserved.        *
   * ------------------------------------------------------------------------- *
   * This software is published under the terms of the Apache Software License *
   * version 1.1, a copy of which has been included with this distribution in  *
   * the LICENSE file.                                                         *
   *****************************************************************************/
  
  package org.apache.batik.swing.svg;
  
  /**
   * This interface represents a listener to the LinkActivationEvent events.
   *
   * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
   * @version $Id: LinkActivationListener.java,v 1.1 2001/05/07 17:39:39 hillion Exp $
   */
  public interface LinkActivationListener {
  
      /**
       * Called when a link was activated.
       */
      void linkActivated(LinkActivationEvent e);
  
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org