edu.ou.kmi.buddyspace.utils
Class AlertsWinManager

java.lang.Object
  |
  +--edu.ou.kmi.buddyspace.utils.WinManager
        |
        +--edu.ou.kmi.buddyspace.utils.AlertsWinManager
Direct Known Subclasses:
BSChatWinManager, BSConfWinManager

public abstract class AlertsWinManager
extends WinManager

AlertsWinManager is manager of AlertsDockableWindows, which supports handling of alerts - displays windows with new messages in different way.


Field Summary
 
Fields inherited from class edu.ou.kmi.buddyspace.utils.WinManager
openWindows, tabbedPane
 
Constructor Summary
AlertsWinManager(javax.swing.JTabbedPane tabbedPane)
           
 
Method Summary
 void closeAllWindows()
          Closes all chat windows
protected abstract  java.awt.Image getWinImage(AlertsDockableWindow win, boolean newMsg)
          Returns Image which should be used for given window when newMsg status.
 boolean isNewMessage()
          Returns if there are some new unread messages
 void updateNewMessageFlags(AlertsDockableWindow win, boolean newMsg)
          Updates newMessage flags
 
Methods inherited from class edu.ou.kmi.buddyspace.utils.WinManager
addWindow, closeWindow, getWindow, isWindowActive, isWindowOpen, selectWindow, setTabbedPane, setWindowDocked, setWindowDocked, setWindowTitle, showWindow, showWindow, updateLAF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlertsWinManager

public AlertsWinManager(javax.swing.JTabbedPane tabbedPane)
Method Detail

updateNewMessageFlags

public void updateNewMessageFlags(AlertsDockableWindow win,
                                  boolean newMsg)
Updates newMessage flags


isNewMessage

public boolean isNewMessage()
Returns if there are some new unread messages


closeAllWindows

public void closeAllWindows()
Closes all chat windows

Overrides:
closeAllWindows in class WinManager

getWinImage

protected abstract java.awt.Image getWinImage(AlertsDockableWindow win,
                                              boolean newMsg)
Returns Image which should be used for given window when newMsg status.