org.openorb.board
Class Plugin

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

public abstract class Plugin
extends java.lang.Object
implements DataTransferManager

OpenORB Management Board / Plugin Interface

Author:
Olivier Modica

Constructor Summary
Plugin()
           
 
Method Summary
 void activate()
          This method is invoked by the manager to activate the plugin
abstract  Manager getManager()
          Get the manager associated with this plugin
 javax.swing.Action[][] getMenuBarActions()
          This method is invoked by the manager to get the actions provided by the menubar.
abstract  PluginLayout getPluginLayout()
          Get the plugin layout responsible for placing component areas
 java.lang.String getTitle()
          This method returns the plugin title
 javax.swing.Action[][] getToolBarActions()
          This method is invoked by the manager to get the actions provided by the toolbar.
abstract  void init(Manager manager, org.omg.CORBA.ORB orb, org.omg.PortableServer.POA poa)
          This method is invoked by the manager to init the plugin
 boolean isInvisible()
          This method is invoked by the manager to check if the plugin should be invisible
 void passivate()
          This method is invoked by the manager to passivate the plugin
abstract  void setComponentFactory(ComponentFactory factory)
          Set the component factory responsible for creating basic components
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openorb.board.DataTransferManager
getCopiedObject, getCutObject, getDraggedObject, handleCopiedObject, handleCutObject, handleDraggedObject, lostOwnership
 

Constructor Detail

Plugin

public Plugin()
Method Detail

getTitle

public java.lang.String getTitle()
This method returns the plugin title

init

public abstract void init(Manager manager,
                          org.omg.CORBA.ORB orb,
                          org.omg.PortableServer.POA poa)
This method is invoked by the manager to init the plugin

activate

public void activate()
This method is invoked by the manager to activate the plugin

passivate

public void passivate()
This method is invoked by the manager to passivate the plugin

isInvisible

public boolean isInvisible()
This method is invoked by the manager to check if the plugin should be invisible

getMenuBarActions

public javax.swing.Action[][] getMenuBarActions()
This method is invoked by the manager to get the actions provided by the menubar. The array of actions represent the different menus. The fist Action is the Menu, the followings are MenuItems.

getToolBarActions

public javax.swing.Action[][] getToolBarActions()
This method is invoked by the manager to get the actions provided by the toolbar. The array of actions represent the different buttons. The fist Action is the first ToolBar, the followings are other ToolBars ( placed after the Copy/Cut/Paste toolbar ).

getPluginLayout

public abstract PluginLayout getPluginLayout()
Get the plugin layout responsible for placing component areas

setComponentFactory

public abstract void setComponentFactory(ComponentFactory factory)
Set the component factory responsible for creating basic components

getManager

public abstract Manager getManager()
Get the manager associated with this plugin