From cc4797fd8b894cc7e02346dc93f891cccb4c0a09 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Sat, 11 Jun 2011 00:02:42 +0200 Subject: Netzwerk hat Panel mit laufenden Spielen und einem funktionierenden Abbrechen-Button git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@406 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockGameListPanel.java | 29 +++++++++++++++++++++++++++++ mock/jrummikub/view/MockView.java | 17 ++++++++++++++--- 2 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 mock/jrummikub/view/MockGameListPanel.java (limited to 'mock/jrummikub') diff --git a/mock/jrummikub/view/MockGameListPanel.java b/mock/jrummikub/view/MockGameListPanel.java new file mode 100644 index 0000000..feff097 --- /dev/null +++ b/mock/jrummikub/view/MockGameListPanel.java @@ -0,0 +1,29 @@ +package jrummikub.view; + +import jrummikub.util.IEvent; +import jrummikub.util.IEvent1; +import jrummikub.util.MockEvent; +import jrummikub.util.MockEvent1; + +/** */ +public class MockGameListPanel implements IGameListPanel { + public MockEvent1 joinEvent = new MockEvent1(); + public MockEvent openNewGameEvent = new MockEvent(); + public MockEvent cancelEvent = new MockEvent(); + + @Override + public IEvent getOpenNewGameEvent() { + return openNewGameEvent; + } + + @Override + public IEvent getCancelEvent() { + return cancelEvent; + } + + @Override + public IEvent1 getJoinEvent() { + return joinEvent; + } + +} diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index 2b716e2..4f3342d 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -27,11 +27,15 @@ public class MockView implements IView { /** */ public MockLoginPanel loginPanel = new MockLoginPanel(); /** */ + public MockGameListPanel gameListPanel = new MockGameListPanel(); + /** */ public boolean isSettingsPanelVisible = false; /** */ public boolean isScorePanelVisible = false; /** */ public boolean isLoginPanelVisible = false; + /** */ + public boolean isGameListPanelVisible = false; /** */ public Collection selectedStones; @@ -127,13 +131,11 @@ public class MockView implements IView { @Override public void setCurrentPlayerColor(Color color) { // TODO Auto-generated method stub - } @Override public void setCurrentPlayerHasLaidOut(boolean hasLaidOut) { // TODO Auto-generated method stub - } @Override @@ -173,7 +175,6 @@ public class MockView implements IView { @Override public void enablePauseMode(boolean enable) { // TODO Auto-generated method stub - } @Override @@ -199,6 +200,16 @@ public class MockView implements IView { @Override public void showLoginPanel(boolean show) { isLoginPanelVisible = show; + } + @Override + public void showGameListPanel(boolean show) { + isGameListPanelVisible = show; } + + @Override + public IGameListPanel getGameListPanel() { + return gameListPanel; + } + } -- cgit v1.2.3