org.opendolphin.binding.UnbindClientOtherOfAble.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dolphin-client-javafx Show documentation
Show all versions of dolphin-client-javafx Show documentation
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.
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)
}
}