/[classpath]/classpath/java/awt/event/ContainerAdapter.java
ViewVC logotype

Diff of /classpath/java/awt/event/ContainerAdapter.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by mark, Tue Jan 22 22:26:59 2002 UTC revision 1.5 by ericb, Sat Mar 30 12:02:29 2002 UTC
# Line 1  Line 1 
1  /* ContainerAdapter.java -- Convenience class for writing container listeners  /* ContainerAdapter.java -- convenience class for writing container listeners
2     Copyright (C) 1999 Free Software Foundation, Inc.     Copyright (C) 1999, 2002 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 39  exception statement from your version. * Line 39  exception statement from your version. *
39  package java.awt.event;  package java.awt.event;
40    
41  /**  /**
42    * This is a convenience class for writing container listeners.  It   * This class implements <code>ContainerListener</code> and implements
43    * implements the <code>ContainerListner</code> interface with empty   * all methods with empty bodies.  This allows a listener interested in
44    * method bodies.  This allows a listener to subclass this class and   * implementing only a subset of the <code>ContainerListener</code>
45    * override only the methods of interest.   * interface to extend this class and override only the desired methods.
46    *   *
47    * @author Aaron M. Renn (arenn@urbanophile.com)   * @author Aaron M. Renn <arenn@urbanophile.com>
48    */   * @see ContainerEvent
49  public abstract class ContainerAdapter implements ContainerListener   * @see ContainerListener
50  {   * @since 1.1
51     * @status updated to 1.4
 /*  
  * Constructors  
  */  
   
 /**  
   * Do nothing default constructor for subclasses.  
   */  
 public  
 ContainerAdapter()  
 {  
 }  
   
 /*************************************************************************/  
   
 /*  
  * Instance Methods  
52   */   */
53    public abstract class ContainerAdapter implements ContainerListener
 /**  
   * Implements this method from the interface with an empty body.  
   *  
   * @param event Ignored  
   */  
 public void  
 componentAdded(ContainerEvent event)  
 {  
 }  
   
 /*************************************************************************/  
   
 /**  
   * Implements this method from the interface with an empty body.  
   *  
   * @param event Ignored  
   */  
 public void  
 componentRemoved(ContainerEvent event)  
54  {  {
55  }    /**
56       * Do nothing default constructor for subclasses.
57  } // class ContainerAdapter     */
58      public ContainerAdapter()
59      {
60      }
61    
62      /**
63       * Implements this method from the interface with an empty body.
64       *
65       * @param event the event, ignored in this implementation
66       */
67      public void componentAdded(ContainerEvent event)
68      {
69      }
70    
71      /**
72       * Implements this method from the interface with an empty body.
73       *
74       * @param event the event, ignored in this implementation
75       */
76      public void componentRemoved(ContainerEvent event)
77      {
78      }
79    } // class ContainerAdapter

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26