public class GenericUIContactImpl extends UIContactImpl
Constructor and Description |
---|
GenericUIContactImpl(java.lang.Object descriptor,
UIGroup parentGroup,
java.lang.String displayName)
Creates an instance of GenericUIContactImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
addContactDetails(java.lang.Class<? extends OperationSet> opSetClass,
java.util.List<UIContactDetail> detailsList)
Adds the given detailsList for the given opSetClass.
|
java.util.Collection<SIPCommButton> |
getContactCustomActionButtons()
Returns all custom action buttons for this notification contact.
|
java.util.List<UIContactDetail> |
getContactDetails()
Returns a list of all UIContactDetails within this
UIContact.
|
java.util.List<UIContactDetail> |
getContactDetailsForOperationSet(java.lang.Class<? extends OperationSet> opSetClass)
Returns a list of all UIContactDetails corresponding to the
given OperationSet class.
|
ContactNode |
getContactNode()
Returns the corresponding ContactNode from the contact list
component.
|
UIContactDetail |
getDefaultContactDetail(java.lang.Class<? extends OperationSet> opSetClass)
Returns the default ContactDetail to use for any operations
depending to the given OperationSet class.
|
java.lang.Object |
getDescriptor()
Returns the descriptor of this contact.
|
java.lang.String |
getDisplayDetails()
Returns the display details of this contact.
|
java.lang.String |
getDisplayName()
Returns the display name of this contact.
|
UIGroup |
getParentGroup()
Returns the parent group.
|
java.awt.Component |
getRightButtonMenu()
Returns the right button menu component.
|
javax.swing.ImageIcon |
getScaledAvatar(boolean isSelected,
int width,
int height)
Gets the avatar of a specific UIContact in the form of an
ImageIcon value.
|
java.util.Iterator<java.lang.String> |
getSearchStrings()
Returns an Iterator over a list of the search strings of this
contact.
|
int |
getSourceIndex()
Returns the index of this contact in its source.
|
javax.swing.ImageIcon |
getStatusIcon()
Returns the general status icon of the given UIContact.
|
ExtendedTooltip |
getToolTip()
Creates a tool tip for this contact.
|
void |
setAvatar(javax.swing.ImageIcon avatarIcon)
Sets the avatar of this UIContact in the form of an
ImageIcon value.
|
void |
setContactCustomActionButtons(java.util.Collection<SIPCommButton> buttonsList)
Sets all custom action buttons for this notification contact.
|
void |
setContactDetails(java.util.Map<java.lang.Class<? extends OperationSet>,java.util.List<UIContactDetail>> contactDetailsMap)
Sets the contact details map.
|
void |
setContactNode(ContactNode contactNode)
Sets the corresponding ContactNode.
|
void |
setDisplayDetails(java.lang.String displayDetails)
Sets the display details of this contact.
|
void |
setParentGroup(UIGroup parentGroup)
Sets the parent group.
|
void |
setSearchStrings(java.util.List<java.lang.String> strings)
Sets the list of the search strings of this contact.
|
void |
setSourceIndex(int index)
Sets the index of this contact.
|
void |
setStatusIcon(javax.swing.ImageIcon statusIcon)
Sets the general status icon of this contact.
|
filterAddressDisplay, getAvatar
getContactCustomActionMenuItems, getPreferredHeight
public GenericUIContactImpl(java.lang.Object descriptor, UIGroup parentGroup, java.lang.String displayName)
descriptor
- the descriptor of the contactparentGroup
- the parent groupdisplayName
- the display name of the contactpublic java.lang.Object getDescriptor()
getDescriptor
in class UIContact
public java.lang.String getDisplayName()
getDisplayName
in class UIContactImpl
public java.lang.String getDisplayDetails()
getDisplayDetails
in class UIContact
public void setDisplayDetails(java.lang.String displayDetails)
the
- display details of this contactpublic int getSourceIndex()
getSourceIndex
in class UIContact
public void setSourceIndex(int index)
the
- source indexpublic ExtendedTooltip getToolTip()
getToolTip
in class UIContact
public java.awt.Component getRightButtonMenu()
getRightButtonMenu
in class UIContact
public UIGroup getParentGroup()
getParentGroup
in class UIContact
public void setParentGroup(UIGroup parentGroup)
setParentGroup
in class UIContact
parentGroup
- the parent grouppublic java.util.Iterator<java.lang.String> getSearchStrings()
getSearchStrings
in class UIContact
public void setSearchStrings(java.util.List<java.lang.String> strings)
strings
- the list of search strings of this contactpublic UIContactDetail getDefaultContactDetail(java.lang.Class<? extends OperationSet> opSetClass)
getDefaultContactDetail
in class UIContact
opSetClass
- the OperationSet class we're interested inpublic java.util.List<UIContactDetail> getContactDetailsForOperationSet(java.lang.Class<? extends OperationSet> opSetClass)
getContactDetailsForOperationSet
in class UIContact
opSetClass
- the OperationSet class we're looking forpublic java.util.List<UIContactDetail> getContactDetails()
getContactDetails
in class UIContact
public java.util.Collection<SIPCommButton> getContactCustomActionButtons()
getContactCustomActionButtons
in class UIContact
public void setContactCustomActionButtons(java.util.Collection<SIPCommButton> buttonsList)
buttonsList
- a list of all custom action buttons for this
notification contactpublic void addContactDetails(java.lang.Class<? extends OperationSet> opSetClass, java.util.List<UIContactDetail> detailsList)
opSetClass
- the class of the OperationSetdetailsList
- the list of contact details supported for the given
operation setpublic void setContactDetails(java.util.Map<java.lang.Class<? extends OperationSet>,java.util.List<UIContactDetail>> contactDetailsMap)
contactDetailsMap
- the map of contact details and corresponding
supported operation setpublic ContactNode getContactNode()
getContactNode
in class UIContactImpl
public void setContactNode(ContactNode contactNode)
setContactNode
in class UIContactImpl
contactNode
- the corresponding ContactNodepublic javax.swing.ImageIcon getStatusIcon()
getStatusIcon
in class UIContactImpl
public void setStatusIcon(javax.swing.ImageIcon statusIcon)
public javax.swing.ImageIcon getScaledAvatar(boolean isSelected, int width, int height)
getScaledAvatar
in class UIContactImpl
isSelected
- indicates if the contact is selectedwidth
- the desired icon widthheight
- the desired icon heightpublic void setAvatar(javax.swing.ImageIcon avatarIcon)
avatarIcon
- the avatar icon of this contact
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.