Collection property editor

G

Guest

In both of the RAD environment which I have previously used, there are
property editors for a collection of a particular property type. In
Borland's VCL the property editor is built-in once one uses a VCL
collection as a property, while in .Net one can specify the
System.ComponentModel.Design.CollectionEditor for a ,Net collection.
These properties editors work flawlessly for a property which is a
collection of a particular property type, whether it is a value type,
like a Java int, or a reference type like a Java Object of a particular
base class. They allow the end user to add an entry to the collection
and then either type the value, if it is a value type, or present a
drop-down list of other components of the specified type which have been
added to the form ( bean context in Java terms ) for the user to choose,
if it is a reference type.

Coming to JavaBean development I was surprised that Java does not
apparently have such a built-in property editor. Is this true, or have I
just been unable to find documentation about it ?

If there is no built-in property editor for a collection of types, are
there any such property editors for this on the Internet anywhere ?

I realize that I can build my own generic property editor for a
collection, but I would like to avoid it if I can and use one that
already exists. The case of a property editor for a collection seems
quite common in terms of creating re-usable components, and I need one
for a property of a JavaBean I am creating. Any help on this would be
greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top