Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Additional bean info
Additional bean info [message #108105] Sun, 25 September 2005 14:36 Go to next message
Eclipse UserFriend
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 12:31 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
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 12:31 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
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
Previous Topic:JFace components in VE?
Next Topic:VE installation problem (newbie)
Goto Forum:
  


Current Time: Sat Apr 27 02:43:53 GMT 2024

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

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

Back to the top