com.sencha.gxt.dnd.core.client
Class GridDropTarget<M>

java.lang.Object
  extended by com.sencha.gxt.dnd.core.client.DropTarget
      extended by com.sencha.gxt.dnd.core.client.GridDropTarget<M>
All Implemented Interfaces:
DndDragCancelEvent.HasDndDragCancelHandlers, DndDragEnterEvent.HasDndDragEnterHandlers, DndDragLeaveEvent.HasDndDragLeaveHandlers, DndDragMoveEvent.HasDndDragMoveHandlers, DndDropEvent.HasDndDropHandlers

public class GridDropTarget<M>
extends DropTarget

A DropTarget implementation for Grids. Supports both inserts and appends, specified using DropTarget.setOperation(com.sencha.gxt.dnd.core.client.DND.Operation).

Supported drag data:


Constructor Summary
GridDropTarget(Grid<M> grid)
          Creates a new drop target instance.
 
Method Summary
 Grid<M> getGrid()
          Returns the target grid component.
 
Methods inherited from class com.sencha.gxt.dnd.core.client.DropTarget
addDragCancelHandler, addDragEnterHandler, addDragLeaveHandler, addDragMoveHandler, addDropHandler, disable, enable, getFeedback, getGroup, getOperation, getOverStyle, getWidget, isAllowSelfAsSource, isEnabled, release, setAllowSelfAsSource, setFeedback, setGroup, setOperation, setOverStyle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridDropTarget

public GridDropTarget(Grid<M> grid)
Creates a new drop target instance.

Parameters:
grid - the target grid
Method Detail

getGrid

public Grid<M> getGrid()
Returns the target grid component.

Returns:
the grid


Copyright © 2012. All Rights Reserved.