|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.gui.main.contactlist.notifsource.NotificationContact
public class NotificationContact
The NotificationContact represents a notification entry shown in the contact list history view. It could represent a voice message entry, email notification or something else.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.event.ProviderPresenceStatusListener |
|---|
STATUS_MESSAGE |
| Constructor Summary | |
|---|---|
NotificationContact(NotificationGroup group,
ProtocolProviderService protocolProvider)
Creates an instance of NotificationContact by specifying the parent group and the corresponding ProtocolProviderService. |
|
| Method Summary | |
|---|---|
ImageIcon |
getAvatar(boolean isSelected,
int width,
int height)
Returns the icon indicating that this is a notification contact. |
List<UIContactDetail> |
getContactDetailsForOperationSet(Class<? extends OperationSet> opSetClass)
Returns a list of UIContactDetails supporting the given OperationSet class. |
ContactNode |
getContactNode()
Returns the corresponding ContactNode. |
UIContactDetail |
getDefaultContactDetail(Class<? extends OperationSet> opSetClass)
Returns the default ContactDetail to use for any operations depending to the given OperationSet class. |
Object |
getDescriptor()
Returns the descriptor of this contact. |
String |
getDisplayDetails()
Returns the display details of this contact. |
String |
getDisplayName()
Returns the display name of this contact. |
UIGroup |
getParentGroup()
Returns the parent group. |
JPopupMenu |
getRightButtonMenu()
Returns null to indicate that no right button menu is provided for this contact. |
Iterator<String> |
getSearchStrings()
No search strings are provided for this contact. |
int |
getSourceIndex()
Returns the index of this contact in its source. |
ImageIcon |
getStatusIcon()
Returns the status icon of this contact or null if no status is available. |
ExtendedTooltip |
getToolTip()
Returns the tool tip opened on mouse over. |
int |
getUnreadMessageCount()
Returns the number of unread messages, this notification is about. |
void |
providerStatusChanged(ProviderPresenceStatusChangeEvent evt)
Refresh the notification contact corresponding the the attached provider in order to better reflect its status. |
void |
providerStatusMessageChanged(PropertyChangeEvent evt)
The method is called by a ProtocolProvider implementation whenever a change in the status message of the corresponding provider has occurred and has been confirmed by the server. |
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
Refresh the notification contact corresponding the the attached provider in order to better reflect its state. |
void |
setContactNode(ContactNode contactNode)
Sets the given contactNode. |
void |
setMessageAccount(String messageAccount)
Sets the corresponding message account. |
void |
setParentGroup(UIGroup parentGroup)
Sets the given UIGroup to be the parent group of this UIContact. |
void |
setReadMessageCount(int count)
Sets the number of read messages, this notification is about. |
void |
setUnreadMessageCount(int count)
Sets the number of unread messages, this notification is about. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotificationContact(NotificationGroup group,
ProtocolProviderService protocolProvider)
group - the parent groupprotocolProvider - the corresponding protocol provider| Method Detail |
|---|
public Object getDescriptor()
getDescriptor in interface UIContactpublic String getDisplayName()
getDisplayName in interface UIContactpublic String getDisplayDetails()
getDisplayDetails in interface UIContactpublic int getSourceIndex()
getSourceIndex in interface UIContact
public ImageIcon getAvatar(boolean isSelected,
int width,
int height)
getAvatar in interface UIContactisSelected - indicates if the contact is selectedwidth - the width of the avatarheight - the height of the avatar
public ImageIcon getStatusIcon()
getStatusIcon in interface UIContactpublic ExtendedTooltip getToolTip()
getToolTip in interface UIContactpublic JPopupMenu getRightButtonMenu()
getRightButtonMenu in interface UIContactpublic UIGroup getParentGroup()
getParentGroup in interface UIContactpublic void setParentGroup(UIGroup parentGroup)
setParentGroup in interface UIContactparentGroup - the parent UIGroup of this contactpublic Iterator<String> getSearchStrings()
getSearchStrings in interface UIContactpublic ContactNode getContactNode()
getContactNode in interface UIContactpublic void setContactNode(ContactNode contactNode)
setContactNode in interface UIContactcontactNode - the ContactNode that corresponds to this
UIGrouppublic UIContactDetail getDefaultContactDetail(Class<? extends OperationSet> opSetClass)
getDefaultContactDetail in interface UIContactopSetClass - the OperationSet class we're interested in
public List<UIContactDetail> getContactDetailsForOperationSet(Class<? extends OperationSet> opSetClass)
getContactDetailsForOperationSet in interface UIContactopSetClass - the OperationSet class we're interested in
public void setMessageAccount(String messageAccount)
messageAccount - the message account corresponding to the contained
notificationpublic void setUnreadMessageCount(int count)
count - the number of unread messages, this notification is aboutpublic int getUnreadMessageCount()
public void setReadMessageCount(int count)
count - the number of read messages, this notification is aboutpublic void registrationStateChanged(RegistrationStateChangeEvent evt)
registrationStateChanged in interface RegistrationStateChangeListenerevt - the ProviderPresenceStatusChangeEvent that has
notified us of the state changepublic void providerStatusChanged(ProviderPresenceStatusChangeEvent evt)
providerStatusChanged in interface ProviderPresenceStatusListenerevt - the ProviderPresenceStatusChangeEvent that has
notified us of the status changepublic void providerStatusMessageChanged(PropertyChangeEvent evt)
ProviderPresenceStatusListener
providerStatusMessageChanged in interface ProviderPresenceStatusListenerevt - a PropertyChangeEvent with a STATUS_MESSAGE property name,
containing the old and new status messages.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||