History | Log In     View a printable version of the current page.  

Issue Details (XML | Word | Printable)

Key: UBA-7390
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andreas Henle
Reporter: Daniel Grob
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ULCBase

Provide default bindings for table models

Created: 30/Jan/08 05:47 PM   Updated: 18/Jun/08 05:22 PM
Component/s: applicationframework
Affects Version/s: None
Fix Version/s: UltraLightClient '08


 All   Comments   Change History      Sort Order:
Andreas Henle - [20/Feb/08 01:23 PM - edited ]
The implementation of the ULC table - bean binding is direced from the Java.Net JavaBeanBinding project.
The following sample will show the API for binding a person bean collection to a ULC table:
TableBeanBinding Sample
List<Person> createPersonList = createPersonList();}}
ULCTableBinding tableBinding = new ULCTableBinding(createPersonList, fTable, false);
        
tableBinding.addColumnBinding("firstName", "First Name");
tableBinding.addColumnBinding("lastName", "Last Name").setEditable(true).setColumnCellRenderer(new MyEditableCellRender());
tableBinding.addColumnBinding("age", "Age");
tableBinding.addColumnBinding("dateOfBirth").setColumnName("Date of Birth");
        
tableBinding.bind();

Daniel Grob - [01/Apr/08 08:32 AM ]
Suggestion from Etienne (see http://canoo.com/blog/2008/03/27/the-invisible-model/#comments):

Suggestion: it would be great if your models could also operate on a Map rather than a bean (or biz object). Maybe that can all be abstracted out into its on aspect, such that custom mappings from any key to any value is possible, no matter what type the key and no matter what type the biz object is.


Daniel Grob - [01/Apr/08 09:12 AM ]
Suggestion from Andrea (see http://canoo.com/blog/2008/03/27/the-invisible-model/#comments):

Sounds great, but what about paging ? Is it planned to add paging for tables or should this be self-coded?


Daniel Grob - [18/Jun/08 05:22 PM ]
New API:
  • TableBinding class