Skip to content

Instantly share code, notes, and snippets.

@orbekk
Created May 23, 2011 14:07
Show Gist options
  • Save orbekk/986747 to your computer and use it in GitHub Desktop.
Save orbekk/986747 to your computer and use it in GitHub Desktop.
DataBindingLogic
public class DataBindingLogic {
private Property<String> input1 = new Property<String>(null);
private Property<String> input2 = new Property<String>(null);
private Property<String> output = new Property<String>(null);
private CalculatorLogic logic = new CalculatorLogic();
private Property<Object> button = new Property<String>(null) {
@Override protected void onChange(Object unused) {
output.set(logic.addStrings(input1.get(), input2.get()));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment