Created
May 23, 2011 14:07
-
-
Save orbekk/986747 to your computer and use it in GitHub Desktop.
DataBindingLogic
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
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