edu.ou.kmi.buddyspace.plugins
Class BSPlugin

java.lang.Object
  |
  +--edu.ou.kmi.buddyspace.plugins.BSPlugin
Direct Known Subclasses:
BSAppLauncherPlugin, BSBrowsePlugin, BSConfPlugin, BSDiscoPlugin, BSMapsPlugin, BSPlansPlugin, BSPubsubPlugin, BSWebBrowserPlugin

public abstract class BSPlugin
extends java.lang.Object

BSPlugin is abstract class for general BuddySpace plugin. It provides basic plugin functionality and interface for plug-in loader calls.


Field Summary
protected  BSCore core
           
protected  BSMainFrame mainFrame
           
protected  java.lang.String name
           
protected  javax.swing.JTabbedPane tabbedPane
           
 
Constructor Summary
BSPlugin(BSMainFrame mainFrame, javax.swing.JTabbedPane tabbedPane, BSCore core)
          Constructor
 
Method Summary
protected abstract  void addGUIControls()
          Adds controls to main window,...
 void addOpenWindows(java.util.Vector openWindows, boolean connected)
          Add its open windows into the vector (for opening when starting next time).
protected abstract  void connectBeans()
          Connects to the BuddySpace beans
 void connected()
          Handles connection change to connected
abstract  void disconnected()
          Handles connection change to disconnected
abstract  void getPreferencesTab(java.util.Vector components, java.util.Vector names)
          Adds components and their names for display in preferences dialog
abstract  void getSupportedNamespaces(java.util.Vector namespaces, java.util.Vector names)
          Adds supported namespaces and their names
protected abstract  void initCore()
          Inits plugin core
protected abstract  void initGUI()
          Inits plugin GUI
 boolean isNewMessage()
          Returns if there are some new messages (alerts)
protected abstract  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.
 void shutdownCorbaServer(java.lang.String namespace)
          Shuts down corba server for plugin.
 boolean startCorbaServer(java.lang.String namespace)
          Starts corba server for plugin.
abstract  boolean storePreferences()
          Stores preferences from preferences tab
abstract  void updateLAF()
          Updates LAF of all plug-ins
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainFrame

protected BSMainFrame mainFrame

tabbedPane

protected javax.swing.JTabbedPane tabbedPane

core

protected BSCore core

name

protected java.lang.String name
Constructor Detail

BSPlugin

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

Method Detail

connected

public void connected()
Handles connection change to connected


disconnected

public abstract void disconnected()
Handles connection change to disconnected


initCore

protected abstract void initCore()
Inits plugin core


initGUI

protected abstract void initGUI()
Inits plugin GUI


addGUIControls

protected abstract void addGUIControls()
Adds controls to main window,...


connectBeans

protected abstract void connectBeans()
Connects to the BuddySpace beans


loadPreferences

protected abstract void loadPreferences()
Loads preferences


getPreferencesTab

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


storePreferences

public abstract boolean storePreferences()
Stores preferences from preferences tab


updateLAF

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


performAction

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


getSupportedNamespaces

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


isNewMessage

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


startCorbaServer

public boolean startCorbaServer(java.lang.String namespace)
Starts corba server for plugin. Returns if successful.


shutdownCorbaServer

public void shutdownCorbaServer(java.lang.String namespace)
Shuts down corba server for plugin.


openTheWindows

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


addOpenWindows

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