summaryrefslogtreecommitdiffstats
path: root/mock
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-06-06 23:27:33 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-06-06 23:27:33 +0200
commitc59332950be525408da7b2e66687603a68cb560b (patch)
tree1c4eee4b7b250ac1cbaaf3870ebc132e14cc114e /mock
parent682357b5841f7853212e354199d1a46589663364 (diff)
downloadJRummikub-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')
-rw-r--r--mock/jrummikub/view/MockView.java28
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;
+ }
}