org.openorb.board
Class Board

java.lang.Object
  |
  +--org.openorb.board.Board
All Implemented Interfaces:
Manager, ScenarioManager, ThreadManager

public class Board
extends java.lang.Object
implements Manager

OpenORB Management Board / Swing Graphic User Interface

Author:
Olivier Modica, Shawn Boyce

Field Summary
static java.lang.String OPT_PLUGINS
           
static java.lang.String OPT_PLUGINS_ARG
           
static java.lang.String OPT_PLUGINS_DESCRIP
           
static java.lang.String OPT_PLUGINS_LONG
           
 
Fields inherited from interface org.openorb.board.Manager
MESSAGE_ERROR, MESSAGE_INFO, MESSAGE_SUCCESS, MESSAGE_WARNING, TRACES_DEBUG, TRACES_FATAL, TRACES_NONE, TRACES_NORMAL
 
Constructor Summary
Board(java.lang.String[] args, java.util.Properties props)
          Constructor
 
Method Summary
 void clearScenario(Plugin plugin, java.lang.String scenarioName)
          This method deletes a scenario
 void displayHelp(java.net.URL page)
          TODO
 void displaySimpleDialog(java.lang.String title, java.lang.String message, int type)
          This method displays a dialog according to a title, a message and a type
 void doDelayedUIWork(Plugin plugin, java.lang.String methodName)
          This methods delays a UI plugin class method to avoid blocking the event thread
 void doDelayedUIWork(Plugin plugin, java.lang.String methodName, java.lang.Object[] args)
          This methods delays a UI plugin class method with args to avoid blocking the event thread
 void doDelayedUIWorks(Plugin plugin, java.lang.String[] methodNames)
          This methods delays UI plugin class methods to avoid blocking the event thread
 void doDelayedUIWorks(Plugin plugin, java.lang.String[] methodNames, java.lang.Object[][] args)
          This methods delays UI plugin class methods with args to avoid blocking the event thread
 void doThreadedWork(Plugin plugin, java.lang.String methodName, java.lang.Object[] methodArgs, java.lang.String notifyMethodName, java.lang.Object[] notifyMethodArgs)
          This methods threads a plugin class method with args and invoke a plugin class notify method with args when the thread returns
 void doThreadedWork(Plugin plugin, java.lang.String methodName, java.lang.String notifyMethodName)
          This methods threads a plugin class method and invoke a plugin class notify method when the thread returns
 void doThreadedWorks(Plugin plugin, java.lang.String[] methodNames, java.lang.Object[][] methodArgs, java.lang.String notifyMethodName, java.lang.Object[] notifyMethodArgs)
          This methods threads plugin class methods with args method and invoke a plugin class notify method with args when the thread returns
 void doThreadedWorks(Plugin plugin, java.lang.String[] methodNames, java.lang.String notifyMethodName)
          This methods threads plugin class methods and invoke a plugin class notify method when the thread returns
 void exposeResourceFactory(ResourceFactory factory)
          This method is invoked by a plugin to expose its Resource Factory
 java.awt.datatransfer.Clipboard getClipboard()
          Get the clipboard
 ComponentFactory getComponentFactory()
          This method is invoked by a plugin to get the Component Factory
 javax.help.HelpSet[] getHelpSets()
          This method returns the current helpsets
 org.apache.avalon.framework.logger.Logger getLogger()
          Return the process' logger instance.
 ManagerLayout getManagerLayout()
          Get the manager layout responsible for placing component areas
 PluginScenario getScenario(Plugin plugin, java.lang.String scenarioName)
          This method returns a previously stored scenario
 java.lang.String[] getScenarioNames(Plugin plugin)
          This methods returns the scenario names
 void installPlugin(Plugin plugin)
          This method adds a plugin
static void main(java.lang.String[] args)
          OpenORB Management Board entry point
 void printMessage(java.lang.String source, java.lang.String trace, int msgType)
          This method prints a trace on the JVM console or in the Management Board traces file
 void printTrace(java.lang.String source, java.lang.String trace, int traceLevel)
          This method prints a trace on the JVM console
 void setPlugin(Plugin plugin)
          This method sets the current plugin
 void setPluginManagerLayout(ManagerLayout layout)
          Set the manager layout responsible for placing component areas
 void setStatusBarText(java.lang.String text, int msgType)
          This method sets the status bar text
 void startScenario(Plugin plugin, java.lang.String scenarioName)
          This method starts a new scenario
 void stopScenario(Plugin plugin, java.lang.String scenarioName)
          This method stops a scenario
 void storeAction(Plugin plugin, java.lang.String scenarioName)
          This method stores an action into the scenario
 void toFront(Plugin plugin)
          This methods puts the plugin to front
 void uninstallPlugin(Plugin plugin)
          This method unregisters a plugin
 void unsetPlugin(Plugin plugin)
          This method unsets the current plugin
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPT_PLUGINS

public static final java.lang.String OPT_PLUGINS

OPT_PLUGINS_ARG

public static final java.lang.String OPT_PLUGINS_ARG

OPT_PLUGINS_LONG

public static final java.lang.String OPT_PLUGINS_LONG

OPT_PLUGINS_DESCRIP

public static final java.lang.String OPT_PLUGINS_DESCRIP
Constructor Detail

Board

public Board(java.lang.String[] args,
             java.util.Properties props)
Constructor
Method Detail

setStatusBarText

public void setStatusBarText(java.lang.String text,
                             int msgType)
This method sets the status bar text
Specified by:
setStatusBarText in interface Manager

getScenario

public PluginScenario getScenario(Plugin plugin,
                                  java.lang.String scenarioName)
This method returns a previously stored scenario
Specified by:
getScenario in interface ScenarioManager

getScenarioNames

