This commit is contained in:
2011-02-07 21:21:39 +00:00
parent 0e8c212999
commit eb36318a76
17 changed files with 233 additions and 78 deletions

View File

@@ -2,6 +2,18 @@ package pm.macro;
import pm.Button;
public interface Event {
public Button button = null;
public abstract class Event {
protected Button button;
public Event(Button button) {
this.button = button;
}
public Button getButton() {
return button;
}
public boolean equals(Event event) {
return event.getClass().equals(getClass()) && event.getButton().equals(button); // Todo: controleren of equals goed werkt bij buttons van verschillende typen
}
}