diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-22 07:04:15 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-22 07:04:15 +0200 |
commit | ada8c1869c5b2b007e690e4c028fd20b34a41706 (patch) | |
tree | 894a27b7f4f7ae874c53882690c45805d5780a44 /src/jrummikub/view/impl/View.java | |
parent | d2df76cae49bf31b28d422b5ddfbfb5b1e7651d0 (diff) | |
download | JRummikub-ada8c1869c5b2b007e690e4c028fd20b34a41706.tar JRummikub-ada8c1869c5b2b007e690e4c028fd20b34a41706.zip |
Add proper handling for lost server connections
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@581 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view/impl/View.java')
-rw-r--r-- | src/jrummikub/view/impl/View.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/jrummikub/view/impl/View.java b/src/jrummikub/view/impl/View.java index 34ae800..06e2721 100644 --- a/src/jrummikub/view/impl/View.java +++ b/src/jrummikub/view/impl/View.java @@ -605,6 +605,11 @@ public class View extends JFrame implements IView { } @Override + public IEvent getAcknowledgeConnectionLostEvent() { + return startTurnPanel.getAcknowledgeConnectionLostEvent(); + } + + @Override public IEvent getNewRoundEvent() { return roundEndPanel.getNewRoundEvent(); } @@ -667,7 +672,8 @@ public class View extends JFrame implements IView { private void doSetBottomPanel(BottomPanelType type) { boolean showStartTurnPanel = (type == BottomPanelType.START_TURN_PANEL || type == BottomPanelType.START_REDEAL_TURN_PANEL - || type == BottomPanelType.START_LAST_TURN_PANEL || type == BottomPanelType.INVALID_TURN_PANEL); + || type == BottomPanelType.START_LAST_TURN_PANEL + || type == BottomPanelType.INVALID_TURN_PANEL || type == BottomPanelType.NETWORK_SERVER_CONNECTION_LOST_PANEL); startTurnPanel.setType(type); startTurnPanel.setVisible(showStartTurnPanel); |