diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-06 23:27:33 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-06 23:27:33 +0200 |
commit | c59332950be525408da7b2e66687603a68cb560b (patch) | |
tree | 1c4eee4b7b250ac1cbaaf3870ebc132e14cc114e /mock/jrummikub | |
parent | 682357b5841f7853212e354199d1a46589663364 (diff) | |
download | JRummikub-c59332950be525408da7b2e66687603a68cb560b.tar JRummikub-c59332950be525408da7b2e66687603a68cb560b.zip |
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
Diffstat (limited to 'mock/jrummikub')
-rw-r--r-- | mock/jrummikub/view/MockView.java | 28 |
1 files changed, 27 insertions, 1 deletions
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; + } } |