MAEPlugin.popup
Class PluginUnLoader

java.lang.Object
  |
  +--MAEPlugin.MAEPlugin
        |
        +--MAEPlugin.MenuPlugin
              |
              +--MAEPlugin.popup.PopupPlugin
                    |
                    +--MAEPlugin.popup.PluginUnLoader
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, PluginStub

public final class PluginUnLoader
extends PopupPlugin

This class contains the dynamic MAEplugin unloader for .jar files

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/.

Version:
$Date: 2002/10/13 17:39:34 $ / $Revision: 1.3 $
Author:
Jai Evans (DECA/CIT), C. Santos (DECA/CIT), P. Lemkin (NCI-FCRDC)
See Also:
MAExplorer Home

Inner Class Summary
(package private)  class PluginUnLoader.UnloaderDialog
          Class UnloaderDialog is used to select loaded plugins to unload
 
Field Summary
(package private)  MAEStub maestub
          Reference to MAE Stub
(package private)  java.util.Hashtable pHashtable
          Hashtable used to remove plugs
(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)  PluginUnLoader.UnloaderDialog unloaderDialog
          Reference to the Dialog that will load files
 
Fields inherited from class MAEPlugin.MAEPlugin
DBUG_MAEP, jarResources, menuFlag, menuHook, menuInsertionPointName, menuItem, plugInFileName, plugInName, propertySupport, registry, registryMaxSize
 
Fields inherited from interface MAEPlugin.PluginStub
PLUGIN_VERSION
 
Constructor Summary
PluginUnLoader(MAEStub stub)
          PluginLoader() - Creates new LoadPlugins.
 
Method Summary
 void close(boolean preserveDataStructuresFlag)
          close() - close the plugin
 java.lang.String getPluginDescription()
          getPluginDescription() - This returns a human readable description of the Plugin
private  MAEPlugin lookUp(java.lang.String name)
          lookUp() - finds plugin in the loaded list from MAExplorer
 void pluginMain()
          pluginMain() - Is the method end-users implement to use the API.
private  boolean unMountPlugin(java.lang.String name)
          unMountPlugin() - unloads the plugin from the MAE application.
 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

unloaderDialog

PluginUnLoader.UnloaderDialog unloaderDialog
Reference to the Dialog that will load files

pluginClassName

java.lang.String pluginClassName
Reference to the plain name of the class to load

pluginObject

MAEPlugin pluginObject
Reference to the Object itself

maestub

MAEStub maestub
Reference to MAE Stub

pHashtable

java.util.Hashtable pHashtable
Hashtable used to remove plugs
Constructor Detail

PluginUnLoader

public PluginUnLoader(MAEStub stub)
PluginLoader() - Creates new LoadPlugins.
Method Detail

unMountPlugin

private final boolean unMountPlugin(java.lang.String name)
unMountPlugin() - unloads the plugin from the MAE application. These must be MAEplugins.
Parameters:
name - of plugin to unmount
Returns:
true if succeed

lookUp

private final MAEPlugin lookUp(java.lang.String name)
lookUp() - finds plugin in the loaded list from MAExplorer
Parameters:
name - of MAEPlugin to lookup.
Returns:
instance of MAEPlugin if succeed, else return null.

pluginMain

public void pluginMain()
pluginMain() - Is the method end-users implement to use the API.
Overrides:
pluginMain in class MenuPlugin

getPluginDescription

public java.lang.String getPluginDescription()
getPluginDescription() - This returns a human readable description of the Plugin
Overrides:
getPluginDescription in class MAEPlugin
Following copied from class: MAEPlugin.MAEPlugin
Returns:
the plugin description.

updateCurGene

public void updateCurGene(int mid)
updateCurGene() - update any data since current gene has changed. This is invoked from the PopupRegistry
Overrides:
updateCurGene in class PopupPlugin
Parameters:
ml - is the gene list to update now that filter has changed.

updateFilter

public void updateFilter()
updateFilter() - update any dependent data since Filter has changed. This is invoked from the PopupRegistry
Overrides:
updateFilter in class PopupPlugin

updateSlider

public void updateSlider()
updateSlider() - update any dependent data sincea threshold slider has changed. This is invoked from the PopupRegistry.
Overrides:
updateSlider in class PopupPlugin

updateLabels

public void updateLabels()
updateLabels() - update any dependent data since global labels have changed. This is invoked from the PopupRegistry.
Overrides:
updateLabels in class PopupPlugin

close

public void close(boolean preserveDataStructuresFlag)
close() - close the plugin
Parameters:
preserveDataStructuresFlag - to save data structures