org.openorb.board.plugins.cfg
Class CfgPlugin

java.lang.Object
  |
  +--org.openorb.board.Plugin
        |
        +--org.openorb.board.plugins.cfg.CfgPlugin
All Implemented Interfaces:
java.awt.datatransfer.ClipboardOwner, DataTransferManager

public class CfgPlugin
extends Plugin

OpenORB Management Board / OpenORB Configuration plugin

Author:
Olivier Modica

Constructor Summary
CfgPlugin()
          Constructor
 
Method Summary
 void activate()
          This methods is called by the manager to activate the plugin
 void displayConfig()
          This method displays the configuration
 java.awt.datatransfer.Transferable getCopiedObject()
          This method is invoked by the manager when it copies an object
 java.awt.datatransfer.Transferable getCutObject()
          This method is invoked by the manager when it cuts an object
 java.awt.datatransfer.Transferable getDraggedObject()
          This method is invoked by the manager when it drags an object
 Manager getManager()
          Get the manager associated with this plugin
 PluginLayout getPluginLayout()
          Get the plugin layout responsible for placing component areas
 java.lang.String getTitle()
          This method returns the plugin title
 javax.swing.JButton[] getToolBarButtons()
          Get the toolbar buttons
 void handleCopiedObject(java.awt.datatransfer.Transferable contents)
          This method is invoked by a plugin to get a copied object
 void handleCutObject(java.awt.datatransfer.Transferable contents)
          This method is invoked by a plugin to get a cut object
 void handleDraggedObject(java.awt.datatransfer.Transferable contents)
          This method is invoked by a plugin to get a dragged object
 void init(Manager manager, org.omg.CORBA.ORB orb, org.omg.PortableServer.POA poa)
          This methods is called by the manager to init the plugin
 void initVars()
          Init the variables
 boolean isInvisible()
          This methods is called by the manager to check if the plugin should be invisible
 void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
          Lost clipboard ownership
 void open()
          This method opens an OpenORB configuration file
 void passivate()
          This methods is called by the manager to passivate the plugin
 void save()
          This method saves an OpenORB configuration file
 void setComponentFactory(ComponentFactory factory)
          Set the component factory responsible for creating basic components
 
Methods inherited from class org.openorb.board.Plugin
getMenuBarActions, getToolBarActions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CfgPlugin

public CfgPlugin()
Constructor
Method Detail

initVars

public void initVars()
Init the variables

getTitle

public java.lang.String getTitle()
This method returns the plugin title
Overrides:
getTitle in class Plugin

init

public void init(Manager manager,
                 org.omg.CORBA.ORB orb,
                 org.omg.PortableServer.POA poa)
This methods is called by the manager to init the plugin
Overrides:
init in class Plugin

activate

public void activate()
This methods is called by the manager to activate the plugin
Overrides:
activate in class Plugin

passivate

public void passivate()
This methods is called by the manager to passivate the plugin
Overrides:
passivate in class Plugin

isInvisible

public boolean isInvisible()
This methods is called by the manager to check if the plugin should be invisible
Overrides:
isInvisible in class Plugin

getPluginLayout

public PluginLayout getPluginLayout()
Get the plugin layout responsible for placing component areas
Overrides:
getPluginLayout in class Plugin

getToolBarButtons

public javax.swing.JButton[] getToolBarButtons()
Get the toolbar buttons

setComponentFactory

public void setComponentFactory(ComponentFactory factory)
Set the component factory responsible for creating basic components
Overrides:
setComponentFactory in class Plugin

getManager

public Manager getManager()
Get the manager associated with this plugin
Overrides:
getManager in class Plugin

getCopiedObject

public java.awt.datatransfer.Transferable getCopiedObject()
This method is invoked by the manager when it copies an object

getCutObject

public java.awt.datatransfer.Transferable getCutObject()
This method is invoked by the manager when it cuts an object

getDraggedObject

public java.awt.datatransfer.Transferable getDraggedObject()
This method is invoked by the manager when it drags an object

handleCopiedObject

public void handleCopiedObject(java.awt.datatransfer.Transferable contents)
This method is invoked by a plugin to get a copied object

handleCutObject

public void handleCutObject(java.awt.datatransfer.Transferable contents)
This method is invoked by a plugin to get a cut object

handleDraggedObject

public void handleDraggedObject(java.awt.datatransfer.Transferable contents)
This method is invoked by a plugin to get a dragged object

lostOwnership

public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
                          java.awt.datatransfer.Transferable contents)
Lost clipboard ownership

open

public void open()
This method opens an OpenORB configuration file

save

public void save()
This method saves an OpenORB configuration file

displayConfig

public void displayConfig()
This method displays the configuration