public class TreeContactList extends DefaultTreeContactList implements ContactList, ContactQueryListener, MetaContactQueryListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, javax.swing.event.TreeWillExpandListener, javax.swing.event.TreeExpansionListener, javax.swing.event.TreeSelectionListener
javax.swing.JTree.AccessibleJTree, javax.swing.JTree.DropLocation, javax.swing.JTree.DynamicUtilTreeNode, javax.swing.JTree.EmptySelectionModel, javax.swing.JTree.TreeModelHandler, javax.swing.JTree.TreeSelectionRedirector
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static CallHistoryFilter |
historyFilter
The call history filter.
|
static MetaContactListSource |
mclSource
The meta contact list source.
|
static PresenceFilter |
presenceFilter
The presence filter.
|
static SearchFilter |
searchFilter
The search filter.
|
ANCHOR_SELECTION_PATH_PROPERTY, CELL_EDITOR_PROPERTY, CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, editable, EDITABLE_PROPERTY, EXPANDS_SELECTED_PATHS_PROPERTY, INVOKES_STOP_CELL_EDITING_PROPERTY, invokesStopCellEditing, LARGE_MODEL_PROPERTY, largeModel, LEAD_SELECTION_PATH_PROPERTY, ROOT_VISIBLE_PROPERTY, rootVisible, ROW_HEIGHT_PROPERTY, rowHeight, SCROLLS_ON_EXPAND_PROPERTY, scrollsOnExpand, SELECTION_MODEL_PROPERTY, selectionModel, selectionRedirector, SHOWS_ROOT_HANDLES_PROPERTY, showsRootHandles, TOGGLE_CLICK_COUNT_PROPERTY, toggleClickCount, TREE_MODEL_PROPERTY, treeModelListener, VISIBLE_ROW_COUNT_PROPERTY, visibleRowCount
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
TreeContactList(ContactListContainer clContainer)
Creates the TreeContactList.
|
Modifier and Type | Method and Description |
---|---|
void |
addContact(ContactQuery query,
UIContact contact,
UIGroup group,
boolean isSorted)
Adds the given contact to this list.
|
void |
addContact(UIContact contact,
UIGroup group,
boolean isContactSorted,
boolean isGroupSorted)
Adds the given contact to this list.
|
void |
addContactListListener(ContactListListener listener)
Adds a listener for ContactListEvents.
|
void |
addContactSource(ContactSourceService contactSource)
Adds the given contact source to the list of available contact sources.
|
void |
addGroup(UIGroup group,
boolean isSorted)
Adds the given group to this list.
|
FilterQuery |
applyDefaultFilter()
Applies the default filter.
|
FilterQuery |
applyFilter(ContactListFilter filter)
Applies the given filter.
|
void |
contactChanged(ContactChangedEvent event)
Indicates that a contact has been updated after a search.
|
void |
contactReceived(ContactReceivedEvent event)
Indicates that a contact has been received for a query.
|
void |
contactRemoved(ContactRemovedEvent event)
Indicates that a contact has been removed after a search.
|
static javax.swing.JMenuItem |
createAddContactMenu(SourceContact sourceContact)
Create an the add contact menu, taking into account the number of contact
details available in the given sourceContact.
|
void |
deactivateAll()
Deactivates all active contacts.
|
protected void |
fireContactListEvent(java.util.List<ContactListListener> contactListListeners,
ContactListEvent event)
Notifies all interested listeners that a ContactListEvent has
occurred.
|
void |
fireContactListEvent(java.lang.Object source,
int eventID,
int clickCount)
Creates the corresponding ContactListEvent and notifies all
ContactListListeners that a contact is selected.
|
java.awt.Component |
getComponent()
Returns the actual component corresponding to the contact list.
|
java.util.Collection<UIContact> |
getContacts(UIGroup group)
Returns a collection of all direct child UIContacts of the given
UIGroup.
|
UIContactSource |
getContactSource(ContactSourceService contactSource)
Returns the ExternalContactSource corresponding to the given
ContactSourceService.
|
java.util.Collection<UIContactSource> |
getContactSources()
Returns the list of registered contact sources to search in.
|
java.util.List<UIContactSource> |
getContactSources(int type)
Returns all UIContactSources of the given type.
|
ContactListFilter |
getCurrentFilter()
Returns the currently applied filter.
|
FilterQuery |
getCurrentFilterQuery()
Returns the currently applied filter.
|
ContactListFilter |
getDefaultFilter()
Gets the default filter for this contact list.
|
MetaContactListSource |
getMetaContactListSource() |
static NotificationContactSource |
getNotificationContactSource()
Returns the notification contact source.
|
java.awt.Component |
getRightButtonMenu()
Returns the right button menu opened over the contact list.
|
UIGroupImpl |
getRootUIGroup()
Returns the root meta contact UI group.
|
UIContact |
getSelectedContact()
Returns the currently selected UIContact if there's one.
|
java.util.List<UIContact> |
getSelectedContacts()
Returns the list of selected contacts.
|
UIGroup |
getSelectedGroup()
Returns the currently selected UIGroup if there's one.
|
ContactListTreeModel |
getTreeModel() |
boolean |
isContactActive(UIContactImpl contact)
Returns true if the given metaContact has been
previously set to active, otherwise returns false.
|
boolean |
isContactButtonsVisible()
Shows/hides buttons shown in contact row.
|
boolean |
isEmpty()
Indicates if this contact list is empty.
|
void |
metaContactQueryStatusChanged(MetaContactQueryStatusEvent event)
Indicates that the status of a query has changed.
|
void |
metaContactReceived(MetaContactQueryEvent event)
Indicates that a MetaContact has been received for a search in
the MetaContactListService.
|
void |
metaGroupReceived(MetaGroupQueryEvent event)
Indicates that a MetaGroup has been received from a search in
the MetaContactListService.
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Manages a mouse click over the contact list.
|
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e)
Forwards the given mouse event to the list of original
MouseListener-s.
|
void |
mouseExited(java.awt.event.MouseEvent e)
Forwards the given mouse event to the list of original
MouseListener-s.
|
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e)
When the right mouse button is clicked on a contact cell, the cell is
selected and the ContactRightButtonMenu is opened.
|
void |
mouseReleased(java.awt.event.MouseEvent event)
Forwards the given mouse event to the list of original
MouseListener-s.
|
void |
nodeChanged(javax.swing.tree.TreeNode node)
Indicates that a node has been changed.
|
void |
queryStatusChanged(ContactQueryStatusEvent event)
Indicates that the status of a query has changed.
|
void |
refreshContact(UIContact contact)
Indicates that the information corresponding to the given
contact has changed.
|
void |
removeAll()
Removes all entries in this contact list.
|
void |
removeAllContactSources()
Removes all stored contact sources.
|
void |
removeContact(UIContact contact)
Removes the node corresponding to the given MetaContact from
this list.
|
void |
removeContact(UIContact contact,
boolean removeEmptyGroup)
Removes the node corresponding to the given MetaContact from
this list.
|
void |
removeContactListListener(ContactListListener listener)
Removes a listener previously added with addContactListListener.
|
void |
removeContactSource(ContactSourceService contactSource)
Removes the given contact source from the list of available contact
sources.
|
void |
removeGroup(UIGroup group)
Removes the given group and its children from the list.
|
void |
removeSelection()
Removes the current selection.
|
void |
selectFirstContact()
Selects the first found contact node from the beginning of the contact
list.
|
void |
setActiveContact(MetaContact metaContact,
boolean isActive)
Updates the active state of the contact node corresponding to the given
MetaContact.
|
void |
setAutoSectionAllowed(boolean value)
Sets the value of auto selection flag.
|
void |
setContactButtonsVisible(boolean isVisible)
Shows/hides buttons shown in contact row.
|
void |
setDefaultFilter(ContactListFilter filter)
Sets the default filter to the given filter.
|
void |
setGroupClickConsumed(boolean isGroupClickConsumed)
If set to true prevents all operations coming in response to a mouse
click.
|
void |
setMultipleSelectionEnabled(boolean isEnabled)
Enables/disables multiple selection.
|
void |
setRightButtonMenuEnabled(boolean isEnabled)
Enables/disables the right mouse click menu.
|
void |
setSelectedContact(UIContact uiContact)
Selects the given UIContact in the contact list.
|
void |
setSelectedGroup(UIGroup uiGroup)
Selects the given UIGroup in the contact list.
|
static void |
showAddContactDialog(ContactDetail contactDetail,
java.lang.String displayName)
Creates and shows an AddContactDialog with a predefined
contactAddress and protocolProvider.
|
void |
startSelectedContactCall()
Starts a call with the currently selected contact in the contact list.
|
void |
startSelectedContactChat()
Starts a chat with the currently selected contact if any, otherwise
nothing happens.
|
void |
startSelectedContactDesktopSharing()
Starts a desktop sharing session with the currently selected contact in
the contact list.
|
void |
startSelectedContactVideoCall()
Starts a video call with the currently selected contact in the contact
list.
|
void |
treeCollapsed(javax.swing.event.TreeExpansionEvent event)
Stores the state of the collapsed group.
|
void |
treeExpanded(javax.swing.event.TreeExpansionEvent event)
Stores the state of the expanded group.
|
void |
treeWillCollapse(javax.swing.event.TreeExpansionEvent event)
Invoked whenever a node in the tree is about to be collapsed.
|
void |
treeWillExpand(javax.swing.event.TreeExpansionEvent event)
Invoked whenever a node in the tree is about to be expanded.
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent e)
Indicates that a selection has occurred on the tree.
|
createToolTip, findTreeCellComponent, getSelectedValue, getToolTipText, getUIClassID, isContactActive, isContactActive, loadSkin
addSelectionInterval, addSelectionPath, addSelectionPaths, addSelectionRow, addSelectionRows, addTreeExpansionListener, addTreeSelectionListener, addTreeWillExpandListener, cancelEditing, clearSelection, clearToggledPaths, collapsePath, collapseRow, convertValueToText, createTreeModel, createTreeModelListener, expandPath, expandRow, fireTreeCollapsed, fireTreeExpanded, fireTreeWillCollapse, fireTreeWillExpand, fireValueChanged, getAccessibleContext, getAnchorSelectionPath, getCellEditor, getCellRenderer, getClosestPathForLocation, getClosestRowForLocation, getDefaultTreeModel, getDescendantToggledPaths, getDragEnabled, getDropLocation, getDropMode, getEditingPath, getExpandedDescendants, getExpandsSelectedPaths, getInvokesStopCellEditing, getLastSelectedPathComponent, getLeadSelectionPath, getLeadSelectionRow, getMaxSelectionRow, getMinSelectionRow, getModel, getNextMatch, getPathBetweenRows, getPathBounds, getPathForLocation, getPathForRow, getPreferredScrollableViewportSize, getRowBounds, getRowCount, getRowForLocation, getRowForPath, getRowHeight, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollsOnExpand, getSelectionCount, getSelectionModel, getSelectionPath, getSelectionPaths, getSelectionRows, getShowsRootHandles, getToggleClickCount, getTreeExpansionListeners, getTreeSelectionListeners, getTreeWillExpandListeners, getUI, getVisibleRowCount, hasBeenExpanded, isCollapsed, isCollapsed, isEditable, isEditing, isExpanded, isExpanded, isFixedRowHeight, isLargeModel, isPathEditable, isPathSelected, isRootVisible, isRowSelected, isSelectionEmpty, isVisible, makeVisible, paramString, removeDescendantSelectedPaths, removeDescendantToggledPaths, removeSelectionInterval, removeSelectionPath, removeSelectionPaths, removeSelectionRow, removeSelectionRows, removeTreeExpansionListener, removeTreeSelectionListener, removeTreeWillExpandListener, scrollPathToVisible, scrollRowToVisible, setAnchorSelectionPath, setCellEditor, setCellRenderer, setDragEnabled, setDropMode, setEditable, setExpandedState, setExpandsSelectedPaths, setInvokesStopCellEditing, setLargeModel, setLeadSelectionPath, setModel, setRootVisible, setRowHeight, setScrollsOnExpand, setSelectionInterval, setSelectionModel, setSelectionPath, setSelectionPaths, setSelectionRow, setSelectionRows, setShowsRootHandles, setToggleClickCount, setUI, setVisibleRowCount, startEditingAtPath, stopEditing, treeDidChange, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setDragEnabled
public static final PresenceFilter presenceFilter
public static final MetaContactListSource mclSource
public static final SearchFilter searchFilter
public static final CallHistoryFilter historyFilter
public TreeContactList(ContactListContainer clContainer)
clContainer
- the container, where this contact list component is
addedpublic void contactReceived(ContactReceivedEvent event)
contactReceived
in interface ContactQueryListener
event
- the ContactReceivedEvent that notified uspublic void contactRemoved(ContactRemovedEvent event)
contactRemoved
in interface ContactQueryListener
event
- the ContactQueryEvent containing information
about the received SourceContactpublic void contactChanged(ContactChangedEvent event)
contactChanged
in interface ContactQueryListener
event
- the ContactQueryEvent containing information
about the updated SourceContactpublic void metaContactReceived(MetaContactQueryEvent event)
metaContactReceived
in interface MetaContactQueryListener
event
- the received MetaContactQueryEventpublic void metaGroupReceived(MetaGroupQueryEvent event)
metaGroupReceived
in interface MetaContactQueryListener
event
- the MetaContactGroupQueryEvent that has been
receivedpublic void queryStatusChanged(ContactQueryStatusEvent event)
queryStatusChanged
in interface ContactQueryListener
event
- the ContactQueryStatusEvent that notified uspublic void metaContactQueryStatusChanged(MetaContactQueryStatusEvent event)
metaContactQueryStatusChanged
in interface MetaContactQueryListener
event
- the ContactQueryStatusEvent that notified uspublic java.awt.Component getRightButtonMenu()
public void deactivateAll()
public void setActiveContact(MetaContact metaContact, boolean isActive)
metaContact
- the MetaContact to updateisActive
- indicates if the node should be set to activepublic boolean isContactActive(UIContactImpl contact)
contact
- the UIContact to checkpublic void addContact(UIContact contact, UIGroup group, boolean isContactSorted, boolean isGroupSorted)
addContact
in interface ContactList
contact
- the UIContact to addgroup
- the UIGroup to add toisContactSorted
- indicates if the contact should be sorted
regarding to the GroupNode policyisGroupSorted
- indicates if the group should be sorted regarding to
the GroupNode policy in case it doesn't exist and should be
addedpublic UIGroupImpl getRootUIGroup()
public void addContact(ContactQuery query, UIContact contact, UIGroup group, boolean isSorted)
addContact
in interface ContactList
query
- the ContactQuery that adds the given contactcontact
- the UIContact to addgroup
- the UIGroup to add toisSorted
- indicates if the contact should be sorted regarding to
the GroupNode policypublic void removeContact(UIContact contact, boolean removeEmptyGroup)
removeContact
in interface ContactList
contact
- the UIContact to removeremoveEmptyGroup
- whether we should delete the group if is emptypublic void removeContact(UIContact contact)
removeContact
in interface ContactList
contact
- the UIContact to removepublic void refreshContact(UIContact contact)
refreshContact
in interface ContactList
contact
- the contact that has changedpublic void addGroup(UIGroup group, boolean isSorted)
addGroup
in interface ContactList
group
- the UIGroup to addisSorted
- indicates if the contact should be sorted regarding to
the GroupNode policypublic void removeGroup(UIGroup group)
removeGroup
in interface ContactList
group
- the UIGroup to removepublic void removeAll()
removeAll
in interface ContactList
removeAll
in class java.awt.Container
public java.util.Collection<UIContact> getContacts(UIGroup group)
getContacts
in interface ContactList
group
- the parent UIGrouppublic void addContactListListener(ContactListListener listener)
addContactListListener
in interface ContactList
listener
- the listener to addpublic void removeContactListListener(ContactListListener listener)
removeContactListListener
in interface ContactList
listener
- the listener to removepublic void setGroupClickConsumed(boolean isGroupClickConsumed)
isGroupClickConsumed
- indicates if the group click event is
consumed by an external partypublic FilterQuery applyDefaultFilter()
applyDefaultFilter
in interface ContactList
public void setAutoSectionAllowed(boolean value)
value
- the value to be set.public FilterQuery applyFilter(ContactListFilter filter)
applyFilter
in interface ContactList
filter
- the ContactListFilter to apply.public void setDefaultFilter(ContactListFilter filter)
setDefaultFilter
in interface ContactList
filter
- the ContactListFilter to set as defaultpublic ContactListFilter getDefaultFilter()
getDefaultFilter
in interface ContactList
public ContactListFilter getCurrentFilter()
getCurrentFilter
in interface ContactList
public FilterQuery getCurrentFilterQuery()
getCurrentFilterQuery
in interface ContactList
public boolean isEmpty()
isEmpty
in interface ContactList
public void selectFirstContact()
selectFirstContact
in interface ContactList
public void fireContactListEvent(java.lang.Object source, int eventID, int clickCount)
source
- the contact that this event is about.eventID
- the id indicating the exact type of the event to fire.clickCount
- the number of clicks accompanying the event.protected void fireContactListEvent(java.util.List<ContactListListener> contactListListeners, ContactListEvent event)
contactListListeners
- the list of listeners to notifyevent
- the ContactListEvent to triggerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- the MouseEvent that notified us of the clickpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
e
- the MouseEvent that notified us of the presspublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- the MouseEvent that notified uspublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- the MouseEvent that notified uspublic void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased
in interface java.awt.event.MouseListener
event
- the MouseEvent that notified uspublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void treeWillExpand(javax.swing.event.TreeExpansionEvent event) throws javax.swing.tree.ExpandVetoException
treeWillExpand
in interface javax.swing.event.TreeWillExpandListener
javax.swing.tree.ExpandVetoException
public void treeWillCollapse(javax.swing.event.TreeExpansionEvent event) throws javax.swing.tree.ExpandVetoException
treeWillCollapse
in interface javax.swing.event.TreeWillExpandListener
javax.swing.tree.ExpandVetoException
public void treeCollapsed(javax.swing.event.TreeExpansionEvent event)
treeCollapsed
in interface javax.swing.event.TreeExpansionListener
event
- the TreeExpansionEvent that notified us for about
the expansionpublic void treeExpanded(javax.swing.event.TreeExpansionEvent event)
treeExpanded
in interface javax.swing.event.TreeExpansionListener
event
- the TreeExpansionEvent that notified us for about
the expansionpublic void startSelectedContactChat()
public void startSelectedContactCall()
public void startSelectedContactVideoCall()
public void startSelectedContactDesktopSharing()
public void nodeChanged(javax.swing.tree.TreeNode node)
node
- the TreeNode that has been refreshedpublic java.util.Collection<UIContactSource> getContactSources()
getContactSources
in interface ContactList
public void addContactSource(ContactSourceService contactSource)
addContactSource
in interface ContactList
contactSource
- the ContactSourceServicepublic void removeContactSource(ContactSourceService contactSource)
removeContactSource
in interface ContactList
contactSource
- public void removeAllContactSources()
removeAllContactSources
in interface ContactList
public static NotificationContactSource getNotificationContactSource()
public UIContactSource getContactSource(ContactSourceService contactSource)
getContactSource
in interface ContactList
contactSource
- the ContactSourceService, which
corresponding external source implementation we're looking forpublic java.util.List<UIContactSource> getContactSources(int type)
getContactSources
in interface ContactList
type
- the type of sources we're looking forpublic static javax.swing.JMenuItem createAddContactMenu(SourceContact sourceContact)
sourceContact
- the external source contact, for which we'd like
to create a menupublic static void showAddContactDialog(ContactDetail contactDetail, java.lang.String displayName)
contactDetail
- the contact detail to be addeddisplayName
- the display name of the contactpublic ContactListTreeModel getTreeModel()
public MetaContactListSource getMetaContactListSource()
public java.awt.Component getComponent()
ContactList
getComponent
in interface ContactList
public void setSelectedContact(UIContact uiContact)
setSelectedContact
in interface ContactList
uiContact
- the contact to selectpublic void setSelectedGroup(UIGroup uiGroup)
setSelectedGroup
in interface ContactList
uiGroup
- the group to selectpublic UIContact getSelectedContact()
getSelectedContact
in interface ContactList
public java.util.List<UIContact> getSelectedContacts()
getSelectedContacts
in interface ContactList
public UIGroup getSelectedGroup()
getSelectedGroup
in interface ContactList
public void setMultipleSelectionEnabled(boolean isEnabled)
setMultipleSelectionEnabled
in interface ContactList
isEnabled
- true to enable multiple selection,
false - otherwisepublic void removeSelection()
removeSelection
in interface ContactList
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged
in interface javax.swing.event.TreeSelectionListener
e
- the TreeSelectionEvent that notified us of the changepublic void setContactButtonsVisible(boolean isVisible)
setContactButtonsVisible
in interface ContactList
isVisible
- true to show contact buttons, false -
otherwise.public boolean isContactButtonsVisible()
isContactButtonsVisible
in interface ContactList
public void setRightButtonMenuEnabled(boolean isEnabled)
setRightButtonMenuEnabled
in interface ContactList
isEnabled
- true to enable right button menu,
false otherwise.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.