blob: 743f4a2a88f62569c8a32fabe20758e6325ebffe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
package net.java.sip.communicator.impl.gui.main.contactlist;
import java.awt.*;
import net.java.sip.communicator.service.protocol.*;
import net.java.sip.communicator.util.swing.*;
/**
* The ContactProtocolButton is a button behind a "meta contact" in the
* contactlist, which corresponds to a specific protocol contact. This
* button allows opening a chat for a given "meta contact" by specifing
* the exact protocol contact to use for the chat.
*
* @author Yana Stamcheva
*/
public class ContactProtocolButton extends SIPCommButton {
private Contact protocolContact;
/**
* Creates an instance of ContactProtocolButton.
* @param bgImage The background image of the button.
*/
public ContactProtocolButton(Image bgImage) {
super(bgImage, bgImage);
}
/**
* Returns the specific protocol contact corresponding to this button.
* @return The specific protocol contact corresponding to this button.
*/
public Contact getProtocolContact() {
return protocolContact;
}
/**
* Sets the specific protocol contact corresponding to this button.
* @param protocolContact The specific protocol contact.
*/
public void setProtocolContact(Contact protocolContact) {
this.protocolContact = protocolContact;
}
}
|