Data-oriented UI widgets for DataCleaner

1 view
Skip to first unread message

Kasper Sørensen

unread,
Dec 22, 2010, 7:32:37 AM12/22/10
to datacle...@googlegroups.com
Hi,

I've received a few questions lately from contributors who want to work on the UI side of DataCleaner on which widgets to use for column selection. For this purpose I've created the class

org.eobjects.datacleaner.widgets.SourceColumnComboBox

It is an extension of the regular JComboBox. There are two basic modes that you can use the combo box for: For general selection of any column in a datastore (use the constructor or setModel(...) method that takes a Datastore) or for selection of a column within a single table (use the constructor or the setModel(...) method that takes a Datastore AND a Table). I've used it myself to implement a rather nice "open job as a template" feature which makes it possible to reuse a job but with a different set of source columns. See the screenshot below:

sourcecolumncombobox.png

Also there are a few other reusable UI widgets for similar things (all in the org.eobjects.datacleaner.widgets package):

CharSetEncodingComboBox - a combo box for character encodings.
FilenameTextField - a text field for entering a filename, with an additional "browse" button.
LoadingIcon - a general purpose icon for a "loading" indicator.
DCFileChooser - a slightly improved JFileChooser (with styling and icons).

And of course the DCTable, a way improved JTable with support for inner JComponents and more.

Regards,
Kasper
sourcecolumncombobox.png
Reply all
Reply to author
Forward
0 new messages