The Meta-Environment API

nl.cwi.sen1.gui.plugin
Class DefaultStudioPlugin

java.lang.Object
  extended by nl.cwi.sen1.gui.plugin.DefaultStudioPlugin
All Implemented Interfaces:
StudioPlugin

public abstract class DefaultStudioPlugin
extends java.lang.Object
implements StudioPlugin

A default implementation of a StudioPlugin for your convenience. This class simply provides the implementation of the Observer design pattern already. The other methods of StudioPlugin need still to be implemented.


Field Summary
private  javax.swing.event.EventListenerList listenerList
           
 
Constructor Summary
DefaultStudioPlugin()
           
 
Method Summary
 void addStudioPluginListener(StudioPluginListener l)
          Register a listener.
protected  void fireStudioPluginClosed()
           
 void removeStudioPluginListener(StudioPluginListener l)
          Unregister a listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.cwi.sen1.gui.plugin.StudioPlugin
getName, initStudioPlugin
 

Field Detail

listenerList

private javax.swing.event.EventListenerList listenerList
Constructor Detail

DefaultStudioPlugin

public DefaultStudioPlugin()
Method Detail

addStudioPluginListener

public void addStudioPluginListener(StudioPluginListener l)
Description copied from interface: StudioPlugin
Register a listener. The Studio listens to important events from all plugins. The functionality of the whole Studio may break if the observer pattern is not implemented correctly here.

Specified by:
addStudioPluginListener in interface StudioPlugin
Parameters:
l - An implementation of a listener (usually the studio itself).
See Also:
provides a default implementation.

removeStudioPluginListener

public void removeStudioPluginListener(StudioPluginListener l)
Description copied from interface: StudioPlugin
Unregister a listener.

Specified by:
removeStudioPluginListener in interface StudioPlugin
Parameters:
l - Listener to be unregistered.

fireStudioPluginClosed

protected void fireStudioPluginClosed()

The Meta-Environment API