org.freehep.application.studio
Class Plugin

java.lang.Object
  extended by org.freehep.application.studio.Plugin
Direct Known Subclasses:
PluginManager

public abstract class Plugin
extends Object

A base class which Plugins must extend


Constructor Summary
Plugin()
           
 
Method Summary
protected  void addMenu(JMenuItem item, long location)
           
protected  void applicationVisible()
          Called after all plugins have been loaded, and the GUI has become visible
 boolean canBeShutDown()
          Test if the plugin can be shutdown.
 Studio getApplication()
           
protected  void init()
          Called to initialize the plugin.
protected  void postInit()
          Called after all plugins have been loaded, but before the GUI has become visible
protected  void shutdown()
          Called to shutdown the plugin (if supported)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Plugin

public Plugin()
Method Detail

init

protected void init()
             throws Throwable
Called to initialize the plugin. Note that at this time other plugins may not have been loaded, and the GUI may not yet be visible.

Throws:
Throwable

postInit

protected void postInit()
Called after all plugins have been loaded, but before the GUI has become visible


applicationVisible

protected void applicationVisible()
Called after all plugins have been loaded, and the GUI has become visible


canBeShutDown

public boolean canBeShutDown()
Test if the plugin can be shutdown. The default implementation always returns false, override as necessary.


shutdown

protected void shutdown()
Called to shutdown the plugin (if supported)


getApplication

public Studio getApplication()

addMenu

protected void addMenu(JMenuItem item,
                       long location)


Copyright © 2000-2006 FreeHEP. All Rights Reserved.