1  /*
     2   Copyright aswing.org, see the LICENCE.txt.
     3  */
     4  
     5  import org.aswing.events.ListDataEvent;
     6  
     7  /**
     8   * @see org.aswing.JList
     9   * @author iiley
    10   */
    11  interface org.aswing.events.ListDataListener{
    12      /** 
    13       * Sent after the indices in the index0,index1 
    14       * interval have been inserted in the data model.
    15       * The new interval includes both index0 and index1.
    16       *
    17       * @param e  a <code>ListDataEvent</code> encapsulating the
    18       *    event information
    19       */
    20      public function intervalAdded(e:ListDataEvent):Void;
    21  
    22      
    23      /**
    24       * Sent after the indices in the index0,index1 interval
    25       * have been removed from the data model.  The interval 
    26       * includes both index0 and index1.
    27       *
    28       * @param e  a <code>ListDataEvent</code> encapsulating the
    29       *    event information
    30       */
    31      public function intervalRemoved(e:ListDataEvent):Void;
    32  
    33  
    34      /** 
    35       * Sent when the contents of the list has changed in a way 
    36       * that's too complex to characterize with the previous 
    37       * methods. For example, this is sent when an item has been
    38       * replaced. Index0 and index1 bracket the change.
    39       *
    40       * @param e  a <code>ListDataEvent</code> encapsulating the
    41       *    event information
    42       */
    43      public function contentsChanged(e:ListDataEvent):Void;	
    44  }
    45