Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Visualize a custom composite in VE
Visualize a custom composite in VE [message #102621] Wed, 17 August 2005 10:22 Go to next message
Eclipse UserFriend
Hello,

I have a custom composite that has some private setting data, getters/setters for those settings,
and a render method that basically creates the content of this composite based on the settings.

In VE, when you DND this custom composite from the palette, we generate the following code :

private void createMyCustomComposite()
{
myComposite = new MyCustomComposite(this, SWT.NONE);
myComposite.setComponentClassName("input");
myComposite.setWidgetClassName("text");
myComposite.render();
myComposite.setBounds(new org.eclipse.swt.graphics.Rectangle(51,22,179,78));
}

In VE, the render() method doesn't seem to get called, so the custom composite is displayed as blank.

If I call the render() method inside the setComponentClassName() or setWidgetClassName() methods,
then this render() method gets called, and I was able to see my custom composite gets rendered.

Can anyone help? thanks.
Re: Visualize a custom composite in VE [message #102666 is a reply to message #102621] Wed, 17 August 2005 10:46 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

The problem is that the VE only models properties, not method calls.
Since render is not a property setting it never gets called. We do have
an open enhancement to try to handle method calls, but this opens up a
pandora box that we need to think very carefully about.

--
Thanks,
Rich Kulp
Re: Visualize a custom composite in VE [message #610322 is a reply to message #102621] Wed, 17 August 2005 10:46 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

The problem is that the VE only models properties, not method calls.
Since render is not a property setting it never gets called. We do have
an open enhancement to try to handle method calls, but this opens up a
pandora box that we need to think very carefully about.

--
Thanks,
Rich Kulp
Previous Topic:Visualize a custom composite in VE
Next Topic:VE ignores visual class
Goto Forum:
  


Current Time: Mon Jun 23 03:25:48 EDT 2025

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

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

Back to the top