jrworkspace by
jTEM

de.jtem.jrworkspace.plugin.pluginmanager
Class PluginManager

java.lang.Object
  extended by de.jtem.jrworkspace.plugin.Plugin
      extended by de.jtem.jrworkspace.plugin.pluginmanager.PluginManager
All Implemented Interfaces:
PreferencesFlavor, UIFlavor, ActionListener, EventListener

public class PluginManager
extends Plugin
implements PreferencesFlavor, ActionListener, UIFlavor


Constructor Summary
PluginManager()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 Icon getMainIcon()
          An icon for the main page
 String getMainName()
          Returns a name which will be the name of the main page
 JPanel getMainPage()
          The main preferences page
 int getNumSubPages()
          The number of sub-pages of this preference page
 PluginInfo getPluginInfo()
          Returns an instance of PluginInfo
 List<Plugin> getPlugins(JavaFileManager.Location location, ClassLoader loader)
           
 JPanel getSubPage(int i)
          The JPanel of the sub-page with index i
 Icon getSubPageIcon(int i)
          The icon of sub-page i
 String getSubPageName(int i)
          The name of sub-page number i
 void install(Controller c)
          Is called when the plug-in is installed
static void main(String[] args)
           
 void mainUIChanged(String uiClass)
           
 void restoreStates(Controller c)
          Is called before the installation of this plug-in.
 void storeStates(Controller c)
          Is called after this plug-in has been uninstalled.
 
Methods inherited from class de.jtem.jrworkspace.plugin.Plugin
equals, hashCode, toString, uninstall
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PluginManager

public PluginManager()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

getMainIcon

public Icon getMainIcon()
Description copied from interface: PreferencesFlavor
An icon for the main page

Specified by:
getMainIcon in interface PreferencesFlavor
Returns:
an icon

getMainName

public String getMainName()
Description copied from interface: PreferencesFlavor
Returns a name which will be the name of the main page

Specified by:
getMainName in interface PreferencesFlavor
Returns:
a name

getMainPage

public JPanel getMainPage()
Description copied from interface: PreferencesFlavor
The main preferences page

Specified by:
getMainPage in interface PreferencesFlavor
Returns:
a JPanel

getNumSubPages

public int getNumSubPages()
Description copied from interface: PreferencesFlavor
The number of sub-pages of this preference page

Specified by:
getNumSubPages in interface PreferencesFlavor
Returns:
a Integer number

getPluginInfo

public PluginInfo getPluginInfo()
Description copied from class: Plugin
Returns an instance of PluginInfo

Overrides:
getPluginInfo in class Plugin
Returns:
plug-in information
See Also:
PluginInfo}

getPlugins

public List<Plugin> getPlugins(JavaFileManager.Location location,
                               ClassLoader loader)
                        throws IOException
Throws:
IOException

getSubPage

public JPanel getSubPage(int i)
Description copied from interface: PreferencesFlavor
The JPanel of the sub-page with index i

Specified by:
getSubPage in interface PreferencesFlavor
Parameters:
i - the index of the sub-page
Returns:

getSubPageIcon

public Icon getSubPageIcon(int i)
Description copied from interface: PreferencesFlavor
The icon of sub-page i

Specified by:
getSubPageIcon in interface PreferencesFlavor
Parameters:
i - the index of the sub-page
Returns:

getSubPageName

public String getSubPageName(int i)
Description copied from interface: PreferencesFlavor
The name of sub-page number i

Specified by:
getSubPageName in interface PreferencesFlavor
Parameters:
i - the index of the sub-page
Returns:
a name

install

public void install(Controller c)
             throws Exception
Description copied from class: Plugin
Is called when the plug-in is installed

Overrides:
install in class Plugin
Parameters:
c - the applications Controller
Throws:
Exception
See Also:
Controller}

main

public static void main(String[] args)

mainUIChanged

public void mainUIChanged(String uiClass)
Specified by:
mainUIChanged in interface UIFlavor

restoreStates

public void restoreStates(Controller c)
                   throws Exception
Description copied from class: Plugin
Is called before the installation of this plug-in. The recommended way to read properties is to call Controller.getProperty(Class, String, Object) on the controller provided as argument.

Overrides:
restoreStates in class Plugin
Parameters:
c - this applications Controller
Throws:
Exception
See Also:
Controller}

storeStates

public void storeStates(Controller c)
                 throws Exception
Description copied from class: Plugin
Is called after this plug-in has been uninstalled. The recommended way to save properties is to call Controller.storeProperty(Class, String, Object) on the controller provided as argument.

Overrides:
storeStates in class Plugin
Throws:
Exception
See Also:
Controller}

jrworkspace by
jTEM

jTEM