edu.ou.kmi.buddyspace.gui
Class BSStatusesBar

java.lang.Object
  |
  +--edu.ou.kmi.buddyspace.gui.BSStatusesBar
All Implemented Interfaces:
java.awt.event.ActionListener, BSPresenceListener, java.util.EventListener, java.awt.event.MouseListener

public class BSStatusesBar
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.MouseListener, BSPresenceListener

Window displaying presence statuses of favourite JIDs. Uses BSPresenceBean to receive presence info.


Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Handles actions from buttons
 void cancelListening()
          Removes itself from listening
protected  void maybeShowPopup(java.awt.event.MouseEvent e)
           
 void mouseClicked(java.awt.event.MouseEvent mouseEvent)
           
 void mouseEntered(java.awt.event.MouseEvent mouseEvent)
           
 void mouseExited(java.awt.event.MouseEvent mouseEvent)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void presenceChanged(BSPresenceInfo pi)
          Displays change of presence in chat window
 void presencesCleared()
          Called after disconnecting - no presence info is available
 void setDocked(boolean docked)
           
 void setMyPresenceImage(java.awt.Image img)
           
 void setPresenceBean(BSPresenceBean presenceBean)
           
 void setRosterBean(BSRosterBean rosterBean)
           
 void setToolTips()
           
 void subscriptionApproved(JID jid)
          Called when subscription request was approved
 void subscriptionRequested(JID jid)
          Called when subscription request was received
 void updatePresences()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setDocked

public void setDocked(boolean docked)

setPresenceBean

public void setPresenceBean(BSPresenceBean presenceBean)

setRosterBean

public void setRosterBean(BSRosterBean rosterBean)

setMyPresenceImage

public void setMyPresenceImage(java.awt.Image img)

setToolTips

public void setToolTips()

updatePresences

public void updatePresences()

cancelListening

public void cancelListening()
Removes itself from listening


presenceChanged

public void presenceChanged(BSPresenceInfo pi)
Displays change of presence in chat window

Specified by:
presenceChanged in interface BSPresenceListener

presencesCleared

public void presencesCleared()
Called after disconnecting - no presence info is available

Specified by:
presencesCleared in interface BSPresenceListener

subscriptionApproved

public void subscriptionApproved(JID jid)
Called when subscription request was approved

Specified by:
subscriptionApproved in interface BSPresenceListener

subscriptionRequested

public void subscriptionRequested(JID jid)
Called when subscription request was received

Specified by:
subscriptionRequested in interface BSPresenceListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Handles actions from buttons

Specified by:
actionPerformed in interface java.awt.event.ActionListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

maybeShowPopup

protected void maybeShowPopup(java.awt.event.MouseEvent e)

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent mouseEvent)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent mouseEvent)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent mouseEvent)
Specified by:
mouseExited in interface java.awt.event.MouseListener