ch.elca.dependency.util.gui
Class PersistentJFrame.JFrameConfig

java.lang.Object
  |
  +--ch.elca.dependency.util.NotifyOnExit
        |
        +--ch.elca.dependency.util.gui.PersistentJFrame.JFrameConfig
Enclosing class:
PersistentJFrame

public class PersistentJFrame.JFrameConfig
extends NotifyOnExit

Class JFrameConfig is used to overcome the shortage of single inheritance: we don't want explicitely to have to register each class which is interested in notification just before the termination. Each such class should do this automatically within its constructor and should have a method e.g. notifyOnExit() to be called before temination. In order to provide this functionality in a centralized manner a class NotifyOnExit is provided which does the registration. This JFrameConfig class extends the NotifyOnExit class and inherits thus functionality. Its instances will be notified before termination. This way the enclosing class is not forced to implement the registration functionality.


Constructor Summary
PersistentJFrame.JFrameConfig()
           
 
Method Summary
 void notifyOnExit()
          Notify the instance of this class that the Dependecy Tool is about to terminate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentJFrame.JFrameConfig

public PersistentJFrame.JFrameConfig()
Method Detail

notifyOnExit

public void notifyOnExit()
Notify the instance of this class that the Dependecy Tool is about to terminate. The JFrameConfig will store its configuration persistently.

Specified by:
notifyOnExit in class NotifyOnExit


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.