Beispiel #1
0
 public void setBinding(AbstractBinding value) {
   AbstractBinding oldValue = this.binding;
   if (oldValue == null) {
     if (value == null) {
       return; // No change
     } else {
       this.binding = value;
       unparsedBinding = value != null ? value.getStringRepresentation() : null;
       updateDependancies();
       if (bindingAttribute != null) {
         owner.notify(
             new FIBAttributeNotification<AbstractBinding>(bindingAttribute, oldValue, value));
       }
       owner.notifyBindingChanged(this);
       return;
     }
   } else {
     if (oldValue.equals(value)) {
       return; // No change
     } else {
       this.binding = value;
       unparsedBinding = value != null ? value.getStringRepresentation() : null;
       if (logger.isLoggable(Level.FINE)) {
         logger.fine("Binding takes now value " + value);
       }
       updateDependancies();
       if (bindingAttribute != null) {
         owner.notify(
             new FIBAttributeNotification<AbstractBinding>(bindingAttribute, oldValue, value));
       }
       owner.notifyBindingChanged(this);
       return;
     }
   }
 }
Beispiel #2
0
 protected void finalizeDeserialization() {
   finalizeDeserialization(false);
   if (owner != null && hasBinding() && isValid()) {
     owner.notifyBindingChanged(this);
   }
 }