001package apps.plaf.macosx;
002
003import java.util.EventObject;
004
005/**
006 * A QuitHandler responds to externally initiated attempts to quit JMRI apps on
007 * Mac OS X.
008 *
009 * @author Randall Wood (c) 2011
010 */
011public interface QuitHandler {
012
013    /**
014     * Handle the quit request using whatever means are most appropriate. This
015     * method returns a boolean state indicating that the application should
016     * quit (true) or that some condition (like the user cancels the quit when
017     * prompted in a dialog) requires that the application not quit (false).
018     *
019     * @param eo The quit event object.
020     * @return allow quit to continue.
021     */
022    boolean handleQuitRequest(EventObject eo);
023
024}