Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ve-dev] JVE Model for ui composites


Sibyllem

>We have two visual components, ULCFrame and MyBox extending ULCBoxPane. In
>MyBox we have various ULCComponents. (Similar to having a MyPanel class
>extending JPanel and containing many components).
>If we add MyBox to ULCFrame using chooseBeans then the original
>ULCComponents of MyBox are not visible in the model (Similar to when the
>MyPanel bean is added to JFrame).


Gili is right that the API of the MyBox and its components is not accessible to you in the VE model.  However you can still access them through the BeanProxy API.  You can get the adapter and then reflect in to get something like getComponents() or getComponent(int) and find the bean proxies and then manipulate them directly.  Would this be enough for you or do you need anything more ?  We have thought about allowing things like positioning and ordering components within the children (i.e. generate something like )

container.addComponent(component,constrint,int),

although doing the GEF feedback for this and making it work might be more trouble that we gain.  It wouldn't be straightforward.

Best regards,

Joe

Back to the top