summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub/view/MockQuitWarningPanel.java
blob: fc5abdeaf21a588bd5994e6f5a3f40a82f9ce973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package jrummikub.view;

import jrummikub.util.IEvent;
import jrummikub.util.MockEvent;

/** */
public class MockQuitWarningPanel implements IQuitWarningPanel {
	/** */
	public MockEvent quitEvent = new MockEvent();
	/** */
	public MockEvent cancelEvent = new MockEvent();
	/** */
	public QuitMode quitMode;

	@Override
	public IEvent getQuitEvent() {
		return quitEvent;
	}

	@Override
	public IEvent getCancelEvent() {
		return cancelEvent;
	}

	@Override
	public void setMode(QuitMode mode) {
		quitMode = mode;
	}

	@Override
	public QuitMode getQuitMode() {
		return quitMode;
	}

}