Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: jgift/transfer/TransferEvent.java


1   /*
2    * This file is part of jgiFT.
3    * Copyright (c) 2003, Jason Shobe
4    *
5    * jgiFT is free software; you can redistribute it and/or modify
6    * it under the terms of the GNU General Public License as published by
7    * the Free Software Foundation; either version 2 of the License, or
8    * (at your option) any later version.
9    *
10   * jgiFT is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License
16   * along with jgiFT; if not, write to the Free Software
17   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18   */
19  package jgift.transfer;
20  
21  import java.util.EventObject;
22  import jgift.transfer.Transfer;
23  
24  /**
25   * Event signaling that a transfer has been started started.
26   *
27   * @author  Jason Shobe
28   * @version $Revision: 1.1 $
29   */
30  public class TransferEvent extends EventObject {
31     /**
32      * Create a new instance of TransferEvent.
33      *
34      * @param source the source of the event.
35      * @param transfer the transfer causing this event.
36      */
37     public TransferEvent(Object source, Transfer transfer) {
38        super(source);
39        this.transfer = transfer;
40     }
41     
42     /**
43      * Get the transfer for which this event was fired.
44      *
45      * @return the transfer.
46      */
47     public Transfer getTransfer() {
48        return transfer;
49     }
50     
51     private Transfer transfer;
52  }
53