Code example for PropertyChangeEvent

0
 
    public void setRelated(String related) {
        String temp = this.related;
        this.related = related;
        firePropertyChange(new PropertyChangeEvent(this,
            RELATED, temp, related));
    } 
 
    public void setSummary(String summary) {
        String temp = this.summary;
        this.summary = summary;
        firePropertyChange(new PropertyChangeEvent(this,
            SUMMARY, temp, summary));
    } 
 
    public void setTitle(String title) {
        String temp = this.title;
        this.title = title;
        firePropertyChange(new PropertyChangeEvent(this,
            TITLE, temp, title));
    }