Created
August 29, 2010 14:10
-
-
Save aalmiray/556318 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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