|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Plugin
Plugins extend the functionality of the main program. Plugins are allowed
to hook into XNap wherever they want.
Each plugin will only be instantiated once. First start()
is
called. If the gui is enabled then startGUI()
will be called
next. The plugin has to setup all gui parts by itself. When the plugin is
disabled or XNap is shutdown stopGUI()
is called (if
startGUI()
was called) and stop()
afterwards.
Method Summary | |
---|---|
PluginInfo |
getInfo()
Returns information about this plugin. |
void |
setInfo(PluginInfo info)
Sets the information record for this plugin. |
void |
start()
Called each time the plugin is enabled. |
void |
startGUI()
Called each time the gui part of the plugin is enabled. |
void |
stop()
Called each time the plugin is disabled. |
void |
stopGUI()
Called each time the gui part of the plugin is disabled. |
Method Detail |
---|
PluginInfo getInfo()
void setInfo(PluginInfo info)
PluginManager
.
info
- the info recordvoid start() throws java.lang.Exception
java.lang.Exception
void startGUI()
void stop()
void stopGUI()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |