org.openorb.board

Class Plugin

public abstract class Plugin extends Object implements DataTransferManager

OpenORB Management Board / Plugin Interface

Author: Olivier Modica

Method Summary
voidactivate()
This method is invoked by the manager to activate the plugin
abstract ManagergetManager()
Get the manager associated with this plugin
Action[][]getMenuBarActions()
This method is invoked by the manager to get the actions provided by the menubar.
abstract PluginLayoutgetPluginLayout()
Get the plugin layout responsible for placing component areas
StringgetTitle()
This method returns the plugin title
Action[][]getToolBarActions()
This method is invoked by the manager to get the actions provided by the toolbar.
abstract voidinit(Manager manager, ORB orb, POA poa)
This method is invoked by the manager to init the plugin
booleanisInvisible()
This method is invoked by the manager to check if the plugin should be invisible
voidpassivate()
This method is invoked by the manager to passivate the plugin
abstract voidsetComponentFactory(ComponentFactory factory)
Set the component factory responsible for creating basic components

Method Detail

activate

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

getManager

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

getMenuBarActions

public 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.

getPluginLayout

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

getTitle

public String getTitle()
This method returns the plugin title

getToolBarActions

public 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 ).

init

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

isInvisible

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

passivate

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

setComponentFactory

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