|
jrworkspace by jTEM |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jtem.jrworkspace.plugin.Plugin
de.jtem.jrworkspace.plugin.pluginmanager.PluginManager
public class PluginManager
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 |
---|
public PluginManager()
Method Detail |
---|
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public Icon getMainIcon()
PreferencesFlavor
getMainIcon
in interface PreferencesFlavor
public String getMainName()
PreferencesFlavor
getMainName
in interface PreferencesFlavor
public JPanel getMainPage()
PreferencesFlavor
getMainPage
in interface PreferencesFlavor
JPanel
public int getNumSubPages()
PreferencesFlavor
getNumSubPages
in interface PreferencesFlavor
public PluginInfo getPluginInfo()
Plugin
PluginInfo
getPluginInfo
in class Plugin
PluginInfo}
public List<Plugin> getPlugins(JavaFileManager.Location location, ClassLoader loader) throws IOException
IOException
public JPanel getSubPage(int i)
PreferencesFlavor
getSubPage
in interface PreferencesFlavor
i
- the index of the sub-page
public Icon getSubPageIcon(int i)
PreferencesFlavor
getSubPageIcon
in interface PreferencesFlavor
i
- the index of the sub-page
public String getSubPageName(int i)
PreferencesFlavor
getSubPageName
in interface PreferencesFlavor
i
- the index of the sub-page
public void install(Controller c) throws Exception
Plugin
install
in class Plugin
c
- the applications Controller
Exception
Controller}
public static void main(String[] args)
public void mainUIChanged(String uiClass)
mainUIChanged
in interface UIFlavor
public void restoreStates(Controller c) throws Exception
Plugin
Controller.getProperty(Class, String, Object)
on the controller provided
as argument.
restoreStates
in class Plugin
c
- this applications Controller
Exception
Controller}
public void storeStates(Controller c) throws Exception
Plugin
Controller.storeProperty(Class, String, Object)
on the controller provided
as argument.
storeStates
in class Plugin
Exception
Controller}
|
jrworkspace by jTEM |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |