org.openorb.board

Class Board

public class Board extends Object implements Manager

OpenORB Management Board / Swing Graphic User Interface

Author: Olivier Modica Shawn Boyce

Field Summary
static StringOPT_PLUGINS
static StringOPT_PLUGINS_ARG
static StringOPT_PLUGINS_DESCRIP
static StringOPT_PLUGINS_LONG
Constructor Summary
Board(String[] args, Properties props)
Constructor
Method Summary
voidclearScenario(Plugin plugin, String scenarioName)
This method deletes a scenario
voiddisplayHelp(URL page)
TODO
voiddisplaySimpleDialog(String title, String message, int type)
This method displays a dialog according to a title, a message and a type
voiddoDelayedUIWork(Plugin plugin, String methodName)
This methods delays a UI plugin class method to avoid blocking the event thread
voiddoDelayedUIWork(Plugin plugin, String methodName, Object[] args)
This methods delays a UI plugin class method with args to avoid blocking the event thread
voiddoDelayedUIWorks(Plugin plugin, String[] methodNames)
This methods delays UI plugin class methods to avoid blocking the event thread
voiddoDelayedUIWorks(Plugin plugin, String[] methodNames, Object[][] args)
This methods delays UI plugin class methods with args to avoid blocking the event thread
voiddoThreadedWork(Plugin plugin, String methodName, String notifyMethodName)
This methods threads a plugin class method and invoke a plugin class notify method when the thread returns
voiddoThreadedWork(Plugin plugin, String methodName, Object[] methodArgs, String notifyMethodName, Object[] notifyMethodArgs)
This methods threads a plugin class method with args and invoke a plugin class notify method with args when the thread returns
voiddoThreadedWorks(Plugin plugin, String[] methodNames, String notifyMethodName)
This methods threads plugin class methods and invoke a plugin class notify method when the thread returns
voiddoThreadedWorks(Plugin plugin, String[] methodNames, Object[][] methodArgs, String notifyMethodName, Object[] notifyMethodArgs)
This methods threads plugin class methods with args method and invoke a plugin class notify method with args when the thread returns
voidexposeResourceFactory(ResourceFactory factory)
This method is invoked by a plugin to expose its Resource Factory
ClipboardgetClipboard()
Get the clipboard
ComponentFactorygetComponentFactory()
This method is invoked by a plugin to get the Component Factory
HelpSet[]getHelpSets()
This method returns the current helpsets
LoggergetLogger()
Return the process' logger instance.
ManagerLayoutgetManagerLayout()
Get the manager layout responsible for placing component areas
PluginScenariogetScenario(Plugin plugin, String scenarioName)
This method returns a previously stored scenario
String[]getScenarioNames(Plugin plugin)
This methods returns the scenario names
voidinstallPlugin(Plugin plugin)
This method adds a plugin
static voidmain(String[] args)
OpenORB Management Board entry point
voidprintMessage(String source, String trace, int msgType)
This method prints a trace on the JVM console or in the Management Board traces file
voidprintTrace(String source, String trace, int traceLevel)
This method prints a trace on the JVM console
voidsetPlugin(Plugin plugin)
This method sets the current plugin
voidsetPluginManagerLayout(ManagerLayout layout)
Set the manager layout responsible for placing component areas
voidsetStatusBarText(String text, int msgType)
This method sets the status bar text
voidstartScenario(Plugin plugin, String scenarioName)
This method starts a new scenario
voidstopScenario(Plugin plugin, String scenarioName)
This method stops a scenario
voidstoreAction(Plugin plugin, String scenarioName)
This method stores an action into the scenario
voidtoFront(Plugin plugin)
This methods puts the plugin to front
voiduninstallPlugin(Plugin plugin)
This method unregisters a plugin
voidunsetPlugin(Plugin plugin)
This method unsets the current plugin

Field Detail

OPT_PLUGINS

public static final String OPT_PLUGINS

OPT_PLUGINS_ARG

public static final String OPT_PLUGINS_ARG

OPT_PLUGINS_DESCRIP

