summaryrefslogtreecommitdiffstats
path: root/mock
diff options
context:
space:
mode:
Diffstat (limited to 'mock')
-rw-r--r--mock/jrummikub/view/MockConnectPanel.java6
-rw-r--r--mock/jrummikub/view/MockView.java109
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
-
- }
}