package de.mpicbg.sweng.grails.jmesa import org.jmesa.view.editor.CellEditor /** * Created by IntelliJ IDEA. * User: janosch * Date: Oct 26, 2010 * Time: 2:15:38 PM * To change this template use File | Settings | File Templates. */ class BooleanYesNoCellEditor implements CellEditor { private String attribute public BooleanYesNoCellEditor(String attribute){ this.attribute = attribute } Object getValue(def item, String property, int rowcount) { if (item[this.attribute]) { return "Yes" } else { return "No" } } }