From a4f5beb00598f577598a0e39e4e1099d9ea6e1e6 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 16 May 2011 22:09:56 +0200 Subject: Move getHandPanel from IPlayerPanel to IView git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@245 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockPlayerPanel.java | 8 -------- mock/jrummikub/view/MockView.java | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'mock/jrummikub') diff --git a/mock/jrummikub/view/MockPlayerPanel.java b/mock/jrummikub/view/MockPlayerPanel.java index f193fa1..13dbb57 100644 --- a/mock/jrummikub/view/MockPlayerPanel.java +++ b/mock/jrummikub/view/MockPlayerPanel.java @@ -10,18 +10,10 @@ public class MockPlayerPanel implements IPlayerPanel { /** */ public MockEvent endTurnEvent = new MockEvent(); /** */ - public MockHandPanel handPanel = new MockHandPanel(); - /** */ public MockEvent sortByGroupsEvent = new MockEvent(); /** */ public MockEvent sortByRunsEvent = new MockEvent(); - @Override - public IHandPanel getHandPanel() { - // TODO Auto-generated method stub - return handPanel; - } - @Override public void setTimeLeft(int time) { // TODO Auto-generated method stub diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index f0337f3..1f8c9a8 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -5,6 +5,7 @@ import java.util.Collection; import jrummikub.model.Stone; import jrummikub.util.IEvent; import jrummikub.util.MockEvent; + /** * Mock class for View */ @@ -13,6 +14,8 @@ public class MockView implements IView { public MockPlayerPanel playerPanel = new MockPlayerPanel(); /** */ public MockTablePanel tablePanel = new MockTablePanel(); + /** */ + public MockHandPanel handPanel = new MockHandPanel(); /** */ public Collection selectedStones; @@ -41,6 +44,11 @@ public class MockView implements IView { return playerPanel; } + @Override + public MockHandPanel getHandPanel() { + return handPanel; + } + @Override public void setCurrentPlayerName(String playerName) { currentPlayerName = playerName; -- cgit v1.2.3