Created
August 29, 2010 14:09
-
-
Save aalmiray/556315 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 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