org.openorb.trader.plugin
Class Plugin

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

public class Plugin
extends org.openorb.board.Plugin

OpenORB Management Board / Trading Service

Author:
Olivier Modica

Constructor Summary
Plugin()
          Constructor
 
Method Summary
 void activate()
          This methods is called by the manager to activate the plugin
 void addQuery()
          This method adds a query
 void connect()
          This method connects to an Trading Service
 void disconnect()
          This method disconnects from a Trading Service
 void displayTrader()
          This method displays a Trader
 void editProperty()
          This operation is invoked when editing a property
 void executeQuery()
          Execute a query
 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
 org.openorb.board.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.
 org.openorb.board.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.
 javax.swing.tree.DefaultTreeModel getTreeModel()
          This methods returns the tree model used by the tree table component
 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(org.openorb.board.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 passivate()
          This methods is called by the manager to passivate the plugin
 void setComponentFactory(org.openorb.board.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
 

Constructor Detail

Plugin

public Plugin()
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 org.openorb.board.Plugin

init

public void init(org.openorb.board.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 org.openorb.board.Plugin

activate

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

passivate

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

isInvisible

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

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.
Overrides:
getMenuBarActions in class org.openorb.board.Plugin

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 ).
Overrides:
getToolBarActions in class org.openorb.board.Plugin

getPluginLayout

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

setComponentFactory

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

getManager

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

getCopiedObject

public java.awt.datatransfer.Transferable getCopiedObject()
This method is invoked by the manager when it copies an object
Overrides:
getCopiedObject in class org.openorb.board.Plugin

getCutObject

public java.awt.datatransfer.Transferable getCutObject()
This method is invoked by the manager when it cuts an object
Overrides:
getCutObject in class org.openorb.board.Plugin

getDraggedObject

public java.awt.datatransfer.Transferable getDraggedObject()
This method is invoked by the manager when it drags an object
Overrides:
getDraggedObject in class org.openorb.board.Plugin

handleCopiedObject

public void handleCopiedObject(java.awt.datatransfer.Transferable contents)
This method is invoked by a plugin to get a copied object
Overrides:
handleCopiedObject in class org.openorb.board.Plugin

handleCutObject

public void handleCutObject(java.awt.datatransfer.Transferable contents)
This method is invoked by a plugin to get a cut object
Overrides:
handleCutObject in class org.openorb.board.Plugin

handleDraggedObject

public void handleDraggedObject(java.awt.datatransfer.Transferable contents)
This method is invoked by a plugin to get a dragged object
Overrides:
handleDraggedObject in class org.openorb.board.Plugin

lostOwnership

public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
                          java.awt.datatransfer.Transferable contents)
Lost clipboard ownership
Overrides:
lostOwnership in class org.openorb.board.Plugin

connect

public void connect()
This method connects to an Trading Service

disconnect

public void disconnect()
This method disconnects from a Trading Service

displayTrader

public void displayTrader()
This method displays a Trader

getTreeModel

public javax.swing.tree.DefaultTreeModel getTreeModel()
This methods returns the tree model used by the tree table component

addQuery

public void addQuery()
This method adds a query

executeQuery

public void executeQuery()
Execute a query

editProperty

public void editProperty()
This operation is invoked when editing a property