From 10153f76a14a7b66e3c936b3249bec0c76835984 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Sun, 19 Jun 2011 22:27:24 +0200 Subject: Fix mock and tests git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@493 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/IQuitWarningPanel.java | 7 +++---- src/jrummikub/view/impl/QuitWarningPanel.java | 9 +++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/jrummikub/view') diff --git a/src/jrummikub/view/IQuitWarningPanel.java b/src/jrummikub/view/IQuitWarningPanel.java index eddf6b1..b1f4123 100644 --- a/src/jrummikub/view/IQuitWarningPanel.java +++ b/src/jrummikub/view/IQuitWarningPanel.java @@ -1,7 +1,6 @@ package jrummikub.view; -import jrummikub.util.Event; -import jrummikub.view.IQuitWarningPanel.QuitMode; +import jrummikub.util.IEvent; public interface IQuitWarningPanel { @@ -14,9 +13,9 @@ public interface IQuitWarningPanel { QUIT_GAME } - Event getQuitEvent(); + public IEvent getQuitEvent(); - Event getCancelEvent(); + public IEvent getCancelEvent(); public void setMode(QuitMode mode); diff --git a/src/jrummikub/view/impl/QuitWarningPanel.java b/src/jrummikub/view/impl/QuitWarningPanel.java index d7a304a..b7992b0 100644 --- a/src/jrummikub/view/impl/QuitWarningPanel.java +++ b/src/jrummikub/view/impl/QuitWarningPanel.java @@ -15,6 +15,7 @@ import javax.swing.border.EmptyBorder; import javax.swing.border.LineBorder; import jrummikub.util.Event; +import jrummikub.util.IEvent; import jrummikub.view.IQuitWarningPanel; public class QuitWarningPanel extends JPanel implements IQuitWarningPanel { @@ -77,19 +78,19 @@ public class QuitWarningPanel extends JPanel implements IQuitWarningPanel { messageLabel.setText("Der aktuelle Spielstand geht verloren"); } } - + @Override - public QuitMode getQuitMode(){ + public QuitMode getQuitMode() { return quitMode; } @Override - public Event getQuitEvent() { + public IEvent getQuitEvent() { return quitEvent; } @Override - public Event getCancelEvent() { + public IEvent getCancelEvent() { return cancelEvent; } } -- cgit v1.2.3