org.opendolphin.binding.BindClientToAble.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 BindClientToAble {
final ClientAttribute attribute
final Converter converter
BindClientToAble(ClientAttribute attribute, Converter converter = null) {
this.attribute = attribute
this.converter = converter
}
BindClientOtherOfAble to(String targetPropertyName) {
new BindClientOtherOfAble(attribute, targetPropertyName, converter)
}
BindClientToAble using(Closure converter) {
using(new ConverterAdapter(converter))
}
BindClientToAble using(Converter converter) {
return new BindClientToAble(attribute, converter)
}
}