Code example for PropertyChangeEvent

0
 
    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));
    } 
 
    public void setURI(URI newURI) {
        URI temp = this.uri;
        this.uri = newURI;
        firePropertyChange(new PropertyChangeEvent(this,
            URI, temp, newURI));
    }