Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

MAEPlugin.popup
Class PluginUnLoader  view PluginUnLoader download PluginUnLoader.java

java.lang.Object
  extended byMAEPlugin.MAEPlugin
      extended byMAEPlugin.MenuPlugin
          extended byMAEPlugin.popup.PopupPlugin
              extended byMAEPlugin.popup.PluginUnLoader
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, MAEPlugin.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 $

Nested Class Summary
(package private)  class PluginUnLoader.UnloaderDialog
          Class UnloaderDialog is used to select loaded plugins to unload
 
Field Summary
(package private)  MAEPlugin.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.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, registryMaxSize
 
Fields inherited from interface MAEPlugin.PluginStub
PLUGIN_VERSION
 
Constructor Summary
PluginUnLoader(MAEPlugin.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.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, 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.MAEPlugin pluginObject
Reference to the Object itself


maestub

MAEPlugin.MAEStub maestub
Reference to MAE Stub


pHashtable

java.util.Hashtable pHashtable
Hashtable used to remove plugs

Constructor Detail

PluginUnLoader

public PluginUnLoader(MAEPlugin.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.


lookUp

private final MAEPlugin.MAEPlugin lookUp(java.lang.String name)
lookUp() - finds plugin in the loaded list from MAExplorer


pluginMain

public void pluginMain()
pluginMain() - Is the method end-users implement to use the API.


getPluginDescription

public java.lang.String getPluginDescription()
getPluginDescription() - This returns a human readable description of the Plugin


updateCurGene

public void updateCurGene(int mid)
updateCurGene() - update any data since current gene has changed. This is invoked from the PopupRegistry

Specified by:
updateCurGene in class PopupPlugin

updateFilter

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

Specified by:
updateFilter in class PopupPlugin

updateSlider

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

Specified by:
updateSlider in class PopupPlugin

updateLabels

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

Specified by:
updateLabels in class PopupPlugin

close

public void close(boolean preserveDataStructuresFlag)
close() - close the plugin