Kafenio.editor 0.8.5

de.xeinfach.kafenio
Class KafenioAppletObserver

java.lang.Object
  extended byde.xeinfach.kafenio.KafenioAppletObserver

public final class KafenioAppletObserver
extends java.lang.Object

Description: An Observer to enable the content saving of all running kafenio-applets in a browser. This class is implemented as singleton.

Author:
Karsten Pawlik

Method Summary
static KafenioAppletObserver getInstance()
           
 void registerNewApplet(KafenioApplet applet)
          adds an applet to be notified to the list.
 void saveAllAppletContents()
          calls the saveContents() method of each registered KafenioApplet
 void unregisterApplet(KafenioApplet applet)
          removes an applet from the notification list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static KafenioAppletObserver getInstance()
Returns:
returns a reference to the singleton KafenioAppletObserver instance.

registerNewApplet

public void registerNewApplet(KafenioApplet applet)
adds an applet to be notified to the list.

Parameters:
applet - applet to add to the observer

unregisterApplet

public void unregisterApplet(KafenioApplet applet)
removes an applet from the notification list

Parameters:
applet - applet to remove from the observer

saveAllAppletContents

public void saveAllAppletContents()
calls the saveContents() method of each registered KafenioApplet


Kafenio.editor 0.8.5

Copyright © 2003-2004 by Karsten Pawlik. All Rights Reserved. Published under the Lesser General Public License (LGPL)