01: package samples;
02:
03: import java.beans.*;
04:
05: /**
06: *
07: * @author baliuka
08: */
09: public abstract class Bean implements java.io.Serializable {
10:
11: String sampleProperty;
12:
13: abstract public void addPropertyChangeListener(
14: PropertyChangeListener listener);
15:
16: abstract public void removePropertyChangeListener(
17: PropertyChangeListener listener);
18:
19: public String getSampleProperty() {
20: return sampleProperty;
21: }
22:
23: public void setSampleProperty(String value) {
24: this .sampleProperty = value;
25: }
26:
27: public String toString() {
28: return "sampleProperty is " + sampleProperty;
29: }
30:
31: }
|