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

org.grails.scaffolding.registry.DomainOutputRenderer.groovy Maven / Gradle / Ivy

The newest version!
package org.grails.scaffolding.registry

import org.grails.scaffolding.model.property.DomainProperty

/**
 * Used to render markup that represents how single domain class property will be displayed
 *
 * @author James Kleeh
 */
interface DomainOutputRenderer extends DomainRenderer {

    /**
     * Defines how a given domain class property will be rendered in the context of a list of domains class instances
     *
     * @param property The domain property to be rendered
     * @return The closure to be passed to an instance of {@link groovy.xml.MarkupBuilder}
     */
    Closure renderListOutput(DomainProperty property)

    /**
     * Defines how a given domain class property will be rendered in the context of a single domain class instance
     *
     * @param property The domain property to be rendered
     * @return The closure to be passed to an instance of {@link groovy.xml.MarkupBuilder}
     */
    Closure renderOutput(DomainProperty property)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy