Skip to content

Instantly share code, notes, and snippets.

@aalmiray
Created August 29, 2010 14:10
Show Gist options
  • Save aalmiray/556318 to your computer and use it in GitHub Desktop.
Save aalmiray/556318 to your computer and use it in GitHub Desktop.
package b;
import java.awt.event.ActionEvent;
import org.codehaus.griffon.runtime.core.AbstractGriffonController;
public class BController extends AbstractGriffonController {
private BModel model;
public void setModel(BModel model) {
this.model = model;
}
public void copy(ActionEvent e) {
model.setOutput(model.getInput());
}
}
/*
Groovy equivalent
package b
class BController {
def model
def copy = { evt = null ->
model.output = model.input
}
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment