public class SourceUIContact extends UIContactImpl
Modifier and Type | Class and Description |
---|---|
protected static class |
SourceUIContact.SourceContactDetail
The implementation of the UIContactDetail interface for the
external source ContactDetails.
|
Constructor and Description |
---|
SourceUIContact(SourceContact contact,
ExternalContactSource.SourceUIGroup parentGroup)
Creates an instance of SourceUIContact by specifying the
SourceContact, on which this abstraction is based and the
parent UIGroup.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getAvatar()
Gets the avatar of a specific UIContact in the form of an
ImageIcon value.
|
java.util.Collection<SIPCommButton> |
getContactCustomActionButtons()
Returns all custom action buttons for this notification contact.
|
java.util.Collection<javax.swing.JMenuItem> |
getContactCustomActionMenuItems(boolean initActions)
Returns all custom action menu items for this contact.
|
java.util.List<UIContactDetail> |
getContactDetails()
Returns a list of all contained UIContactDetails.
|
java.util.List<UIContactDetail> |
getContactDetailsForOperationSet(java.lang.Class<? extends OperationSet> opSetClass)
Returns a list of UIContactDetails supporting 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 underlying SourceContact this abstraction is about.
|
java.lang.String |
getDisplayDetails()
Returns the display details for the underlying SourceContact.
|
java.lang.String |
getDisplayName()
Returns the display name of the underlying SourceContact.
|
protected java.lang.String |
getInternationalizedLabel(ContactDetail.Category category)
Returns the internationalized category corresponding to the given
ContactDetail.Category.
|
protected java.lang.String |
getInternationalizedLabel(ContactDetail.SubCategory subCategory)
Returns the internationalized label corresponding to the given category.
|
protected java.util.Collection<java.lang.String> |
getInternationalizedLabels(java.util.Iterator<ContactDetail.SubCategory> subCategories)
Returns a collection of internationalized string corresponding to the
given subCategories.
|
UIGroup |
getParentGroup()
Returns the parent UIGroup.
|
javax.swing.JPopupMenu |
getRightButtonMenu()
Returns the JPopupMenu opened on a right button click over this
SourceUIContact.
|
javax.swing.ImageIcon |
getScaledAvatar(boolean isSelected,
int width,
int height)
Returns the image corresponding to the underlying SourceContact.
|
java.util.Iterator<java.lang.String> |
getSearchStrings()
Returns an Iterator over a list of strings, which can be used
to find this contact.
|
int |
getSourceIndex()
Returns -1 to indicate that the source index of the underlying
SourceContact is unknown.
|
javax.swing.ImageIcon |
getStatusIcon()
Returns null to indicate unknown status of the underlying
SourceContact.
|
ExtendedTooltip |
getToolTip()
Returns the tool tip opened on mouse over.
|
void |
setContactNode(ContactNode contactNode)
Sets the corresponding ContactNode.
|
void |
setParentGroup(UIGroup parentGroup)
The parent group of source contacts could not be changed.
|
filterAddressDisplay
getPreferredHeight
public SourceUIContact(SourceContact contact, ExternalContactSource.SourceUIGroup parentGroup)
contact
- the SourceContact, on which this abstraction
is basedparentGroup
- the parent UIGrouppublic java.lang.String getDisplayName()
getDisplayName
in class UIContactImpl
public UIGroup getParentGroup()
getParentGroup
in class UIContact
public void setParentGroup(UIGroup parentGroup)
setParentGroup
in class UIContact
parentGroup
- the parent group to setpublic int getSourceIndex()
getSourceIndex
in class UIContact
public javax.swing.ImageIcon getStatusIcon()
getStatusIcon
in class UIContactImpl
public byte[] getAvatar()
getAvatar
in class UIContactImpl
public javax.swing.ImageIcon getScaledAvatar(boolean isSelected, int width, int height)
getScaledAvatar
in class UIContactImpl
isSelected
- indicates if the contact is currently selected in the
contact list componentwidth
- the desired image widthheight
- the desired image heightpublic UIContactDetail getDefaultContactDetail(java.lang.Class<? extends OperationSet> opSetClass)
getDefaultContactDetail
in class UIContact
opSetClass
- the OperationSet class we're interested inpublic java.lang.Object getDescriptor()
getDescriptor
in class UIContact
public java.lang.String getDisplayDetails()
getDisplayDetails
in class UIContact
public java.util.List<UIContactDetail> getContactDetails()
getContactDetails
in class UIContact
public java.util.List<UIContactDetail> getContactDetailsForOperationSet(java.lang.Class<? extends OperationSet> opSetClass)
getContactDetailsForOperationSet
in class UIContact
opSetClass
- the OperationSet class we're interested inpublic java.util.Iterator<java.lang.String> getSearchStrings()
getSearchStrings
in class UIContact
public ContactNode getContactNode()
getContactNode
in class UIContactImpl
public void setContactNode(ContactNode contactNode)
setContactNode
in class UIContactImpl
contactNode
- the corresponding ContactNodepublic javax.swing.JPopupMenu getRightButtonMenu()
getRightButtonMenu
in class UIContact
public ExtendedTooltip getToolTip()
getToolTip
in class UIContact
protected java.lang.String getInternationalizedLabel(ContactDetail.Category category)
category
- the ContactDetail.SubCategory, for which we
would like to obtain an internationalized labelprotected java.util.Collection<java.lang.String> getInternationalizedLabels(java.util.Iterator<ContactDetail.SubCategory> subCategories)
subCategories
- an Iterator over a list of
ContactDetail.SubCategorysprotected java.lang.String getInternationalizedLabel(ContactDetail.SubCategory subCategory)
subCategory
- the ContactDetail.SubCategory, for which we
would like to obtain an internationalized labelpublic java.util.Collection<SIPCommButton> getContactCustomActionButtons()
getContactCustomActionButtons
in class UIContact
public java.util.Collection<javax.swing.JMenuItem> getContactCustomActionMenuItems(boolean initActions)
getContactCustomActionMenuItems
in class UIContact
initActions
- if true the actions will be reloaded.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.