From c59332950be525408da7b2e66687603a68cb560b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 6 Jun 2011 23:27:33 +0200 Subject: Add menu bar and make quit item work git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@379 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/view/MockView.java | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'mock/jrummikub/view') diff --git a/mock/jrummikub/view/MockView.java b/mock/jrummikub/view/MockView.java index 09f3254..044e52f 100644 --- a/mock/jrummikub/view/MockView.java +++ b/mock/jrummikub/view/MockView.java @@ -36,9 +36,16 @@ public class MockView implements IView { public MockEvent quitEvent = new MockEvent(); /** */ public MockEvent newRoundEvent = new MockEvent(); - /** */ public MockEvent newGameEvent = new MockEvent(); + /** */ + public MockEvent menuNewGameEvent = new MockEvent(); + /** */ + public MockEvent menuLoadEvent = new MockEvent(); + /** */ + public MockEvent menuSaveEvent = new MockEvent(); + /** */ + public MockEvent menuQuitEvent = new MockEvent(); @Override public MockTablePanel getTablePanel() { @@ -124,4 +131,23 @@ public class MockView implements IView { bottomPanelType = type; } + @Override + public IEvent getMenuNewGameEvent() { + return menuNewGameEvent; + } + + @Override + public IEvent getMenuLoadEvent() { + return menuLoadEvent; + } + + @Override + public IEvent getMenuSaveEvent() { + return menuSaveEvent; + } + + @Override + public IEvent getMenuQuitEvent() { + return menuQuitEvent; + } } -- cgit v1.2.3