All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendolphin.binding.UnbindClientOtherOfAble.groovy Maven / Gradle / Ivy

Go to download

Dolphin is a free open-source library that bridges the worlds of enterprise Java and desktop Java. It uses presentation models to bind client-side views to server-side actions.

There is a newer version: 1.0-RC3
Show newest version
package org.opendolphin.binding

import org.opendolphin.core.client.ClientAttribute

class UnbindClientOtherOfAble {
    final ClientAttribute attribute
    final String targetPropertyName

    UnbindClientOtherOfAble(ClientAttribute attribute, String targetPropertyName) {
        this.attribute = attribute
        this.targetPropertyName = targetPropertyName
    }

    void of(Object target) {
        def listener = new JFXBinderPropertyChangeListener(attribute, target, targetPropertyName)
        attribute.removePropertyChangeListener('value', listener)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy