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

Quick Search    Search Deep

org.jext
Interface Plugin  view Plugin download Plugin.java


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(org.jext.options.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.


createOptionPanes

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


start

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


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>JextEvent.KILLING_JEXT 55 event. See its docs for a discussion of differencies.