Code example for PropertyChangeSupport

Methods: fireIndexedPropertyChange

0
        this.flag = flag;
 
        this.index = index;
        this.name = BOOLEAN;
 
        this.pcs.fireIndexedPropertyChange(BOOLEAN, index,
                oldBool, flag);
    } 
 
    /** 
     * Setter for integer indexed property. 
     * 
     * @param index  the property index 
     * @param value  new value 
     */ 
    public void setInteger(int index, int value) {
        int oldInt = this.value;
        this.value = value;
 
        this.index = index;
        this.name = INTEGER;