From ada8c1869c5b2b007e690e4c028fd20b34a41706 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 22 Jun 2011 07:04:15 +0200 Subject: Add proper handling for lost server connections git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@581 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockView.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'mock/jrummikub/view') diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index d26432a..1472742 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -79,6 +79,8 @@ public class MockView implements IView { /** */ public MockEvent acknowledgeInvalidEvent = new MockEvent(); /** */ + public MockEvent acknowledgeConnectionLostEvent = new MockEvent(); + /** */ public MockEvent1 loadFileEvent = new MockEvent1(); @Override @@ -116,6 +118,11 @@ public class MockView implements IView { return acknowledgeInvalidEvent; } + @Override + public IEvent getAcknowledgeConnectionLostEvent() { + return acknowledgeConnectionLostEvent; + } + @Override public IEvent getEndProgramEvent() { return quitEvent; @@ -173,7 +180,7 @@ public class MockView implements IView { @Override public void showSidePanel(boolean show) { - isSidePanelVisible=show; + isSidePanelVisible = show; } public void showQuitWarningPanel(boolean show) { @@ -192,7 +199,7 @@ public class MockView implements IView { @Override public void showConnectPanel(boolean show) { - isConnectPanelVisible=show; + isConnectPanelVisible = show; } -- cgit v1.2.3