nl.cwi.sen1.gui.plugin
Class DefaultStudioPlugin
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listenerList
private javax.swing.event.EventListenerList listenerList
DefaultStudioPlugin
public DefaultStudioPlugin()
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()