Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codenameone/propertiesdemo

Demo of property binding
https://github.com/codenameone/propertiesdemo

codenameone demo

Last synced: about 1 month ago
JSON representation

Demo of property binding

Awesome Lists containing this project

README

        

# Properties Demo

Demo of property binding in Codename One used within this blog post: https://www.codenameone.com/blog/properties-are-amazing.html

Properties allow seamless introspection and observability which means we can automate many tasks without the need for bytecode manipulation or other "problematic" tricks. In this case the properties are bound to the database and the GUI which is auto-generated.

I left an old hand coded implementation of the UI code for reference but it isn't really used, the entire edit UI is generated magically:

![ui](https://www.codenameone.com/img/blog/properties-demo-binding.png)