Code example for PropertyChangeSupport

Methods: fireIndexedPropertyChange

0
        this.color = color;
 
        this.index = index;
        this.name = COLOR;
 
        this.pcs.fireIndexedPropertyChange(COLOR, index,
                oldColor, color);
    } 
 
    /** 
     * Setter for boolean indexed property. 
     * 
     * @param index  the property index 
     * @param flag   new value 
     */ 
    public void setBoolean(int index, boolean flag) {
        boolean oldBool = this.flag;
        this.flag = flag;
 
        this.index = index;
Stop searching for code, let great code find you!  Add Codota to your java IDE