home *** CD-ROM | disk | FTP | other *** search
- package netscape.application;
-
- import netscape.util.InconsistencyException;
-
- public class Event implements Cloneable {
- EventProcessor processor;
- Object synchronousLock;
- long timeStamp;
- int type;
-
- public Event() {
- this(System.currentTimeMillis());
- }
-
- public Event(long var1) {
- this.timeStamp = var1;
- }
-
- public void setType(int var1) {
- this.type = var1;
- }
-
- public int type() {
- return this.type;
- }
-
- public void setTimeStamp(long var1) {
- this.timeStamp = var1;
- }
-
- public long timeStamp() {
- return this.timeStamp;
- }
-
- public void setProcessor(EventProcessor var1) {
- this.processor = var1;
- }
-
- public EventProcessor processor() {
- return this.processor;
- }
-
- public Object clone() {
- try {
- return super.clone();
- } catch (CloneNotSupportedException var2) {
- throw new InconsistencyException(this + ": clone() not supported :" + var2);
- }
- }
-
- synchronized Object synchronousLock() {
- return this.synchronousLock;
- }
-
- synchronized Object createSynchronousLock() {
- if (this.synchronousLock != null) {
- throw new InconsistencyException("Can't create synchronous lock if one is already set");
- } else {
- this.synchronousLock = new Object();
- return this.synchronousLock;
- }
- }
-
- synchronized void clearSynchronousLock() {
- if (this.synchronousLock == null) {
- throw new InconsistencyException("Can't clear synchronous lock if one isn't set");
- } else {
- this.synchronousLock = null;
- }
- }
- }
-