1 32 33 package it.businesslogic.ireport.gui.event; 34 35 import it.businesslogic.ireport.*; 36 37 41 public class StyleChangedEvent { 42 43 public static final int ADDED = 0; 44 public static final int CHANGED = 1; 45 public static final int DELETED = 2; 46 47 private Style oldValue; 48 private Style newValue; 49 private int action = 0; 50 private Object source = null; 51 52 53 public StyleChangedEvent(Object source, int action ,Style oldValue, Style newValue) { 54 55 this.source = source; 56 this.oldValue = oldValue; 57 this.newValue = newValue; 58 this.action = action; 59 } 60 61 65 public Object getSource() { 66 return source; 67 } 68 69 73 public void setSource(Object source) { 74 this.source = source; 75 } 76 77 81 public Style getNewValue() { 82 return newValue; 83 } 84 85 89 public void setNewValue(Style newValue) { 90 this.newValue = newValue; 91 } 92 93 97 public Style getOldValue() { 98 return oldValue; 99 } 100 101 105 public void setOldValue(Style oldValue) { 106 this.oldValue = oldValue; 107 } 108 109 public int getAction() { 110 return action; 111 } 112 113 public void setAction(int action) { 114 this.action = action; 115 } 116 } 117 | Popular Tags |