KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > lib > cvsclient > event > CVSListener


1 /*****************************************************************************
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14
15  * The Original Software is the CVS Client Library.
16  * The Initial Developer of the Original Software is Robert Greig.
17  * Portions created by Robert Greig are Copyright (C) 2000.
18  * All Rights Reserved.
19
20  * Contributor(s): Robert Greig.
21  *****************************************************************************/

22 package org.netbeans.lib.cvsclient.event;
23
24 /**
25  * This interface must be implemented by clients wishing to receive events
26  * describing the results of commands.
27  * @author Robert Greig
28  */

29 public interface CVSListener {
30     /**
31      * Called when the server wants to send a message to be displayed to
32      * the user. The message is only for information purposes and clients
33      * can choose to ignore these messages if they wish.
34      * @param e the event
35      */

36     void messageSent(MessageEvent e);
37
38     /**
39      * Called when the server wants to send a binary message to be displayed to
40      * the user. The message is only for information purposes and clients
41      * can choose to ignore these messages if they wish.
42      * @param e the event
43      */

44     void messageSent(BinaryMessageEvent e);
45     
46     /**
47      * Called when a file has been added.
48      * @param e the event
49      */

50     void fileAdded(FileAddedEvent e);
51
52     /**
53      * Called when a file is going to be removed.
54      * @param e the event
55      */

56     void fileToRemove(FileToRemoveEvent e);
57
58     /**
59      * Called when a file is removed.
60      * @param e the event
61      */

62     void fileRemoved(FileRemovedEvent e);
63
64     /**
65      * Called when a file has been updated
66      * @param e the event
67      */

68     void fileUpdated(FileUpdatedEvent e);
69
70     /**
71      * Called when file information has been received
72      */

73     void fileInfoGenerated(FileInfoEvent e);
74
75     /**
76      * called when server responses with "ok" or "error", (when the command
77      * finishes)
78      */

79     void commandTerminated(TerminationEvent e);
80
81     /**
82      * Fire a module expansion event. This is called when the servers
83      * has responded to an expand-modules request.
84      */

85     void moduleExpanded(ModuleExpansionEvent e);
86 }
Popular Tags