/[classpath]/classpath/javax/swing/event/ListDataListener.java
ViewVC logotype

Diff of /classpath/javax/swing/event/ListDataListener.java

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

revision 1.4.2.1 by gnu_andrew, Tue Aug 2 20:12:37 2005 UTC revision 1.4.2.2 by gnu_andrew, Wed Nov 2 00:43:50 2005 UTC
# Line 1  Line 1 
1  /* ListDataListener.java --  /* ListDataListener.java --
2     Copyright (C) 2002 Free Software Foundation, Inc.     Copyright (C) 2002, 2005 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 37  exception statement from your version. * Line 37  exception statement from your version. *
37    
38  package javax.swing.event;  package javax.swing.event;
39    
 // Imports  
40  import java.util.EventListener;  import java.util.EventListener;
41    
42    import javax.swing.ListModel;
43    
44  /**  /**
45   * ListDataListener public interface   * A <code>ListDataListener</code> can register with a {@link ListModel} and
46     * receive notification of updates to the model.
47     *
48   * @author Andrew Selkirk   * @author Andrew Selkirk
49   * @author Ronald Veldema   * @author Ronald Veldema
50   */   */
51  public interface ListDataListener extends EventListener {  public interface ListDataListener extends EventListener
52    {
         /**  
          * Contents Changed  
          * @param event ListDataEvent Event  
          */  
         void contentsChanged(ListDataEvent event);  
   
         /**  
          * Interval Added  
          * @param event ListDataEvent Event  
          */  
         void intervalAdded(ListDataEvent event);  
   
         /**  
          * Interval Removed  
          * @param event ListDataEvent Event  
          */  
         void intervalRemoved(ListDataEvent event);  
53    
54      /**
55       * Notifies the listener that the contents of the list have changed
56       * in some way.  This method will be called if the change cannot be
57       * notified via the {@link #intervalAdded(ListDataEvent)} or the
58       * {@link #intervalRemoved(ListDataEvent)} methods.
59       *
60       * @param event  the event.
61       */
62      void contentsChanged(ListDataEvent event);
63    
64      /**
65       * Notifies the listener that one or more items have been added to the
66       * list.  The <code>event</code> argument can supply the indices for the
67       * range of items added.
68       *
69       * @param event  the event.
70       */
71      void intervalAdded(ListDataEvent event);
72    
73      /**
74       * Notifies the listener that one or more items have been removed from
75       * the list.  The <code>event</code> argument can supply the indices for
76       * the range of items removed.
77       *
78       * @param event  the event.
79       */
80      void intervalRemoved(ListDataEvent event);
81    
82  } // ListDataListener  }

Legend:
Removed from v.1.4.2.1  
changed lines
  Added in v.1.4.2.2

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