/extensions/org/mt4jx/input/inputProcessors/componentProcessors/Group3DProcessorNew/MTClusterEvent.java

http://mt4j.googlecode.com/ · Java · 41 lines · 27 code · 14 blank · 0 comment · 0 complexity · 5ee3a8d73697a906a1b5ed4f326c51d4 MD5 · raw file

  1. package org.mt4jx.input.inputProcessors.componentProcessors.Group3DProcessorNew;
  2. import org.mt4j.input.MTEvent;
  3. public class MTClusterEvent extends MTEvent {
  4. public static final int CLUSTER_CREATED = 1;
  5. public static final int CLUSTER_UPDATED = 2;
  6. public static final int CLUSTER_DELETED = 3;
  7. public static final int CLUSTER_SELECTED = 4;
  8. private Cluster cluster;
  9. private int id;
  10. public MTClusterEvent(Object source,int id,Cluster cluster) {
  11. super(source);
  12. this.cluster = cluster;
  13. this.id = id;
  14. }
  15. public void setCluster(Cluster cluster) {
  16. this.cluster = cluster;
  17. }
  18. public Cluster getCluster() {
  19. return cluster;
  20. }
  21. public void setId(int id) {
  22. this.id = id;
  23. }
  24. public int getId() {
  25. return id;
  26. }
  27. }