telcert.schemaprof.gui
Class AbstractPlugIn

java.lang.Object
  extended by telcert.schemaprof.gui.AbstractPlugIn
All Implemented Interfaces:
PlugIn

public abstract class AbstractPlugIn
extends Object
implements PlugIn

A Default Implementation of the PlugIn Interface.

Version:
1.0

Constructor Summary
AbstractPlugIn()
           
 
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.
 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 updateBundleDirectory(File bundleDirectory)
          Sets a directory in the local file systems which should be scanned for resource files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface telcert.schemaprof.gui.PlugIn
getMenuActions, getName, updateActionStates, updateLocale, updateUI
 

Constructor Detail

AbstractPlugIn

public AbstractPlugIn()
Method Detail

getClassLoader

public ClassLoader getClassLoader()
Description copied from interface: PlugIn
Returns the ClassLoadercorrespondent to this jar file. Please use the ClassLoader Instance given by PlugIn.setClassLoader(ClassLoader).

Specified by:
getClassLoader in interface PlugIn
Returns:
The ClassLoadercorrespondent to this jar file.

setClassLoader

public void setClassLoader(ClassLoader loader)
Description copied from interface: PlugIn
Sets the ClassLoader correspondent to the jar file of this PlugIn for loading Resources. The ClassLoader will be set before any other method is be called.

Specified by:
setClassLoader in interface PlugIn
Parameters:
loader - The ClassLoaderof the jar file.

getMenu

public JMenu getMenu()
Description copied from interface: PlugIn
Returns a 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 PlugIn.setFrame(MainFrame).

Specified by:
getMenu in interface PlugIn
Returns:
A JMenuof the PlugIn Action's.
See Also:
PlugIn.setFrame(MainFrame)

getFrame

public MainFrame getFrame()
Description copied from interface: PlugIn
Returns the MainFrame which loaded this PlugIn.

Specified by:
getFrame in interface PlugIn
Returns:
The MainFrame which loaded this PlugIn.

setFrame

public void setFrame(MainFrame frame)
Description copied from interface: PlugIn
Sets the 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.

Specified by:
setFrame in interface PlugIn
Parameters:
frame - The MainFrame which loads this PlugIn.

getSupportedLocales

public Set getSupportedLocales()
Description copied from interface: PlugIn
Returns a set of Locale-instances which are supported by this plugin.

Specified by:
getSupportedLocales in interface PlugIn
Returns:
Set of Locale-instances.

updateBundleDirectory

public void updateBundleDirectory(File bundleDirectory)
Description copied from interface: PlugIn
Sets a directory in the local file systems which should be scanned for resource files.

Specified by:
updateBundleDirectory in interface PlugIn


Copyright © 2004-2007 IWM - Institut fuer Wissensmedien. All Rights Reserved.