Skip to content

Instantly share code, notes, and snippets.

@shivkumarganesh
Created October 24, 2012 12:57
Show Gist options
  • Save shivkumarganesh/3945908 to your computer and use it in GitHub Desktop.
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.
//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