|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MAEPlugin.MAEPlugin
This abstract class defines the base MAEPlugin base class. Created on September 5, 2001, 5:26 PM
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/.
MaeJavaAPI
,
MAEStub
Field Summary | |
static boolean |
DBUG_MAEP
|
protected JarResources |
jarResources
access to the jar file for loading support files |
static int |
registryMaxSize
Set the initial and max size for the number of resgistry entries |
Fields inherited from interface MAEPlugin.PluginStub |
PLUGIN_VERSION |
Constructor Summary | |
MAEPlugin()
MAEPlugin() - This private constructor prevents non-labeled and registered plugins |
|
MAEPlugin(java.lang.String menuLabel)
MAEPlugin() - Constructor registers the plugin and sets up menu item. |
|
MAEPlugin(java.lang.String menuLabel,
java.lang.String pluginFileName)
MAEPlugin() - Constructor registers the plugin and sets up menu item. |
Method Summary | |
boolean |
getFlag()
getFlag() - get the menu status (CheckBox) menuFlag |
MAEPlugin |
getInstance()
getInstance() - returns Registry instance of this class or new if not loaded |
MAEStub |
getMAEStub()
getMAEStub() - get the menu stub for this instance of plugin |
java.awt.MenuItem |
getMenuHook()
getMenuHook() - get menu Item hook to put our instance of plugin |
java.lang.String |
getMenuInsertionPointName()
getMenuInsertionPointName() - get the name of menu insertion point If it is not defined, then it returns null that indicates the Plugins menu. |
java.awt.MenuItem |
getMenuItem()
getMenuItem() - get menu item for this instance of the plugin |
static int |
getNumberPlugins()
getNumberPlugins() - get the number of plugins (loaded). |
java.lang.String |
getPluginDescription()
getPluginDescription() - returns a human readable description of the Plugin if any is defined by the plugin writer. |
java.lang.String |
getPluginFileName()
getPluginFileName() - returns the plugin file name without the ".jar" |
java.lang.String |
getPluginName()
getPluginName() - This is the human readable name for use in menu labels |
static java.util.Enumeration |
getPlugins()
getPlugins() - gets Registry list of MAEPlugins |
void |
menuActivated()
menuActivated() - this method calls the pluginMain() method in GUI contexts. |
void |
pluginHalt()
pluginHalt() - Plugin halt method. |
void |
pluginInit()
pluginInit() - Plugin init method. |
abstract void |
pluginMain()
pluginMain() - abstract method end-users must implement to use the API. |
protected static boolean |
removePlugin(MAEPlugin o)
removePlugin () - unloads plugin and removes it from the MAexplorer menu. |
void |
setFlag(boolean b)
setFlag() - set the menu status (CheckBox) menuFlag |
void |
setJarResources(JarResources obj)
setJarResources() - sets the JarResources object to get to the contents of the Jar object. |
void |
setMAEStub(MAEStub obj)
setMAEStub() - get the menu stub for this instance of plugin |
void |
setMenuHook(java.awt.MenuItem mi)
setMenuHook() - set menu Item hook to put our instance of plugin |
void |
setMenuInsertionPointName(java.lang.String menuInsertionPointName)
setMenuInsertionPointName() - set the name of menu insertion point. |
void |
setMenuItem(java.awt.MenuItem menuItem)
setMenuItem() - get menu item for this instance of the plugin |
protected void |
setMenuLabel(java.lang.String s)
setMenuLabel() - changes the label on the mennItem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean DBUG_MAEP
public static final int registryMaxSize
protected JarResources jarResources
Constructor Detail |
public MAEPlugin()
public MAEPlugin(java.lang.String menuLabel)
menuLabel
- name of the plugin that will be used as MAExplorer menu item.public MAEPlugin(java.lang.String menuLabel, java.lang.String pluginFileName)
menuLabel
- name of the plugin that will be used as MAExplorer menu item.pluginFileName
- name of the plugin without the ".jar"Method Detail |
public final MAEPlugin getInstance() throws PluginException, java.lang.InstantiationException, java.lang.IllegalAccessException
PluginException,
- java.lang.InstantiationException
- java.lang.IllegalAccessException
- protected static final boolean removePlugin(MAEPlugin o)
o
- plugin object to be removedpluginHalt()
public static final int getNumberPlugins()
public static final java.util.Enumeration getPlugins()
public final MAEStub getMAEStub()
public final void setMAEStub(MAEStub obj)
obj
- MAEstub to be registered for this MAEPluginpublic final java.awt.MenuItem getMenuItem()
public final void setMenuItem(java.awt.MenuItem menuItem)
menuItem
- to be assigned for this MAEPluginpublic final java.awt.MenuItem getMenuHook()
public final void setMenuHook(java.awt.MenuItem mi)
mi
- is the menu item hook to be assigned for this MAEPluginpublic final void setFlag(boolean b)
b
- is the status to be assignedpublic final boolean getFlag()
public final void menuActivated()
menuActivated
in interface PluginStub
public void pluginInit()
pluginInit
in interface PluginStub
public abstract void pluginMain()
pluginMain
in interface PluginStub
public void pluginHalt()
pluginHalt
in interface PluginStub
public java.lang.String getMenuInsertionPointName()
public void setMenuInsertionPointName(java.lang.String menuInsertionPointName)
menuInsertionPointName
- public java.lang.String getPluginName()
getPluginName
in interface PluginStub
public java.lang.String getPluginFileName()
getPluginFileName
in interface PluginStub
public java.lang.String getPluginDescription()
getPluginDescription
in interface PluginStub
protected final void setMenuLabel(java.lang.String s)
s
- is the new menu item labelpublic final void setJarResources(JarResources obj)
obj
- is the jarResources to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |