By bloid
via jakusys.de
Published: Aug 19 2008 / 11:44
For the application I am currently developing I am trying to use OOP best practices. That means I tend to use many value objects for different things, e.g. names (first name, last name, salutation, etc), for addresses (street, city, etc) and for times (hour, minute - Ok, one could argue that a java.util.Date object should do the job, but that is far more than I need). Such objects are good for readable code but creating user interfaces gets cumbersome. The solution: custom PropertyEditors. This post shows you how to create conversion code that works transparently.
Add your comment