|conditional creation and DnD across parts [message #175601]
||Tue, 05 April 2005 13:43
Originally posted by: sidus68.yahoo.com|
I have a form which contains one or more containers, and each container
contains various components. The container and the various components are
available from the palette viewer for creation. The container may only be
a child of the form, but not of itself or any other component. Nor must it
be possible to create a component outside of a container (a component must
contain the container as a parent somewhere in its EditPart hierarchy).
- two questions:
(i) am I correct in assuming that a LAYOUT_ROLE with XYLayoutEditPolicy
appropriately subclassed such that getCreateCommand() returns null if the
parent of the container is not the form, or (when creating a component)
the parent is the form?
(ii) components can be dragged within or across containers, but not onto
the form - how do I facilitate this?
Powered by FUDForum
. Page generated in 0.02878 seconds