/** * Add a value at the end of the indexed property */ public int addValue(Object value) { if (Common.isVetoable(this.type) && useVetoEvents()) { // Check before doing any change if this is ok this.raiseVetoableEvent(value, 0, OP_SETTER_ADD); // If we reach this point, no exception has been raised, // and the change can happen. } return this.setElement(0, value, true); }
/** * Set the value for one element of an indexed property */ public void setValue(int index, Object value) { if (Common.isVetoable(this.type) && useVetoEvents()) { // Check before doing any change if this is ok this.raiseVetoableEvent(value, index, OP_SETTER_SETELT); // If we reach this point, no exception has been raised, // and the change can happen. } this.setElement(index, value, false); }
if (value[i] != null) { int idx = this.setElement(0, value[i], true); b = (DOMBinding)this.bindings.get(idx);