public class ShowMoreContact extends UIContactImpl implements ContactListListener
Constructor and Description |
---|
ShowMoreContact(ContactQuery contactQuery,
java.util.List<SourceContact> queryResults,
int maxResultCount)
Creates an instance of MoreInfoContact.
|
Modifier and Type | Method and Description |
---|---|
void |
contactClicked(ContactListEvent evt)
Indicates that a contact has been clicked in the contact list.
|
void |
contactSelected(ContactListEvent evt)
We're not interested in contact selection events here.
|
java.util.Collection<SIPCommButton> |
getContactCustomActionButtons()
Returns all custom action buttons for this meta contact.
|
java.util.List<UIContactDetail> |
getContactDetails()
Returns null to indicate that this contact has no contact details.
|
java.util.List<UIContactDetail> |
getContactDetailsForOperationSet(java.lang.Class<? extends OperationSet> opSetClass)
Returns null to indicate that this contact has no contact details.
|
ContactNode |
getContactNode()
Returns the corresponding contact node.
|
UIContactDetail |
getDefaultContactDetail(java.lang.Class<? extends OperationSet> opSetClass)
Returns null to indicate that this contact has no contact details.
|
java.lang.Object |
getDescriptor()
Returns the descriptor of this contact.
|
java.lang.String |
getDisplayDetails()
Returns null to indicate that there are no display details.
|
java.lang.String |
getDisplayName()
Returns an empty string to indicate that this contact has no display
name.
|
UIGroup |
getParentGroup()
Returns the parent group of this contact.
|
javax.swing.JPopupMenu |
getRightButtonMenu()
Returns null to indicate that this contact has no right button menu.
|
javax.swing.ImageIcon |
getScaledAvatar(boolean isSelected,
int width,
int height)
Returns null to indicate that this contact has no avatar.
|
java.util.Iterator<java.lang.String> |
getSearchStrings()
Returns null to indicate that this contact cannot be searched.
|
int |
getSourceIndex()
Returns Integer.MAX_VALUE to indicate that this contact should be placed
at the end of its parent group.
|
javax.swing.ImageIcon |
getStatusIcon()
Returns null to indicate that this contact has no status icon.
|
ExtendedTooltip |
getToolTip()
Returns an extended tooltip for this contact.
|
void |
groupClicked(ContactListEvent evt)
Indicates that a group has been selected.
|
void |
groupSelected(ContactListEvent evt)
We're not interested in group selection events here.
|
void |
setContactNode(ContactNode contactNode)
Sets the corresponding contact node.
|
void |
setParentGroup(UIGroup parentGroup)
Sets the parent group of this contact
|
filterAddressDisplay, getAvatar
getContactCustomActionMenuItems, getPreferredHeight
public ShowMoreContact(ContactQuery contactQuery, java.util.List<SourceContact> queryResults, int maxResultCount)
contactQuery
- the contact queryqueryResults
- the result listmaxResultCount
- the maximum result countpublic 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 int getSourceIndex()
getSourceIndex
in class UIContact
public javax.swing.ImageIcon getScaledAvatar(boolean isSelected, int width, int height)
getScaledAvatar
in class UIContactImpl
isSelected
- indicates if the contact is selectedwidth
- avatar widthheight
- avatar heightpublic javax.swing.ImageIcon getStatusIcon()
getStatusIcon
in class UIContactImpl
public ExtendedTooltip getToolTip()
getToolTip
in class UIContact
public javax.swing.JPopupMenu getRightButtonMenu()
getRightButtonMenu
in class UIContact
public UIGroup getParentGroup()
getParentGroup
in class UIContact
public void setParentGroup(UIGroup parentGroup)
setParentGroup
in class UIContact
parentGroup
- the parent group of this contactpublic 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 contact node to setpublic UIContactDetail getDefaultContactDetail(java.lang.Class<? extends OperationSet> opSetClass)
getDefaultContactDetail
in class UIContact
opSetClass
- the OperationSet class, which details we're
looking forpublic 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, which details we're
looking forpublic void contactClicked(ContactListEvent evt)
contactClicked
in interface ContactListListener
evt
- the ContactListEvent that notified uspublic void groupClicked(ContactListEvent evt)
ContactListListener
groupClicked
in interface ContactListListener
evt
- the ContactListEvent that has been triggered from
the user selectionpublic void groupSelected(ContactListEvent evt)
groupSelected
in interface ContactListListener
evt
- the ContactListEvent that has been triggered from
the user selectionpublic void contactSelected(ContactListEvent evt)
contactSelected
in interface ContactListListener
evt
- the ContactListEvent that has been triggered from
the user selectionpublic java.util.Collection<SIPCommButton> getContactCustomActionButtons()
getContactCustomActionButtons
in class UIContact
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.