1 16 package swingwt.awt.event; 17 18 import swingwt.awt.Adjustable; 19 import swingwt.awt.AWTEvent; 20 21 27 public class AdjustmentEvent extends AWTEvent { 28 public static final int ADJUSTMENT_FIRST=601; 29 public static final int ADJUSTMENT_LAST=601; 30 public static final int ADJUSTMENT_VALUE_CHANGED=ADJUSTMENT_FIRST; 31 public static final int UNIT_INCREMENT=1; 32 public static final int UNIT_DECREMENT=2; 33 public static final int BLOCK_DECREMENT=3; 34 public static final int BLOCK_INCREMENT=4; 35 public static final int TRACK=5; 36 37 Adjustable adjustable; 39 int value; 41 int adjustmentType; 43 boolean isAdjusting; 45 private static final long serialVersionUID = 5700290645205279921L; 46 47 48 55 public AdjustmentEvent(Adjustable source, int id, int type, int value) { 56 this(source, id, type, value, false); 57 } 58 59 67 public AdjustmentEvent(Adjustable source, int id, int type, int value, boolean isAdjusting) { 68 super(source, id); 69 adjustable = source; 70 this.adjustmentType = type; 71 this.value = value; 72 this.isAdjusting = isAdjusting; 73 } 74 75 79 public Adjustable getAdjustable() { 80 return adjustable; 81 } 82 83 87 public int getValue() { 88 return value; 89 } 90 91 95 public int getAdjustmentType() { 96 return adjustmentType; 97 } 98 99 103 public boolean getValueIsAdjusting() { 104 return isAdjusting; 105 } 106 107 } 108 | Popular Tags |