org.zkoss.zkdemo.test2
Class DetachDesktopCleanup

java.lang.Object
  extended by org.zkoss.zkdemo.test2.DetachDesktopCleanup
All Implemented Interfaces:
DesktopCleanup

public class DetachDesktopCleanup
extends java.lang.Object
implements DesktopCleanup

Detaches when desktop is cleaned up. Used with B30-1753712.zul.


<listener>
  <listener-class>org.zkoss.zkdemo.test2.DetachDesktopCleanup</listener-class>
</listener>

Author:
tomyeh

Field Summary
static Component reuse
           
 
Constructor Summary
DetachDesktopCleanup()
           
 
Method Summary
 void cleanup(Desktop desktop)
          called when a desktop is about to be destroyed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reuse

public static Component reuse
Constructor Detail

DetachDesktopCleanup

public DetachDesktopCleanup()
Method Detail

cleanup

public void cleanup(Desktop desktop)
             throws java.lang.Exception
Description copied from interface: DesktopCleanup
called when a desktop is about to be destroyed.

If this method throws an exception, the error message is only logged (user won't see it).

Specified by:
cleanup in interface DesktopCleanup
Throws:
java.lang.Exception


Copyright &copy; 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo