Action invoke systeem verbeterd en nette exceptions geintroduceerd.

This commit is contained in:
2011-02-03 14:41:12 +00:00
parent 76fdef60be
commit e9a3cd661f
12 changed files with 100 additions and 48 deletions

View File

@@ -1,9 +0,0 @@
package pm.event;
import pm.action.Action;
public class ApplicationEvent extends Event {
public ApplicationEvent(Action action) {
super(action);
}
}

View File

@@ -2,13 +2,19 @@ package pm.event;
import pm.action.Action;
public abstract class Event {
public class Event {
protected Type type;
protected Action action;
public Event(Action action) {
public Event(Type type, Action action) {
this.type = type;
this.action = action;
}
public Type getType() {
return type;
}
public Action getAction() {
return action;
}

View File

@@ -0,0 +1,5 @@
package pm.event;
public enum Type {
MAIN, APPLICATION;
}