org.browsecode.helpers.menus
Interface QuitListener

All Known Implementing Classes:
TextComponentDemo

public interface QuitListener


Method Summary
 void quitDone()
          Called after all QuitListener.startQuit() have been called.
 boolean startQuit()
          Notification that the user has requested a quit.
 

Method Detail

startQuit

boolean startQuit()
Notification that the user has requested a quit. Prompt for saving if you want to save. Return true if the program is ready to quit. Return false if the quit should stop (e.g. the user clicked cancel) Do all application cleanup here.

Returns:

quitDone

void quitDone()
Called after all QuitListener.startQuit() have been called. This might never be reached for some applications, if one of them calls System.exit(), so do not put any cleanup code here! This is called so that you can put System.exit() here if you want it.