This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
JRummikub/src/jrummikub/view/IQuitWarningPanel.java
Ida Massow 74d8205f30 Kommentare, Kommentare
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@509 72836036-5685-4462-b002-a69064685172
2011-06-20 04:39:54 +02:00

51 lines
No EOL
870 B
Java

package jrummikub.view;
import jrummikub.util.IEvent;
/**
* Warning panel shown to if the emitted event would cancel the current game
*/
public interface IQuitWarningPanel {
/**
* Enum summarizing the different events invoking the quit warning panel
*/
public enum QuitMode {
/** */
DEFAULT,
/** */
QUIT_PROCESS,
/** */
QUIT_GAME
}
/**
* Is emitted if the user is positive about quitting
*
* @return the event
*/
public IEvent getQuitEvent();
/**
* Is emitted if the user selected quit by mistake
*
* @return the event
*/
public IEvent getCancelEvent();
/**
* Sets the panel according to the event which invoked it
*
* @param mode
* the invoking event type
*/
public void setMode(QuitMode mode);
/**
* Getter for quit mode
*
* @return the quit mode
*/
public QuitMode getQuitMode();
}