1 16 17 package com.buchuki.ensmer.input.event.semantic; 18 19 import java.util.EventObject ; 20 21 30 public class ObjectEvent extends EventObject { 31 32 42 public ObjectEvent(Object source, Long object, EventType action) { 43 super(source); 44 this.object = object; 45 this.action = action; 46 } 47 48 53 public Long getObject() { 54 return this.object; 55 } 56 57 61 public EventType getAction() { 62 return action; 63 } 64 65 68 private Long object; 69 70 73 private EventType action; 74 75 78 public enum EventType { 79 OBJECT_ADDED, 80 OBJECT_REMOVED, 81 OBJECT_DESTROYED 82 } 83 } 84 | Popular Tags |