diff options
Diffstat (limited to 'src/jrummikub/view')
-rw-r--r-- | src/jrummikub/view/IQuitWarningPanel.java | 7 | ||||
-rw-r--r-- | src/jrummikub/view/impl/QuitWarningPanel.java | 9 |
2 files changed, 8 insertions, 8 deletions
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; } } |