| 1 7 8 package com.memoire.vainstall.builder.event; 9 10 import java.util.EventObject ; 11 12 21 public class VAIProductEvent extends EventObject { 22 23 public static final int PROJECT_LOADED = 1; 24 public static final int PROJECT_SAVED = 2; 25 public static final int PROJECT_DIRTY = 3; 26 public static final int PROJECT_ACTIVATED = 4; 27 public static final int PROJECT_DEACTIVATED = 5; 28 29 public static final int PROPERTIES_CHANGED = 9; 30 31 public static final int PROJECTNAME_CHANGED = 10; 32 public static final int PROJECTVERSION_CHANGED = 11; 33 public static final int PROJECTDIRECTORY_CHANGED = 12; 34 35 public static final int PROJECT_REQUIREMENTS_MET = 20; 36 public static final int PROJECT_REQUIREMENTS_NOTMET = 21; 37 38 41 protected int type; 42 43 46 protected String userData; 47 48 public VAIProductEvent(Object source) { 49 this(source,PROPERTIES_CHANGED); 50 } 51 52 public VAIProductEvent(Object source, int type) { 53 super(source); 54 this.type = type; 55 } 56 57 public VAIProductEvent(Object source, int type, String userData) { 58 super(source); 59 this.type = type; 60 this.userData = userData; 61 } 62 63 66 public int getType() { 67 return type; 68 } 69 70 73 public String getUserData() { 74 return userData; 75 } 76 77 } 78 | Popular Tags |