public static final String OPT_PLUGINS_DESCRIP

OPT_PLUGINS_LONG

public static final String OPT_PLUGINS_LONG

Constructor Detail

Board

public Board(String[] args, Properties props)
Constructor

Method Detail

clearScenario

public void clearScenario(Plugin plugin, String scenarioName)
This method deletes a scenario

displayHelp

public void displayHelp(URL page)
TODO

displaySimpleDialog

public void displaySimpleDialog(String title, String message, int type)
This method displays a dialog according to a title, a message and a type

doDelayedUIWork

public void doDelayedUIWork(Plugin plugin, String methodName)
This methods delays a UI plugin class method to avoid blocking the event thread

doDelayedUIWork

public void doDelayedUIWork(Plugin plugin, String methodName, Object[] args)
This methods delays a UI plugin class method with args to avoid blocking the event thread

doDelayedUIWorks

public void doDelayedUIWorks(Plugin plugin, String[] methodNames)
This methods delays UI plugin class methods to avoid blocking the event thread

doDelayedUIWorks

public void doDelayedUIWorks(Plugin plugin, String[] methodNames, Object[][] args)
This methods delays UI plugin class methods with args to avoid blocking the event thread

doThreadedWork

public void doThreadedWork(Plugin plugin, String methodName, String notifyMethodName)
This methods threads a plugin class method and invoke a plugin class notify method when the thread returns

doThreadedWork

public void doThreadedWork(Plugin plugin, String methodName, Object[] methodArgs, String notifyMethodName, Object[] notifyMethodArgs)
This methods threads a plugin class method with args and invoke a plugin class notify method with args when the thread returns

doThreadedWorks

public void doThreadedWorks(Plugin plugin, String[] methodNames, String notifyMethodName)
This methods threads plugin class methods and invoke a plugin class notify method when the thread returns

doThreadedWorks

public void doThreadedWorks(Plugin plugin, String[] methodNames, Object[][] methodArgs, String notifyMethodName, Object[] notifyMethodArgs)
This methods threads plugin class methods with args method and invoke a plugin class notify method with args when the thread returns

exposeResourceFactory

public void exposeResourceFactory(ResourceFactory factory)
This method is invoked by a plugin to expose its Resource Factory

getClipboard

public Clipboard getClipboard()
Get the clipboard

getComponentFactory

public ComponentFactory getComponentFactory()
This method is invoked by a plugin to get the Component Factory

getHelpSets

public HelpSet[] getHelpSets()
This method returns the current helpsets

getLogger

public Logger getLogger()
Return the process' logger instance.

Returns: Framework logger to use for all logging

getManagerLayout

public ManagerLayout getManagerLayout()
Get the manager layout responsible for placing component areas

getScenario

public PluginScenario getScenario(Plugin plugin, String scenarioName)
This method returns a previously stored scenario

getScenarioNames

public String[] getScenarioNames(Plugin plugin)
This methods returns the scenario names

installPlugin

public void installPlugin(Plugin plugin)
This method adds a plugin

main

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

printMessage

public void printMessage(String source, String trace, int msgType)
This method prints a trace on the JVM console or in the Management Board traces file

printTrace

public void printTrace(String source, String trace, int traceLevel)
This method prints a trace on the JVM console

setPlugin

public void setPlugin(Plugin plugin)
This method sets the current plugin

setPluginManagerLayout

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

setStatusBarText

public void setStatusBarText(String text, int msgType)
This method sets the status bar text

startScenario

public void startScenario(Plugin plugin, String scenarioName)
This method starts a new scenario

stopScenario

public void stopScenario(Plugin plugin, String scenarioName)
This method stops a scenario

storeAction

public void storeAction(Plugin plugin, String scenarioName)
This method stores an action into the scenario

toFront

public void toFront(Plugin plugin)
This methods puts the plugin to front

uninstallPlugin

public void uninstallPlugin(Plugin plugin)
This method unregisters a plugin

unsetPlugin

public void unsetPlugin(Plugin plugin)
This method unsets the current plugin