QuickServer
v1.4.7

org.quickserver.net.qsadmin.gui
Interface PluginPanel


public interface PluginPanel

PluginPanel is a template class for plug-ins written for QuickServer Admin GUI - QSAdminGUI.

The plug-in class implementing this interface must also extend javax.swing.JPanel class. The plug-in class must be made into a jar and plugin.xml needs to be written that describing the plug-in to QSAdminGUI. A sample xml is below
 
 <qsadmin-plugin>
   <name>Stats</name>
   <desc>Server Status Panel</desc>
   <type>javax.swing.JPanel</type>
   <main-class>org.quickserver.net.qsadmin.plugin.stats.StatsPanel</main-class>
   <active>yes</active>
 </qsadmin-plugin>

 
Now both the jar and the plugin.xml file needs to be places in a directory by the name of the plug-in and placed in the plugin folder of QuickServer installation.

Author:
Akshathkumar Shetty
See Also:
QSAdminPluginConfig

Method Summary
 void activated()
          This method is called when the tab where plugin is loaded is activated
 void deactivated()
          This method is called when the tab where plugin is loaded is deactivated
 void init()
          This method is called before it is added to QSAdminGUI.
 boolean isActivated()
          This method indicate if the plugin is in active or non-active state
 void setQSAdminMain(QSAdminMain qsAdminMain)
          This method is the first method called after plugin is instanced.
 void updateConnectionStatus(boolean connected)
          This method is called when connection status changes in QSAdminGUI.
 

Method Detail

setQSAdminMain

public void setQSAdminMain(QSAdminMain qsAdminMain)
This method is the first method called after plugin is instanced.


init

public void init()
This method is called before it is added to QSAdminGUI.


updateConnectionStatus

public void updateConnectionStatus(boolean connected)
This method is called when connection status changes in QSAdminGUI.


activated

public void activated()
This method is called when the tab where plugin is loaded is activated


deactivated

public void deactivated()
This method is called when the tab where plugin is loaded is deactivated


isActivated

public boolean isActivated()
This method indicate if the plugin is in active or non-active state


QuickServer
v1.4.7

Copyright © 2003-2006 QuickServer.org