1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.xnap.peer;
21
22 import javax.swing.Action;
23 import javax.swing.Icon;
24
25 import org.xnap.event.StateListener;
26
27 /***
28 * Defines the requirements for a hotlist item. Hotlist item represent one or
29 * more favorite peers.
30 *
31 * @see HotlistManager
32 */
33 public interface HotlistItem
34 {
35
36
37
38 /***
39 * Adds a state listener.
40 */
41 void addStateListener(StateListener listener);
42
43 /***
44 * Returns the actions that can performed by the item.
45 */
46 Action[] getActions();
47
48 /***
49 * Returns the category of the item.
50 */
51 String getCategory();
52
53 /***
54 * Returns the user defined comment of the item.
55 */
56 String getComment();
57
58 /***
59 * Returns a 16x16 icon. The icon is displayed next to the name.
60 */
61 Icon getIcon();
62
63 /***
64 * Returns the name of the item.
65 */
66 String getName();
67
68 /***
69 * Returns the status of the peers represented by this item. See the
70 * {@link xnap.peer.Peer#getStatus() getStatus()} method.
71 */
72 String getStatus();
73
74 /***
75 * Remove a state listener.
76 */
77 void removeStateListener(StateListener listener);
78
79 }
80