public class MetaUIContact extends UIContactImpl
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
subscribed
The subscription status of this meta contact.
|
Constructor and Description |
---|
MetaUIContact(MetaContact metaContact)
Creates an instance of MetaUIContact by specifying the
underlying MetaContact, on which it's based.
|
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 meta 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 UIContactDetails supporting the given
OperationSet class.
|
ContactNode |
getContactNode()
Returns the corresponding ContactNode in the contact list
component data model.
|
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 MetaContact.
|
java.lang.String |
getDisplayDetails()
Returns the display details for the underlying MetaContact.
|
java.lang.String |
getDisplayName()
Returns the display name of this MetaUIContact.
|
UIGroup |
getParentGroup()
Returns the parent UIGroup.
|
javax.swing.JPopupMenu |
getRightButtonMenu()
Returns the right button menu component.
|
javax.swing.ImageIcon |
getScaledAvatar(boolean isSelected,
int width,
int height)
Gets the avatar of a specific MetaContact in the form of an
ImageIcon value.
|
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 the index of the underlying MetaContact in its
MetaContactListService parent group.
|
javax.swing.ImageIcon |
getStatusIcon()
Returns the general status icon of the given MetaContact.
|
ExtendedTooltip |
getToolTip()
Returns the tool tip opened on mouse over.
|
void |
setContactNode(ContactNode contactNode)
Sets the corresponding ContactNode.
|
void |
setParentGroup(UIGroup parentGroup)
Sets the given parentGroup to be the parent UIGroup
of this MetaUIContact.
|
filterAddressDisplay
getContactCustomActionMenuItems, getPreferredHeight
boolean subscribed
public MetaUIContact(MetaContact metaContact)
metaContact
- the MetaContact, on which this implementation
is basedpublic java.lang.Object getDescriptor()
getDescriptor
in class UIContact
public java.lang.String getDisplayName()
getDisplayName
in class UIContactImpl
public int getSourceIndex()
getSourceIndex
in class UIContact
public java.util.Iterator<java.lang.String> getSearchStrings()
getSearchStrings
in class UIContact
public javax.swing.ImageIcon getStatusIcon()
getStatusIcon
in class UIContactImpl
public UIGroup getParentGroup()
getParentGroup
in class UIContact
public void setParentGroup(UIGroup parentGroup)
setParentGroup
in class UIContact
parentGroup
- the parent UIGroup to setpublic 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 interested inpublic java.util.List<UIContactDetail> getContactDetails()
getContactDetails
in class UIContact
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 selectedwidth
- the desired icon widthheight
- the desired icon heightpublic java.lang.String getDisplayDetails()
getDisplayDetails
in class UIContact
public ExtendedTooltip getToolTip()
getToolTip
in class UIContact
public ContactNode getContactNode()
getContactNode
in class UIContactImpl
public void setContactNode(ContactNode contactNode)
setContactNode
in class UIContactImpl
contactNode
- the corresponding ContactNode in the contact
list component data modelpublic javax.swing.JPopupMenu getRightButtonMenu()
getRightButtonMenu
in class UIContact
public java.util.Collection<SIPCommButton> getContactCustomActionButtons()
getContactCustomActionButtons
in class UIContact
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.