Kommentare und 2 Methoden, die jetzt kurz genug sind
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@446 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
2c9f1d5d20
commit
4f71c5cb47
10 changed files with 149 additions and 60 deletions
|
@ -6,9 +6,11 @@ import java.util.HashSet;
|
|||
* Mock class for Event2s
|
||||
*
|
||||
* @param <T1>
|
||||
* first event type
|
||||
* first event type
|
||||
* @param <T2>
|
||||
* second event type
|
||||
* second event type
|
||||
* @param <T3>
|
||||
* third event type
|
||||
*/
|
||||
public class MockEvent3<T1, T2, T3> implements IEvent3<T1, T2, T3> {
|
||||
/** */
|
||||
|
@ -33,9 +35,11 @@ public class MockEvent3<T1, T2, T3> implements IEvent3<T1, T2, T3> {
|
|||
|
||||
/**
|
||||
* @param value1
|
||||
* the first event parameter
|
||||
* the first event parameter
|
||||
* @param value2
|
||||
* the second event parameter
|
||||
* the second event parameter
|
||||
* @param value3
|
||||
* the third event parameter
|
||||
*/
|
||||
public void emit(T1 value1, T2 value2, T3 value3) {
|
||||
for (IListener3<T1, T2, T3> listener : listeners) {
|
||||
|
|
|
@ -10,8 +10,11 @@ import jrummikub.util.MockEvent1;
|
|||
|
||||
/** */
|
||||
public class MockGameListPanel implements IGameListPanel {
|
||||
/** */
|
||||
public MockEvent1<GameData> joinEvent = new MockEvent1<GameData>();
|
||||
/** */
|
||||
public MockEvent openNewGameEvent = new MockEvent();
|
||||
/** */
|
||||
public MockEvent cancelEvent = new MockEvent();
|
||||
|
||||
@Override
|
||||
|
|
Reference in a new issue