next up previous NU-CCS-99-04.ps [ Readme | Copyright | Tutorial | Download | Feedback ]


Next: Implementing De-serialization Up: How Are the New Previous: Implementing Extensible Runtime Containment

Implementing Drag and Drop

The original BeanBox supports moving beans around the development window (inside the BeanBox container), but once we introduce multilevel nesting, things get more complex. The moving process is the same, done by propagating MouseEvents from the bean's wrapper to the BeanBox, and the BeanBox draws the red rectangle. What has changed is what happens when the operation is finished. The original BeanBox finishes the moving operation by setting a new position to the bean which was moved, but the ContextBox has to do a bit more. The ContextBox gets the innermost Container that is positioned at the coordinates where the move finished, and then checks two things:


next up previous NU-CCS-99-04.ps [ Readme | Copyright | Tutorial | Download | Feedback ]


Next: Implementing De-serialization Up: How Are the New Previous: Implementing Extensible Runtime Containment

David H. Lorenz
3/17/2000