Additional bean info [message #108105] |
Sun, 25 September 2005 10:36  |
Eclipse User |
|
|
|
Originally posted by: danijel_zecevic.hotmail.com
Hello,
how is it possible to add propery descriptors from other bean infos that
depend of some condition (like adding GridBagLayoutConstraintBeanInfo
property datas when parent has GridBagLayoutManager set)?
Thank you,
Danijel
|
|
|
Re: Additional bean info [message #108150 is a reply to message #108105] |
Mon, 26 September 2005 08:31  |
Eclipse User |
|
|
|
Hi ddd,
> how is it possible to add propery descriptors from other bean infos that
> depend of some condition (like adding GridBagLayoutConstraintBeanInfo
> property datas when parent has GridBagLayoutManager set)?
This is done by the VE dynamically using a custom IPropertySource. Look
at something like ComponentPropertySourceAdapter which adds either the
constraint property (if the parent's layout manager implements
ILayoutManager2) or bounds/size/location if it is null. The
ComponentPropertySourceAdapter is introduced onto java.awt.Component by
having a .override file, the basics of creating one and what it is for
is is covered in the VE tutorial.
Backing up a little bit, what is the exact scenario you are trying to
tool for ? Is it adding something to java.awt.Component, or is it for
your own non JFC JavaBeans ?
Best regards,
Joe Winchester
|
|
|
Re: Additional bean info [message #610870 is a reply to message #108105] |
Mon, 26 September 2005 08:31  |
Eclipse User |
|
|
|
Hi ddd,
> how is it possible to add propery descriptors from other bean infos that
> depend of some condition (like adding GridBagLayoutConstraintBeanInfo
> property datas when parent has GridBagLayoutManager set)?
This is done by the VE dynamically using a custom IPropertySource. Look
at something like ComponentPropertySourceAdapter which adds either the
constraint property (if the parent's layout manager implements
ILayoutManager2) or bounds/size/location if it is null. The
ComponentPropertySourceAdapter is introduced onto java.awt.Component by
having a .override file, the basics of creating one and what it is for
is is covered in the VE tutorial.
Backing up a little bit, what is the exact scenario you are trying to
tool for ? Is it adding something to java.awt.Component, or is it for
your own non JFC JavaBeans ?
Best regards,
Joe Winchester
|
|
|
Powered by
FUDForum. Page generated in 0.02925 seconds