Re: Project Idea: Cleaner ways of hooking up a list of beans to a
JTable.
CodeRight wrote:
On 19 jan, 17:52, Daniel Pitts
<newsgroup.spamfil...@virtualinfinity.net> wrote:
CodeRight wrote:
Hello Daniel,
I have developed a framework that aupport everything (and more) you
suggest.
Components like combobox/list/table/etc are all type-safe and support
binding
to javabean properties. Let me show an example for a customers table:
Table<Customer> table = new Table<Customer("customers");
table.addColumn(0, "ColumnTitle", "bindPropertyName");
That's it, no TableModel is needed just provide a List<Customer>
getCustomers()
and the framework takes care of everything for you.
If you are interested in the framework look here:http://jazz.coderight.nl
Regards,
Will Boluyt
CodeRight
Sounds interesting... Does the table reflect changes to the bean
automatically? Meaning, does the table register itself as a
PropertyChangeListener?
--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
in a real world application beans come from everywhere (RMI,
Hibernate, etc)
so they most likely will not have PropertyChangeSupport...
Jazz works with any bean/pojo that has public getters and setters and
the binding
'nows' howto reflect changes :)
Part of my suggestion for the project was to automatiaclly add
PropertyChangeSupport somehow.
I actually consider it a missing language feature that this isn't
supported easily without a ton of boilerplate code.
--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>