From 74d8205f30732a8afd6aa45f859188b0a3d447e5 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Mon, 20 Jun 2011 04:39:54 +0200 Subject: Kommentare, Kommentare git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@509 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockConnectPanel.java | 6 +- mock/jrummikub/view/MockView.java | 109 +++++++++++++++--------------- 2 files changed, 59 insertions(+), 56 deletions(-) (limited to 'mock/jrummikub/view') diff --git a/mock/jrummikub/view/MockConnectPanel.java b/mock/jrummikub/view/MockConnectPanel.java index a08593d..952839c 100644 --- a/mock/jrummikub/view/MockConnectPanel.java +++ b/mock/jrummikub/view/MockConnectPanel.java @@ -3,13 +3,15 @@ package jrummikub.view; import jrummikub.util.IEvent; import jrummikub.util.MockEvent; -public class MockConnectPanel implements IConnectPanel{ +/** */ +public class MockConnectPanel implements IConnectPanel { + /** */ public MockEvent cancelEvent = new MockEvent(); @Override public void setMode(LoginError error) { // TODO Auto-generated method stub - + } @Override diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index 8920959..45c7b5f 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -41,6 +41,8 @@ public class MockView implements IView { public boolean isLoginPanelVisible = false; /** */ public boolean isGameListPanelVisible = false; + /** */ + public boolean isQuitWarningPanelVisible = false; /** */ public Collection selectedStones; @@ -128,8 +130,8 @@ public class MockView implements IView { } @Override - public void showSettingsPanel(boolean show) { - isSettingsPanelVisible = show; + public IGameListPanel getGameListPanel() { + return gameListPanel; } @Override @@ -137,11 +139,62 @@ public class MockView implements IView { return scorePanel; } + @Override + public ILoginPanel getLoginPanel() { + return loginPanel; + } + + @Override + public IConnectPanel getConnectPanel() { + return connectPanel; + } + + @Override + public ISidePanel getSidePanel() { + return new MockSidePanel(); + } + + @Override + public MockQuitWarningPanel getQuitWarningPanel() { + return quitWarningPanel; + } + + @Override + public void showSettingsPanel(boolean show) { + isSettingsPanelVisible = show; + } + @Override public void showScorePanel(boolean show) { isScorePanelVisible = show; } + @Override + public void showSidePanel(boolean show) { + // TODO Auto-generated method stub + + } + + public void showQuitWarningPanel(boolean show) { + isQuitWarningPanelVisible =show; + } + + @Override + public void showLoginPanel(boolean show) { + isLoginPanelVisible = show; + } + + @Override + public void showGameListPanel(boolean show) { + isGameListPanelVisible = show; + } + + @Override + public void showConnectPanel(boolean show) { + // TODO Auto-generated method stub + + } + @Override public void setCurrentPlayerColor(Color color) { // TODO Auto-generated method stub @@ -206,31 +259,6 @@ public class MockView implements IView { return networkGameEvent; } - @Override - public ILoginPanel getLoginPanel() { - return loginPanel; - } - - @Override - public void showLoginPanel(boolean show) { - isLoginPanelVisible = show; - } - - @Override - public void showGameListPanel(boolean show) { - isGameListPanelVisible = show; - } - - @Override - public IGameListPanel getGameListPanel() { - return gameListPanel; - } - - @Override - public IConnectPanel getConnectPanel() { - return connectPanel; - } - @Override public void setInitialMeldError(int points) { // TODO Auto-generated method stub @@ -267,32 +295,11 @@ public class MockView implements IView { } - @Override - public ISidePanel getSidePanel() { - return new MockSidePanel(); - } - - @Override - public void showSidePanel(boolean show) { - // TODO Auto-generated method stub - - } - - public void showQuitWarningPanel(boolean show) { - // TODO Auto-generated method stub - - } - @Override public IEvent getQuitEvent() { return quitEvent; } - @Override - public IQuitWarningPanel getQuitWarningPanel() { - return quitWarningPanel; - } - @Override public IEvent1 getLoadFileEvent() { return loadFileEvent; @@ -302,10 +309,4 @@ public class MockView implements IView { public void load() { // TODO Auto-generated method stub } - - @Override - public void showConnectPanel(boolean show) { - // TODO Auto-generated method stub - - } } -- cgit v1.2.3