public java.lang.String[] getScenarioNames(Plugin plugin)
This methods returns the scenario names
Specified by:
getScenarioNames in interface ScenarioManager

startScenario

public void startScenario(Plugin plugin,
                          java.lang.String scenarioName)
This method starts a new scenario
Specified by:
startScenario in interface ScenarioManager

storeAction

public void storeAction(Plugin plugin,
                        java.lang.String scenarioName)
This method stores an action into the scenario
Specified by:
storeAction in interface ScenarioManager

stopScenario

public void stopScenario(Plugin plugin,
                         java.lang.String scenarioName)
This method stops a scenario
Specified by:
stopScenario in interface ScenarioManager

clearScenario

public void clearScenario(Plugin plugin,
                          java.lang.String scenarioName)
This method deletes a scenario
Specified by:
clearScenario in interface ScenarioManager

doThreadedWork

public void doThreadedWork(Plugin plugin,
                           java.lang.String methodName,
                           java.lang.String notifyMethodName)
This methods threads a plugin class method and invoke a plugin class notify method when the thread returns
Specified by:
doThreadedWork in interface ThreadManager

doThreadedWork

public void doThreadedWork(Plugin plugin,
                           java.lang.String methodName,
                           java.lang.Object[] methodArgs,
                           java.lang.String notifyMethodName,
                           java.lang.Object[] notifyMethodArgs)
This methods threads a plugin class method with args and invoke a plugin class notify method with args when the thread returns
Specified by:
doThreadedWork in interface ThreadManager

doThreadedWorks

public void doThreadedWorks(Plugin plugin,
                            java.lang.String[] methodNames,
                            java.lang.String notifyMethodName)
This methods threads plugin class methods and invoke a plugin class notify method when the thread returns
Specified by:
doThreadedWorks in interface ThreadManager

doThreadedWorks

public void doThreadedWorks(Plugin plugin,
                            java.lang.String[] methodNames,
                            java.lang.Object[][] methodArgs,
                            java.lang.String notifyMethodName,
                            java.lang.Object[] notifyMethodArgs)
This methods threads plugin class methods with args method and invoke a plugin class notify method with args when the thread returns
Specified by:
doThreadedWorks in interface ThreadManager

doDelayedUIWork

public void doDelayedUIWork(Plugin plugin,
                            java.lang.String methodName)
This methods delays a UI plugin class method to avoid blocking the event thread
Specified by:
doDelayedUIWork in interface ThreadManager

doDelayedUIWork

public void doDelayedUIWork(Plugin plugin,
                            java.lang.String methodName,
                            java.lang.Object[] args)
This methods delays a UI plugin class method with args to avoid blocking the event thread
Specified by:
doDelayedUIWork in interface ThreadManager

doDelayedUIWorks

public void doDelayedUIWorks(Plugin plugin,
                             java.lang.String[] methodNames)
This methods delays UI plugin class methods to avoid blocking the event thread
Specified by:
doDelayedUIWorks in interface ThreadManager

doDelayedUIWorks

public void doDelayedUIWorks(Plugin plugin,
                             java.lang.String[] methodNames,
                             java.lang.Object[][] args)
This methods delays UI plugin class methods with args to avoid blocking the event thread
Specified by:
doDelayedUIWorks in interface ThreadManager

installPlugin

public void installPlugin(Plugin plugin)
This method adds a plugin
Specified by:
installPlugin in interface Manager

uninstallPlugin

public void uninstallPlugin(Plugin plugin)
This method unregisters a plugin
Specified by:
uninstallPlugin in interface Manager

toFront

public void toFront(Plugin plugin)
This methods puts the plugin to front
Specified by:
toFront in interface Manager

setPlugin

public void setPlugin(Plugin plugin)
This method sets the current plugin
Specified by:
setPlugin in interface Manager

unsetPlugin

public void unsetPlugin(Plugin plugin)
This method unsets the current plugin
Specified by:
unsetPlugin in interface Manager

displayHelp

public void displayHelp(java.net.URL page)
TODO
Specified by:
displayHelp in interface Manager

getHelpSets

public javax.help.HelpSet[] getHelpSets()
This method returns the current helpsets
Specified by:
getHelpSets in interface Manager

getManagerLayout

public ManagerLayout getManagerLayout()
Get the manager layout responsible for placing component areas
Specified by:
getManagerLayout in interface Manager

setPluginManagerLayout

public void setPluginManagerLayout(ManagerLayout layout)
Set the manager layout responsible for placing component areas

displaySimpleDialog

public void displaySimpleDialog(java.lang.String title,
                                java.lang.String message,
                                int type)
This method displays a dialog according to a title, a message and a type
Specified by:
displaySimpleDialog in interface Manager

printMessage

public void printMessage(java.lang.String source,
                         java.lang.String trace,
                         int msgType)
This method prints a trace on the JVM console or in the Management Board traces file
Specified by:
printMessage in interface Manager

printTrace

public void printTrace(java.lang.String source,
                       java.lang.String trace,
                       int traceLevel)
This method prints a trace on the JVM console
Specified by:
printTrace in interface Manager

getComponentFactory

public ComponentFactory getComponentFactory()
This method is invoked by a plugin to get the Component Factory
Specified by:
getComponentFactory in interface Manager

exposeResourceFactory

public void exposeResourceFactory(ResourceFactory factory)
This method is invoked by a plugin to expose its Resource Factory
Specified by:
exposeResourceFactory in interface Manager

getClipboard

public java.awt.datatransfer.Clipboard getClipboard()
Get the clipboard
Specified by:
getClipboard in interface Manager

main

public static void main(java.lang.String[] args)
OpenORB Management Board entry point

getLogger

public org.apache.avalon.framework.logger.Logger getLogger()
Return the process' logger instance.
Returns:
Framework logger to use for all logging