Code example for PropertyChangeEvent

0
 
    public void setIconId(int iconid) {
        int temp = this.iconid;
        this.iconid = iconid;
        firePropertyChange(new PropertyChangeEvent(this,
            ICON, temp, iconid));
    } 
     
    public void setUID(String uid) {
        String temp = this.uid;
        this.uid = uid;
        firePropertyChange(new PropertyChangeEvent(this,
            ID, temp, uid));
    } 
 
    public void setRelated(String related) {
        String temp = this.related;
        this.related = related;
        firePropertyChange(new PropertyChangeEvent(this,
            RELATED, temp, related));
    }