Skip to main content



      Home
Home » Archived » Visual Editor (VE) » How to handle beans with properties of type []
How to handle beans with properties of type [] [message #73413] Wed, 01 December 2004 04:46 Go to next message
Eclipse UserFriend
Originally posted by: erwin.fallaux.nl.thalesgroup.com

Hello,

I am relatively new to the whole javabeans concept, and i have stumbled
onto a problem.
I am having some trouble with understanding how the propertysheet deals
with beans which have properties of an array type.

For example, i have a bean with a property called 'categories' which is of
type String[].
When i select that property in the propertysheet, i would like to be able
to add individual elements to the array.
But, when i press the ... button, the VE comes with the BeanChoose dialog,
with a filter java.lang.String[].
Is there a way to add elements to an array with a dialog?
Or do i have to create my own PropertyEditor to do this?

I have created the bean with an indexed property, the following methods:
- public String[] getCategories
- public void setCategories(String[] categories)
- public String getCategories(int index)
- public void setCategories(int index, String category)

Thanks in advance,
Erwin Fallaux
Re: How to handle beans with properties of type [] [message #73437 is a reply to message #73413] Wed, 01 December 2004 06:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: erwin.fallaux.nl.thalesgroup.com

I forgot to mention that i specified the type String[] in the bean-info
file.
Without the beaninfo file, the property doesnt show up at all in the
propertysheet.

Regards
Erwin Fallaux
Re: How to handle beans with properties of type [] [message #73455 is a reply to message #73437] Wed, 01 December 2004 10:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

At the moment we don't support indexed properties. That is a
high-priority enhancement that we do want to get to as soon as we can.


--
Thanks,
Rich Kulp
Re: How to handle beans with properties of type [] [message #73471 is a reply to message #73455] Wed, 01 December 2004 10:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: erwin.fallaux.nl.thalesgroup.com

Thanks for your response,Richard.
I saw that a bug has been reported about this problem, 49718. I am
assuming this is the enhancement request you are referring to.

Could you give me some more information about when this will be solved.
I am dealing with a deadline for my project. So i have to consider waiting
for this bug or implementing something myself. Obviously, i would prefer
the first.

Thanks again,
Erwin Fallaux
Re: How to handle beans with properties of type [] [message #73489 is a reply to message #73471] Wed, 01 December 2004 10:48 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I can't. We don't know yet.


--
Sorry,
Rich Kulp
Re: How to handle beans with properties of type [] [message #603582 is a reply to message #73413] Wed, 01 December 2004 06:15 Go to previous message
Eclipse UserFriend
Originally posted by: erwin.fallaux.nl.thalesgroup.com

I forgot to mention that i specified the type String[] in the bean-info
file.
Without the beaninfo file, the property doesnt show up at all in the
propertysheet.

Regards
Erwin Fallaux
Re: How to handle beans with properties of type [] [message #603587 is a reply to message #73437] Wed, 01 December 2004 10:22 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

At the moment we don't support indexed properties. That is a
high-priority enhancement that we do want to get to as soon as we can.


--
Thanks,
Rich Kulp
Re: How to handle beans with properties of type [] [message #603591 is a reply to message #73455] Wed, 01 December 2004 10:37 Go to previous message
Eclipse UserFriend
Originally posted by: erwin.fallaux.nl.thalesgroup.com

Thanks for your response,Richard.
I saw that a bug has been reported about this problem, 49718. I am
assuming this is the enhancement request you are referring to.

Could you give me some more information about when this will be solved.
I am dealing with a deadline for my project. So i have to consider waiting
for this bug or implementing something myself. Obviously, i would prefer
the first.

Thanks again,
Erwin Fallaux
Re: How to handle beans with properties of type [] [message #603596 is a reply to message #73471] Wed, 01 December 2004 10:48 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I can't. We don't know yet.


--
Sorry,
Rich Kulp
Previous Topic:How to handle beans with properties of type []
Next Topic:Using VE with older SWT versions
Goto Forum:
  


Current Time: Thu Jul 31 18:22:46 EDT 2025

Powered by FUDForum. Page generated in 0.30055 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top