source: trunk/src_apollo/org/apollo/mvc/SubjectChangedEvent.java@ 315

Last change on this file since 315 was 315, checked in by bjn8, 16 years ago

Apollo spin-off added

File size: 521 bytes
Line 
1package org.apollo.mvc;
2
3public class SubjectChangedEvent {
4
5 private int id;
6 private Object state;
7
8 public SubjectChangedEvent(int id) {
9 this(id, null);
10 }
11
12 public SubjectChangedEvent(int id, Object state) {
13 this.id = id;
14 this.state = state;
15 }
16
17 public int getID() {
18 return id;
19 }
20
21 public Object getState() {
22 return state;
23 }
24
25 public boolean isEmpty() {
26 return (this == EMPTY);
27 }
28
29 /** An event with no data. */
30 public static final SubjectChangedEvent EMPTY = new SubjectChangedEvent(-1);
31
32
33}
Note: See TracBrowser for help on using the repository browser.