01: package net.suberic.util.gui.propedit;
02:
03: public class PropertyValueVetoException extends Exception {
04:
05: String propertyName;
06: String rejectedValue;
07: String reason;
08: PropertyEditorListener listener;
09:
10: /**
11: * Creates a new PropertyValueVetoException.
12: */
13: public PropertyValueVetoException(String pProperty,
14: String pRejectedValue, String pReason,
15: PropertyEditorListener pListener) {
16: propertyName = pProperty;
17: rejectedValue = pRejectedValue;
18: reason = pReason;
19: listener = pListener;
20: }
21:
22: /**
23: * Returns the property being changed.
24: */
25: public String getProperty() {
26: return propertyName;
27: }
28:
29: /**
30: * Returns the rejected value.
31: */
32: public String getRejectedValue() {
33: return rejectedValue;
34: }
35:
36: /**
37: * Returns the reason for rejection.
38: */
39: public String getReason() {
40: return reason;
41: }
42:
43: /**
44: * Returns the listener that rejected the change.
45: */
46: public PropertyEditorListener getListener() {
47: return listener;
48: }
49: }
|