edu.ou.kmi.buddyspace.plugins.conference
Class BSConfPlugin

java.lang.Object
  |
  +--edu.ou.kmi.buddyspace.plugins.BSPlugin
        |
        +--edu.ou.kmi.buddyspace.plugins.conference.BSConfPlugin
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class BSConfPlugin
extends BSPlugin
implements java.awt.event.ActionListener

BSConfPlugin is main class of conferencing plugin to BuddySpace. It provides methods for plugin loading and user interaction.


Field Summary
static java.lang.String confServer
           
static java.lang.String PREF_NAME_CONF_SERVER
           
 
Fields inherited from class edu.ou.kmi.buddyspace.plugins.BSPlugin
core, mainFrame, name, tabbedPane
 
Constructor Summary
BSConfPlugin(BSMainFrame mainFrame, javax.swing.JTabbedPane tabbedPane, BSCore core)
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Handles action from GUI controls in main window
protected  void addGUIControls()
          Adds GUI controls into main window
 void addOpenWindows(java.util.Vector openWindows, boolean connected)
          Add its open windows into the vector (for opening when starting next time).
protected  void connectBeans()
          Connects BuddySpace beans
 void connected()
          Handles connection change to connected
 void disconnected()
          Handles connection change to disconnected
 void getPreferencesTab(java.util.Vector components, java.util.Vector names)
          Returns components and their names for display in preferences dialog
 void getSupportedNamespaces(java.util.Vector namespaces, java.util.Vector names)
          Adds supported namespaces and their names
protected  void initCore()
          Inits the plugin core
protected  void initGUI()
          Inits plugin GUI
 boolean isNewMessage()
          Returns if there are some new messages (alerts)
protected  void loadPreferences()
          Loads preferences.
 void openTheWindows(java.util.Vector openWindows, boolean connected)
          Opens windows specified in vector.
 boolean performAction(JID jid, java.lang.String namespace)
          Performs action within given namespace for given JID.
 boolean storePreferences()
          Stores preferences from preferences tab.
 void updateLAF()
          Updates LAF of all plug-ins
 
Methods inherited from class edu.ou.kmi.buddyspace.plugins.BSPlugin
shutdownCorbaServer, startCorbaServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREF_NAME_CONF_SERVER

public static final java.lang.String PREF_NAME_CONF_SERVER
See Also:
Constant Field Values

confServer

public static java.lang.String confServer
Constructor Detail

BSConfPlugin

public BSConfPlugin(BSMainFrame mainFrame,
                    javax.swing.JTabbedPane tabbedPane,
                    BSCore core)
Constructor

Method Detail

initCore

protected void initCore()
Inits the plugin core

Specified by:
initCore in class BSPlugin

initGUI

protected void initGUI()
Inits plugin GUI

Specified by:
initGUI in class BSPlugin

addGUIControls

protected void addGUIControls()
Adds GUI controls into main window

Specified by:
addGUIControls in class BSPlugin

connectBeans

protected void connectBeans()
Connects BuddySpace beans

Specified by:
connectBeans in class BSPlugin

connected

public void connected()
Handles connection change to connected

Overrides:
connected in class BSPlugin

disconnected

public void disconnected()
Handles connection change to disconnected

Specified by:
disconnected in class BSPlugin

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Handles action from GUI controls in main window

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

loadPreferences

protected void loadPreferences()
Loads preferences.

Specified by:
loadPreferences in class BSPlugin

getPreferencesTab

public void getPreferencesTab(java.util.Vector components,
                              java.util.Vector names)
Returns components and their names for display in preferences dialog

Specified by:
getPreferencesTab in class BSPlugin

storePreferences

public boolean storePreferences()
Stores preferences from preferences tab.

Specified by:
storePreferences in class BSPlugin

updateLAF

public void updateLAF()
Updates LAF of all plug-ins

Specified by:
updateLAF in class BSPlugin

isNewMessage

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

Overrides:
isNewMessage in class BSPlugin

performAction

public boolean performAction(JID jid,
                             java.lang.String namespace)
Performs action within given namespace for given JID. Returns if action was performed.

Overrides:
performAction in class BSPlugin

getSupportedNamespaces

public void getSupportedNamespaces(java.util.Vector namespaces,
                                   java.util.Vector names)
Adds supported namespaces and their names

Specified by:
getSupportedNamespaces in class BSPlugin

openTheWindows

public void openTheWindows(java.util.Vector openWindows,
                           boolean connected)
Opens windows specified in vector.

Overrides:
openTheWindows in class BSPlugin

addOpenWindows

public void addOpenWindows(java.util.Vector openWindows,
                           boolean connected)
Add its open windows into the vector (for opening when starting next time).

Overrides:
addOpenWindows in class BSPlugin