This event provides components a chance to save their state before the session is terminated. It applies only for Desktop mode, since we can't stop web browser windows from closing. To use, subscribe to this event on the global event bus, and when it fires call acquire() to get a token. The process will not quit until all acquired tokens are released by calling release(). IMPORTANT NOTE: You MUST call release on the token eventually--this mechanism is not intended to provide quit cancellation functionality, but only to momentarily delay quitting while state is saved!
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.