O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Simple DnD within components

As seen in the previous recipe, Dragging any component, any GXT component can be dragged after wrapping it with an instance of Draggable. However, certain GXT components have specialized DnD class implementation, which handles the specifics of DnD for them. These GXT components are generally implemented as a pair of classes for each component. The pair is made up of a DragSource implementation and a DropTarget implementation, responsible for drags and drops, respectively. The Grid implementation, therefore, has a GridDragSource instance and a GridDropTarget instance with others listed, as in the following table:

Component

DragSource

DropTarget

ListView

ListViewDragSource

ListViewDropTarget

TreePanel

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required