edu.ou.kmi.buddyspace.plugins.disco
Class BSDiscoPlugin

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

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

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


Field Summary
 
Fields inherited from class edu.ou.kmi.buddyspace.plugins.BSPlugin
core, mainFrame, name, tabbedPane
 
Constructor Summary
BSDiscoPlugin(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
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
protected  void initMenu()
          Inits browse menu for BSMainFrame.
protected  void loadPreferences()
          Loads preferences.
 boolean performAction(JID jid, java.lang.String namespace)
          If namespace is http://jabber.org/protocol/disco#items or #info disco's given JID and returns true otherwise returns false.
 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
addOpenWindows, isNewMessage, openTheWindows, shutdownCorbaServer, startCorbaServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BSDiscoPlugin

public BSDiscoPlugin(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

performAction

public boolean performAction(JID jid,
                             java.lang.String namespace)
If namespace is http://jabber.org/protocol/disco#items or #info disco's given JID and returns true otherwise returns false.

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

initMenu

protected void initMenu()
Inits browse menu for BSMainFrame. The menu includes agents and register shortcuts.


loadPreferences

protected void loadPreferences()
Loads preferences. Empty implementation.

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. Empty implementation - returns null.

Specified by:
getPreferencesTab in class BSPlugin

storePreferences

public boolean storePreferences()
Stores preferences from preferences tab. Empty implementation.

Specified by:
storePreferences in class BSPlugin

updateLAF

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

Specified by:
updateLAF in class BSPlugin