|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PlugIn
With this class other developers have the possibility to write PlugIns for
the 'SchemaProf' application. Before calling any of the functions of a
PlugIn, setFrame(MainFrame) and setClassLoader(ClassLoader)
have to be called first.
| Method Summary | |
|---|---|
ClassLoader |
getClassLoader()
Returns the ClassLoadercorrespondent to this jar file. |
MainFrame |
getFrame()
Returns the MainFrame which loaded this PlugIn. |
JMenu |
getMenu()
Returns a JMenu already filled with the PlugIn
Action's in a User defined Layout. |
List |
getMenuActions()
Returns a List of PlugIn Action's which will
be shown in the Menu of a MainFrame. |
String |
getName()
Returns the PlugIn Name for Identification of the PlugIn in the Menu. |
Set |
getSupportedLocales()
Returns a set of Locale-instances which are supported by this
plugin. |
void |
setClassLoader(ClassLoader loader)
Sets the ClassLoader correspondent to the jar file of this PlugIn for loading Resources. |
void |
setFrame(MainFrame frame)
Sets the MainFrame which loads this PlugIn. |
void |
updateActionStates()
Updates the States of all Actions dependend on the current State of the Application's MainFrame, which was previously set with
setFrame(MainFrame). |
void |
updateBundleDirectory(File bundleDirectory)
Sets a directory in the local file systems which should be scanned for resource files. |
void |
updateLocale(Locale locale)
Updates the Text of all Visual Components correspondent to the given Locale. |
void |
updateUI()
Updates the current Look&Feel of all Visual Components. |
| Method Detail |
|---|
String getName()
List getMenuActions()
List of PlugIn Action's which will
be shown in the Menu of a MainFrame. The MainFrame has to be first
set with setFrame(MainFrame).
Listof PlugIn Menu Action's.setFrame(MainFrame)JMenu getMenu()
JMenu already filled with the PlugIn
Action's in a User defined Layout. The menu will be
displayed in the MainFrame, which was previously set with
setFrame(MainFrame).
JMenuof the PlugIn Action's.setFrame(MainFrame)void updateActionStates()
MainFrame, which was previously set with
setFrame(MainFrame).
setFrame(MainFrame)void updateLocale(Locale locale)
Locale.
locale - The new Localeof the parent Frame.Set getSupportedLocales()
Locale-instances which are supported by this
plugin.
Locale-instances.void updateBundleDirectory(File bundleDirectory)
bundleDirectory - void updateUI()
SwingUtilities.updateComponentTreeUI(java.awt.Component)
for all Components if any.
void setClassLoader(ClassLoader loader)
loader - The ClassLoaderof the jar file.
void setFrame(MainFrame frame)
throws IllegalArgumentException
MainFrame which loads this PlugIn. This method should be
called before all other methods of this interface. If the MainFrame is
already set, calling this method will lead to an
IllegalArgumentException.
frame - The MainFrame which loads this PlugIn.
IllegalArgumentException - if the MainFrame of this PlugIn was already set.MainFrame getFrame()
MainFrame which loaded this PlugIn.
MainFrame which loaded this PlugIn.ClassLoader getClassLoader()
ClassLoadercorrespondent to this jar file. Please use
the ClassLoader Instance given by setClassLoader(ClassLoader).
ClassLoadercorrespondent to this jar file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||