Skip to content

Instantly share code, notes, and snippets.

@aalmiray
Created August 29, 2010 14:09
Show Gist options
  • Save aalmiray/556315 to your computer and use it in GitHub Desktop.
Save aalmiray/556315 to your computer and use it in GitHub Desktop.
package b;
import org.codehaus.griffon.runtime.core.AbstractGriffonModel;
public class BModel extends AbstractGriffonModel {
private String input;
private String output;
public String getInput() {
return input;
}
public String getOutput() {
return output;
}
public void setInput(String input) {
firePropertyChange("input", this.input, this.input = input);
}
public void setOutput(String output) {
firePropertyChange("output", this.output, this.output = output);
}
}
/*
Groovy equivalent
package b
import groovy.beans.Bindable
class BModel {
@Bindable String input
@Bindable String output
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment