From 45d5b3ae10ed8cfbecb5489636093c6fb0576970 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 8 Jun 2011 21:58:16 +0200 Subject: Implement pause function git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@390 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/util/Event3.java | 8 ++++---- src/jrummikub/util/IEvent.java | 4 ++-- src/jrummikub/util/IEvent1.java | 6 +++--- src/jrummikub/util/IEvent3.java | 8 ++++---- src/jrummikub/util/IListener.java | 4 ++-- src/jrummikub/util/IListener1.java | 6 +++--- src/jrummikub/util/IListener2.java | 10 +++++----- src/jrummikub/util/IListener3.java | 8 ++++---- 8 files changed, 27 insertions(+), 27 deletions(-) (limited to 'src/jrummikub/util') diff --git a/src/jrummikub/util/Event3.java b/src/jrummikub/util/Event3.java index a309111..f500495 100644 --- a/src/jrummikub/util/Event3.java +++ b/src/jrummikub/util/Event3.java @@ -6,9 +6,9 @@ import java.util.HashSet; * Simple single parameter event generator * * @param - * type of the first event parameter + * type of the first event parameter * @param - * type of the second event parameter + * type of the second event parameter */ public class Event3 implements IEvent3 { private HashSet> listeners = new HashSet>(); @@ -34,9 +34,9 @@ public class Event3 implements IEvent3 { * Generate a single event * * @param value1 - * the first event parameter + * the first event parameter * @param value2 - * the second event parameter + * the second event parameter */ public void emit(T1 value1, T2 value2, T3 value3) { for (IListener3 listener : listeners) { diff --git a/src/jrummikub/util/IEvent.java b/src/jrummikub/util/IEvent.java index b8d418c..907bf8e 100644 --- a/src/jrummikub/util/IEvent.java +++ b/src/jrummikub/util/IEvent.java @@ -6,7 +6,7 @@ public interface IEvent { * Start to publish all events to a given listener * * @param listener - * target listener + * target listener * @return a connection to remove the listener */ public Connection add(IListener listener); @@ -15,7 +15,7 @@ public interface IEvent { * Stop publishing events to a given listener * * @param listener - * target listener + * target listener */ public void remove(IListener listener); } diff --git a/src/jrummikub/util/IEvent1.java b/src/jrummikub/util/IEvent1.java index 9508d05..dfb5e1c 100644 --- a/src/jrummikub/util/IEvent1.java +++ b/src/jrummikub/util/IEvent1.java @@ -4,14 +4,14 @@ package jrummikub.util; * Interface for classes that can generate events having a single parameter * * @param - * type of the event parameter + * type of the event parameter */ public interface IEvent1 { /** * Start to publish all events to a given listener * * @param listener - * target listener + * target listener * @return a connection to remove the listener */ public Connection add(IListener1 listener); @@ -20,7 +20,7 @@ public interface IEvent1 { * Stop publishing events to a given listener * * @param listener - * target listener + * target listener */ public void remove(IListener1 listener); } diff --git a/src/jrummikub/util/IEvent3.java b/src/jrummikub/util/IEvent3.java index fd04364..47ef1cd 100644 --- a/src/jrummikub/util/IEvent3.java +++ b/src/jrummikub/util/IEvent3.java @@ -4,16 +4,16 @@ package jrummikub.util; * Interface for classes that can generate events having a two parameters * * @param - * type of the first event parameter + * type of the first event parameter * @param - * type of the second event parameter + * type of the second event parameter */ public interface IEvent3 { /** * Start to publish all events to a given listener * * @param listener - * target listener + * target listener * @return a connection to remove the listener */ public Connection add(IListener3 listener); @@ -22,7 +22,7 @@ public interface IEvent3 { * Stop publishing events to a given listener * * @param listener - * target listener + * target listener */ public void remove(IListener3 listener); } diff --git a/src/jrummikub/util/IListener.java b/src/jrummikub/util/IListener.java index f805452..eb56848 100644 --- a/src/jrummikub/util/IListener.java +++ b/src/jrummikub/util/IListener.java @@ -4,6 +4,6 @@ package jrummikub.util; * Interface for classes that can receive parameterless events */ public interface IListener { - /** This method is called whenever a class we're listening to emits an event */ - public void handle(); + /** This method is called whenever a class we're listening to emits an event */ + public void handle(); } diff --git a/src/jrummikub/util/IListener1.java b/src/jrummikub/util/IListener1.java index 5a01569..9534e7a 100644 --- a/src/jrummikub/util/IListener1.java +++ b/src/jrummikub/util/IListener1.java @@ -5,14 +5,14 @@ package jrummikub.util; * parameter * * @param - * type of the event parameter + * type of the event parameter */ public interface IListener1 { /** * This method is called whenever a class we're listening to emits an event * * @param value - * the event parameter + * the event parameter */ - public void handle(T value); + public void handle(T value); } diff --git a/src/jrummikub/util/IListener2.java b/src/jrummikub/util/IListener2.java index dd571a3..7d3a837 100644 --- a/src/jrummikub/util/IListener2.java +++ b/src/jrummikub/util/IListener2.java @@ -5,18 +5,18 @@ package jrummikub.util; * parameters * * @param - * type of the first event parameter + * type of the first event parameter * @param - * type of the first event parameter + * type of the first event parameter */ public interface IListener2 { /** * This method is called whenever a class we're listening to emits an event * * @param value1 - * the first event parameter + * the first event parameter * @param value2 - * the second event parameter + * the second event parameter */ - public void handle(T1 value1, T2 value2); + public void handle(T1 value1, T2 value2); } diff --git a/src/jrummikub/util/IListener3.java b/src/jrummikub/util/IListener3.java index ae1d6ce..a4f8474 100644 --- a/src/jrummikub/util/IListener3.java +++ b/src/jrummikub/util/IListener3.java @@ -5,18 +5,18 @@ package jrummikub.util; * parameters * * @param - * type of the first event parameter + * type of the first event parameter * @param - * type of the first event parameter + * type of the first event parameter */ public interface IListener3 { /** * This method is called whenever a class we're listening to emits an event * * @param value1 - * the first event parameter + * the first event parameter * @param value2 - * the second event parameter + * the second event parameter */ public void handle(T1 value1, T2 value2, T3 value3); } -- cgit v1.2.3