|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.dnd.DragSource
com.extjs.gxt.ui.client.dnd.GridDragSource
public class GridDragSource
A DragSource
implementation for Grids. Supports both single and
multi-selections. The selected model instances will be set as the data to be
dragged.
Field Summary | |
---|---|
protected Grid<ModelData> |
grid
|
Fields inherited from class com.extjs.gxt.ui.client.dnd.DragSource |
---|
component, data, draggable, listener, statusProxy |
Constructor Summary | |
---|---|
GridDragSource(Grid grid)
Creates a new grid drag source instance. |
Method Summary | |
---|---|
Grid<ModelData> |
getGrid()
Returns the sources grid component. |
protected void |
onDragDrop(DNDEvent e)
|
protected void |
onDragStart(DNDEvent e)
Called when a drag operation begins on the target component. |
Methods inherited from class com.extjs.gxt.ui.client.dnd.DragSource |
---|
addDNDListener, disable, enable, getComponent, getData, getDraggable, getGroup, getStatusText, isEnabled, onDragCancelled, onDragFail, release, removeDNDListener, setData, setGroup, setStatusText |
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
---|
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Grid<ModelData> grid
Constructor Detail |
---|
public GridDragSource(Grid grid)
grid
- the gridMethod Detail |
---|
public Grid<ModelData> getGrid()
protected void onDragDrop(DNDEvent e)
onDragDrop
in class DragSource
protected void onDragStart(DNDEvent e)
DragSource
BaseEvent.setCancelled(boolean)
.
onDragStart
in class DragSource
e
- the dnd event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |