diff options
Diffstat (limited to 'mock')
-rw-r--r-- | mock/jrummikub/view/MockQuitWarningPanel.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mock/jrummikub/view/MockQuitWarningPanel.java b/mock/jrummikub/view/MockQuitWarningPanel.java new file mode 100644 index 0000000..fc5abde --- /dev/null +++ b/mock/jrummikub/view/MockQuitWarningPanel.java @@ -0,0 +1,35 @@ +package jrummikub.view; + +import jrummikub.util.IEvent; +import jrummikub.util.MockEvent; + +/** */ +public class MockQuitWarningPanel implements IQuitWarningPanel { + /** */ + public MockEvent quitEvent = new MockEvent(); + /** */ + public MockEvent cancelEvent = new MockEvent(); + /** */ + public QuitMode quitMode; + + @Override + public IEvent getQuitEvent() { + return quitEvent; + } + + @Override + public IEvent getCancelEvent() { + return cancelEvent; + } + + @Override + public void setMode(QuitMode mode) { + quitMode = mode; + } + + @Override + public QuitMode getQuitMode() { + return quitMode; + } + +} |