|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.jivesoftware.spark.ui.ContactList
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
ContactList()
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addContactListListener(ContactListListener listener)
|
void |
addContextMenuListener(ContextMenuListener listener)
|
void |
addFileDropListener(FileDropListener listener)
|
void |
addSubscriptionListener()
|
boolean |
canShutDown()
This method is invoked by the PluginManager before Spark
terminates. |
void |
contactGroupPopup(java.awt.event.MouseEvent e,
ContactGroup group)
Notifies the user that a Popup event has occured on the ContactGroup title bar. |
void |
contactItemAdded(ContactItem item)
Notifies a user that a new ContactItem has been added to the ContactGroup. |
void |
contactItemClicked(ContactItem item)
Notifies the user that a ContactItem within the ContactGroup has been clicked. |
void |
contactItemDoubleClicked(ContactItem item)
Notifies the user that a ContactItem within the ContactGroup has been double-clicked. |
void |
contactItemRemoved(ContactItem item)
Notifies the user that a ContactItem has been removed from a ContactGroup. |
void |
entriesAdded(java.util.Collection addresses)
Called when NEW entries are added. |
void |
entriesDeleted(java.util.Collection addresses)
Called when users are removed from the roster. |
void |
entriesUpdated(java.util.Collection addresses)
Handle when the Roster changes based on subscription notices. |
void |
fireContactGroupAdded(ContactGroup group)
|
void |
fireContactGroupRemoved(ContactGroup group)
|
void |
fireContactItemAdded(ContactItem item)
|
void |
fireContactItemRemoved(ContactItem item)
|
void |
fireContextMenuListenerPopup(javax.swing.JPopupMenu popup,
java.lang.Object object)
|
void |
fireFilesDropped(java.util.Collection files,
ContactItem item)
|
ContactGroup |
getActiveGroup()
|
ContactGroup |
getContactGroup(java.lang.String groupName)
|
java.util.List |
getContactGroups()
|
ContactItem |
getContactItemByJID(java.lang.String jid)
Retrieve the ContactItem by it's jid. |
ContactItem |
getContactItemByNickname(java.lang.String nickname)
Retrieve the ContactItem by their nickname. |
javax.swing.JComponent |
getGUI()
|
javax.swing.JPanel |
getMainPanel()
|
java.util.Collection |
getSelectedUsers()
|
void |
initialize()
Invoked by the PluginManager after the instance of the
Plugin is instantiated. |
void |
presenceChanged(java.lang.String user)
|
void |
removeContactListListener(ContactListListener listener)
|
void |
removeContextMenuListener(ContextMenuListener listener)
|
void |
removeFileDropListener(FileDropListener listener)
|
void |
showPopup(java.awt.event.MouseEvent e,
java.util.Collection items)
Notifies the user that a popup call has occured on the ContactGroup. |
void |
showPopup(java.awt.event.MouseEvent e,
ContactItem item)
Shows popup for right-clicking of ContactItem. |
void |
shutdown()
This method is invoked by the PluginManager when Spark
wishes you to remove any temporary resources (in memory) such as installed
components, or settings. |
void |
uninstall()
This method is invoked by the PluginManager when a Spark user
asks that this plugin be uninstalled. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ContactList()
| Method Detail |
public void entriesAdded(java.util.Collection addresses)
entriesAdded in interface org.jivesoftware.smack.RosterListeneraddresses - the addressss added.public void entriesUpdated(java.util.Collection addresses)
entriesUpdated in interface org.jivesoftware.smack.RosterListeneraddresses - public void entriesDeleted(java.util.Collection addresses)
entriesDeleted in interface org.jivesoftware.smack.RosterListeneraddresses - the addresses removed from the roster.public void presenceChanged(java.lang.String user)
presenceChanged in interface org.jivesoftware.smack.RosterListenerpublic ContactItem getContactItemByJID(java.lang.String jid)
jid - the JID of the user.
public ContactItem getContactItemByNickname(java.lang.String nickname)
nickname - the users nickname in the contact list.
public ContactGroup getContactGroup(java.lang.String groupName)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void contactItemClicked(ContactItem item)
ContactGroupListener
contactItemClicked in interface ContactGroupListeneritem - the ContactItem clicked.public void contactItemDoubleClicked(ContactItem item)
ContactGroupListener
contactItemDoubleClicked in interface ContactGroupListeneritem - the ContactItem double clicked.
public void contactGroupPopup(java.awt.event.MouseEvent e,
ContactGroup group)
ContactGroupListener
contactGroupPopup in interface ContactGroupListenere - the MouseEvent that triggered the event.group - the ContactGroup.
public void showPopup(java.awt.event.MouseEvent e,
ContactItem item)
showPopup in interface ContactGroupListenere - the MouseEventitem - the ContactItem
public void showPopup(java.awt.event.MouseEvent e,
java.util.Collection items)
ContactGroupListener
showPopup in interface ContactGroupListenere - the MouseEvent that triggered the event.items - the ContactItems within the ContactGroup.public void initialize()
PluginPluginManager after the instance of the
Plugin is instantiated. When invoked, The Plugin
should register with whatever listeners they may need to use or are required
for use during this classes lifecycle. Plugin authors should take
care to ensure that any extraneous initialization is not preformed on this method, and
any startup code that can be delayed until a later time is delayed, as
the Plugin's are synchronously initialized during the
startup of Spark, and each Plugin has the potential to
negatively impact the startup time of the product.
initialize in interface PluginPluginManagerpublic void addSubscriptionListener()
public void shutdown()
PluginPluginManager when Spark
wishes you to remove any temporary resources (in memory) such as installed
components, or settings. Any non java resources (file handles, database connections,
etc) which are still being held by this Plugin should be
released by this method immediately. This method is not guaranteed to
be called, but on normal terminations of Spark, this method will be
invoked.
shutdown in interface Pluginpublic boolean canShutDown()
PluginPluginManager before Spark
terminates. Plugin's should NOT use this method to release resources.
They should only use this method to give users the opportunity to
cancel the exit process if there is some process started by this
plugin still running.
Implementations should return false to cancel the shutdown
process.
canShutDown in interface Pluginpublic javax.swing.JPanel getMainPanel()
public java.util.List getContactGroups()
public void addContextMenuListener(ContextMenuListener listener)
public void removeContextMenuListener(ContextMenuListener listener)
public void fireContextMenuListenerPopup(javax.swing.JPopupMenu popup,
java.lang.Object object)
public javax.swing.JComponent getGUI()
public ContactGroup getActiveGroup()
public java.util.Collection getSelectedUsers()
public void addFileDropListener(FileDropListener listener)
public void removeFileDropListener(FileDropListener listener)
public void fireFilesDropped(java.util.Collection files,
ContactItem item)
public void contactItemAdded(ContactItem item)
ContactGroupListenerContactItem has been added to the ContactGroup.
contactItemAdded in interface ContactGroupListeneritem - the ContactItem.public void contactItemRemoved(ContactItem item)
ContactGroupListenerContactItem has been removed from a ContactGroup.
contactItemRemoved in interface ContactGroupListeneritem - the ContactItem removed.public void addContactListListener(ContactListListener listener)
public void removeContactListListener(ContactListListener listener)
public void fireContactItemAdded(ContactItem item)
public void fireContactItemRemoved(ContactItem item)
public void fireContactGroupAdded(ContactGroup group)
public void fireContactGroupRemoved(ContactGroup group)
public void uninstall()
PluginPluginManager when a Spark user
asks that this plugin be uninstalled. Before this method is called, you
will need to release all your in-memory resources in the #shutdown method. This
method should be used to remove on disk resources such as files, images, etc.
uninstall in interface Plugin
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||