Example #1
0
 public void setAttributeValueAsString(String svalue) throws InvalidValueException {
   Object value = convertValue(attribute.getType(), svalue);
   this.value = value;
   for (AttributeChangeListener listener : listeners)
     listener.attributeChanged(owner, attribute, value);
 }
Example #2
0
 public void setAttributeValue(Object value) throws InvalidValueException {
   checkValue(attribute.getType(), value);
   this.value = value;
   for (AttributeChangeListener listener : listeners)
     listener.attributeChanged(owner, attribute, value);
 }