]> git.somenet.org - irc/pjirc-ng.git/blob - src/main/java/irc/style/StyledListListener.java
Pjirc 2.2.1 as available on the net, reformatted and made it compile.
[irc/pjirc-ng.git] / src / main / java / irc / style / StyledListListener.java
1 /*****************************************************/\r
2 /*          This java file is a part of the          */\r
3 /*                                                   */\r
4 /*           -  Plouf's Java IRC Client  -           */\r
5 /*                                                   */\r
6 /*   Copyright (C)  2002 - 2004 Philippe Detournay   */\r
7 /*                                                   */\r
8 /*         All contacts : theplouf@yahoo.com         */\r
9 /*                                                   */\r
10 /*  PJIRC is free software; you can redistribute     */\r
11 /*  it and/or modify it under the terms of the GNU   */\r
12 /*  General Public License as published by the       */\r
13 /*  Free Software Foundation; version 2 or later of  */\r
14 /*  the License.                                     */\r
15 /*                                                   */\r
16 /*  PJIRC is distributed in the hope that it will    */\r
17 /*  be useful, but WITHOUT ANY WARRANTY; without     */\r
18 /*  even the implied warranty of MERCHANTABILITY or  */\r
19 /*  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU   */\r
20 /*  General Public License for more details.         */\r
21 /*                                                   */\r
22 /*  You should have received a copy of the GNU       */\r
23 /*  General Public License along with PJIRC; if      */\r
24 /*  not, write to the Free Software Foundation,      */\r
25 /*  Inc., 59 Temple Place, Suite 330, Boston,        */\r
26 /*  MA  02111-1307  USA                              */\r
27 /*                                                   */\r
28 /*****************************************************/\r
29 \r
30 package irc.style;\r
31 \r
32 import java.awt.event.MouseEvent;\r
33 \r
34 /**\r
35  * StyledListListener.\r
36  */\r
37 public interface StyledListListener {\r
38         /**\r
39          * A mouse event has occured on a channel.\r
40          * \r
41          * @param list\r
42          *          the source list.\r
43          * @param channel\r
44          *          the channel name.\r
45          * @param e\r
46          *          the mouse event associated with this event.\r
47          */\r
48         public void channelEvent(StyledList list, String channel, MouseEvent e);\r
49 \r
50         /**\r
51          * An url event has occured on a channel.\r
52          * \r
53          * @param list\r
54          *          the source list.\r
55          * @param url\r
56          *          the url name.\r
57          * @param e\r
58          *          the mouse event associated with this event.\r
59          */\r
60         public void URLEvent(StyledList list, String url, MouseEvent e);\r
61 \r
62         /**\r
63          * A nick event has occured on a channel.\r
64          * \r
65          * @param list\r
66          *          the source list.\r
67          * @param nick\r
68          *          the nick name.\r
69          * @param e\r
70          *          the mouse event associated with this event.\r
71          */\r
72         public void nickEvent(StyledList list, String nick, MouseEvent e);\r
73 \r
74         /**\r
75          * A copy event has occured on a channel.\r
76          * \r
77          * @param list\r
78          *          the source list.\r
79          * @param text\r
80          *          the copied text.\r
81          * @param e\r
82          *          the mouse event associated with this event.\r
83          */\r
84         public void copyEvent(StyledList list, String text, MouseEvent e);\r
85 \r
86         /**\r
87          * The logical width or height of the list has changed.\r
88          * \r
89          * @param list\r
90          *          the source list.\r
91          */\r
92         public void virtualSizeChanged(StyledList list);\r
93 }\r