Created
October 24, 2012 12:57
-
-
Save shivkumarganesh/3945908 to your computer and use it in GitHub Desktop.
This small snippet show us how to use enable binding in visage binders.You can simply put this snippet on the top of the class and import java listeners.
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
//Please format the code appropriately as required. | |
postinit{ | |
//Changes on text property will be reflected in visage text | |
wrappedTextInputControl.textProperty().addListener( | |
ChangeListener{ | |
override function changed( observable:ObservableValue, oldValue:Object , newValue:Object ):Void{ | |
text = newValue as String; | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment