Hi Anh,

The DTD for the manifest requires that a 'method' attribute be
specified on a 'drop' component, and that method must be defined in
the Flex implementation of the component; however, the method
currently will not be invoked, which is why 'handleDrop' is never
called.  This will change at some point in the future.

The function 'handleBasketDrop' is the specific handler to be invoked
when a resource is dropped onto the BasketComponent, and this is the
function that is invoked in response to a DRAG_DROP event.  The
BasketComponent class calls TBComponent.addDropTarget to indicate
this.  TBComponent.addDropTarget could also be called for other
interactive objects in the UI stack of the BasketComponent if those
objects need to handle a DRAG_DROP differently.  For instance, each
item renderer (BasketItemRenderer in the example project) could call
TBComponent.addDropTarget with it's own handler for when a resource is
dropped onto the renderer.


Willie Milnor
Sr. Semantic Solutions Developer

TopQuadrant, Inc.
330 John Carlyle Street
Suite 180
Alexandria, VA 22314
703.299.9330
www.topquadrant.com


On Jun 14, 6:18 am, Anh Nguyen <[email protected]> wrote:
> Hi,
>
> I'm debugging the TBE example:ensemble-plugin-basket-component.
>
> The manifest file defines a method named "handleDrop", but it is never
> called. Instead, the function "handleBasketDrop" is called when I drag
> an item from a tree into the basket.
>
> So when the "handleDrop" is called?
>
> It makes me confused of what happened. Do I miss something?
>
> Regards,
> Anh Nguyen

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to