org.jext
Interface Plugin


public interface Plugin

An interface which defines the basical behavior of a Jext plugin. A plugin MUST implement this.


Method Summary
 void createMenuItems(JextFrame parent, java.util.Vector pluginsMenus, java.util.Vector pluginsMenuItems)
          Called by parent (instance of Jext) to requires menu items specific to the plugin.
 void createOptionPanes(OptionsDialog parent)
          Called by Jext when user request plugins options.
 void start()
          Called by Jext on startup to start plugin.
 void stop()
          Called by Jext on close to stop plugin activities.
 

Method Detail

createMenuItems

public void createMenuItems(JextFrame parent,
                            java.util.Vector pluginsMenus,
                            java.util.Vector pluginsMenuItems)
                     throws java.lang.Throwable
Called by parent (instance of Jext) to requires menu items specific to the plugin. Menu items have to be added into the Vector pluginsMenuItems and submenus have to be added into the Vector pluginsMenu.

Throws:
java.lang.Throwable

createOptionPanes

public void createOptionPanes(OptionsDialog parent)
                       throws java.lang.Throwable
Called by Jext when user request plugins options. Plugin has to add an AbstractOptionPane to the AbstractOptionsDialog parent.

Throws:
java.lang.Throwable

start

public void start()
           throws java.lang.Throwable
Called by Jext on startup to start plugin.

Throws:
java.lang.Throwable

stop

public void stop()
          throws java.lang.Throwable
Called by Jext on close to stop plugin activities. This is called, in the background mode, only when the JVM exits completely, differently from the JextEvent.KILLING_JEXT event. See its docs for a discussion of differencies.

Throws:
java.lang.Throwable


Copyright © 2002 Romain Guy.