Created
December 4, 2014 14:02
-
-
Save gabor-farkas/1249b72f9fa3f04f7915 to your computer and use it in GitHub Desktop.
Ds-bean observable property listener example
This file contains 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
Person person = new Person(); | |
Person_._name.addValueChangeListener(person, new ValueChangeListener<String>() { | |
public void changed(String newValue) { | |
System.out.println("Value changed to: " + newValue); | |
} | |
}); | |
person.setName("new name"); // value changed to: new name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment