diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-20 04:39:54 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-20 04:39:54 +0200 |
commit | 74d8205f30732a8afd6aa45f859188b0a3d447e5 (patch) | |
tree | ee84072fa43cf0342c4d5eb59e232d8c5b4b1802 /mock/jrummikub | |
parent | 477e8e9b82d6bcbec006914a22e05a2c18492869 (diff) | |
download | JRummikub-74d8205f30732a8afd6aa45f859188b0a3d447e5.tar JRummikub-74d8205f30732a8afd6aa45f859188b0a3d447e5.zip |
Kommentare, Kommentare
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@509 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'mock/jrummikub')
-rw-r--r-- | mock/jrummikub/view/MockConnectPanel.java | 6 | ||||
-rw-r--r-- | mock/jrummikub/view/MockView.java | 109 |
2 files changed, 59 insertions, 56 deletions
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<Stone> selectedStones; @@ -128,8 +130,8 @@ public class MockView implements IView { } @Override - public void showSettingsPanel(boolean show) { - isSettingsPanelVisible = show; + public IGameListPanel getGameListPanel() { + return gameListPanel; } @Override @@ -138,11 +140,62 @@ public class MockView implements IView { } @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 } @@ -207,31 +260,6 @@ public class MockView implements IView { } @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 @@ -268,32 +296,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<File> 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 - - } } |