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

org.opendolphin.binding.BindClientToAble.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 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)
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy