org.xnap.gui.plugin
Class PluginHelper

java.lang.Object
  extended by org.xnap.gui.plugin.PluginHelper

public class PluginHelper
extends java.lang.Object


Constructor Summary
PluginHelper()
           
 
Method Summary
static boolean disablePlugin(java.awt.Component parent, PluginInfo info)
           
static boolean enablePlugin(java.awt.Component parent, PluginInfo info)
           
static boolean load(java.awt.Component c, PluginInfo info)
          Loads info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginHelper

public PluginHelper()
Method Detail

disablePlugin

public static boolean disablePlugin(java.awt.Component parent,
                                    PluginInfo info)

enablePlugin

public static boolean enablePlugin(java.awt.Component parent,
                                   PluginInfo info)

load

public static boolean load(java.awt.Component c,
                           PluginInfo info)
Loads info. Displays a message box, if load fails.

Parameters:
c - the parent component for the error dialog
info - the info to load
Returns:
true, if successful; false, if plugin class could not be loaded
See Also:
PluginManager


Copyright © 2001-2005 XNap Team. All Rights Reserved.