public class ContactListEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
CONTACT_CLICKED
Indicates that the ContactListEvent instance was triggered by
selecting a contact in the contact list.
|
static int |
CONTACT_SELECTED
Indicates that the ContactListEvent instance was triggered by
selecting a contact in the contact list.
|
static int |
GROUP_CLICKED
Indicates that the ContactListEvent instance was triggered by selecting
a group in the contact list.
|
static int |
GROUP_SELECTED
Indicates that the ContactListEvent instance was triggered by selecting
a group in the contact list.
|
Constructor and Description |
---|
ContactListEvent(java.lang.Object source,
int eventID,
int clickCount)
Creates a new ContactListEvent according to the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
getClickCount()
Returns the number of click of this event.
|
int |
getEventID()
Returns an event id specifying whether the type of this event
(CONTACT_SELECTED or PROTOCOL_CONTACT_SELECTED)
|
UIContact |
getSourceContact()
Returns the UIContactDescriptor for which this event occured.
|
UIGroup |
getSourceGroup()
Returns the UIGroupDescriptor for which this event occured.
|
public static final int CONTACT_CLICKED
public static final int GROUP_CLICKED
public static final int CONTACT_SELECTED
public static final int GROUP_SELECTED
public ContactListEvent(java.lang.Object source, int eventID, int clickCount)
source
- the MetaContact which was selectedeventID
- one of the XXX_SELECTED static fields indicating the
nature of the event.clickCount
- the number of clicks that was produced when clicking
over the contact listpublic int getEventID()
public UIContact getSourceContact()
public UIGroup getSourceGroup()
public int getClickCount()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.