|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MAEPlugin.MAEPlugin | +--MAEPlugin.MenuPlugin | +--MAEPlugin.popup.PopupPlugin | +--MAEPlugin.popup.PluginLoader
This class contains the dynamic MAEplugin loader. It will load either .jar or .class files (the latter is useful for debugging since no jar packaging is required).
This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file. This notice must be included with the code. The MAExplorer Mozilla and Legal files are available on http://maexplorer.sourceforge.net/.
Field Summary | |
(package private) java.awt.FileDialog |
fileDialog
Reference to the Dialog that will load files |
(package private) static int |
MAX_PLUGINS
Maximum number of MAEPlugins that may be loaded at one time |
(package private) static int |
nPluginPathsList
Size of list of unique loaded plugins full path for ensuring uniqueness |
(package private) java.lang.String |
pluginClassName
Reference to the plain name of the class to load |
(package private) MAEPlugin |
pluginObject
Reference to the Object itself |
(package private) static java.lang.String[] |
pluginPathsList
List of unique loaded plugins full path for ensuring uniqueness |
Fields inherited from class MAEPlugin.MAEPlugin |
DBUG_MAEP, jarResources, maestub, menuFlag, menuHook, menuInsertionPointName, menuItem, plugInFileName, plugInName, propertySupport, registry, registryMaxSize |
Fields inherited from interface MAEPlugin.PluginStub |
PLUGIN_VERSION |
Constructor Summary | |
PluginLoader(MAEStub stub)
PluginLoader() - Creates new LoadPlugins. |
|
PluginLoader(MAEStub stub,
java.lang.String pluginJarPath)
PluginLoader() - Creates new LoadPlugin but do it siliently. |
Method Summary | |
(package private) static void |
|
boolean |
accept(java.io.File dir,
java.lang.String name)
accept() - implentation of FilenameFilter. |
java.lang.String |
getPluginDescription()
getPluginDescription() - This returns a human readable description of the Plugin |
private boolean |
loadPlugin(java.lang.String path)
loadPlugin() - tests and loads good MAPlugin from the path. |
private boolean |
loadPlugin(java.lang.String dir,
java.lang.String fileName)
loadPlugin() - tests and loads good MAEplugin. |
boolean |
loadPluginSilently(java.lang.String path)
loadPluginSilently() - silently tests and loads good MAPlugin from the path. |
private boolean |
mountPlugin()
mountPlugin() - loads the plugin into the MAE application. |
void |
pluginMain()
pluginMain() - Is the method end-users implement to use the API. |
void |
updateCurGene(int mid)
updateCurGene() - update any data since current gene has changed. |
void |
updateFilter()
updateFilter() - update any dependent data since Filter has changed. |
void |
updateLabels()
updateLabels() - update any dependent data since global labels have changed. |
void |
updateSlider()
updateSlider() - update any dependent data sincea threshold slider has changed. |
Methods inherited from class MAEPlugin.MenuPlugin |
actionPerformed |
Methods inherited from class MAEPlugin.MAEPlugin |
getFlag, getInstance, getMAEStub, getMenuHook, getMenuInsertionPointName, getMenuItem, getNumberPlugins, getPluginFileName, getPluginName, getPlugins, menuActivated, pluginHalt, pluginInit, removePlugin, setFlag, setJarResources, setMAEStub, setMenuHook, setMenuInsertionPointName, setMenuItem, setMenuLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
Field Detail |
static final int MAX_PLUGINS
static java.lang.String[] pluginPathsList
static int nPluginPathsList
java.awt.FileDialog fileDialog
java.lang.String pluginClassName
MAEPlugin pluginObject
Constructor Detail |
public PluginLoader(MAEStub stub) throws PluginException
stub
- is the plugin stubPluginException
- public PluginLoader(MAEStub stub, java.lang.String pluginJarPath) throws PluginException
stub
- is the plugin stubPluginException
- Method Detail |
static void()
private final boolean mountPlugin()
private final boolean loadPlugin(java.lang.String dir, java.lang.String fileName)
dir
- the path to the plugin filefileName
- the name of the plugin .jar or .class filepublic final boolean loadPluginSilently(java.lang.String path)
path
- to search for pluginprivate final boolean loadPlugin(java.lang.String path)
path
- to search for pluginpublic boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
dir
- is the diredtory to browsename
- is the file to test for extensionspublic void pluginMain()
pluginMain
in class MenuPlugin
public java.lang.String getPluginDescription()
getPluginDescription
in class MAEPlugin
public void updateCurGene(int mid)
updateCurGene
in class PopupPlugin
ml
- is the gene list to update now that filter has changed.public void updateFilter()
updateFilter
in class PopupPlugin
public void updateSlider()
updateSlider
in class PopupPlugin
public void updateLabels()
updateLabels
in class PopupPlugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |