M
- the model typepublic class ListViewDropTarget<M> extends DropTarget
ListView
to act as the target of a drag and drop operation.
Use DropTarget.setFeedback(com.sencha.gxt.dnd.core.client.DND.Feedback)
to specify whether to allow inserting items
between rows, appending items to the end, or both (defaults to DND.Feedback.BOTH
).
Use DropTarget.setOperation(com.sencha.gxt.dnd.core.client.DND.Operation)
to specify whether to move items or copy
them (defaults to DND.Operation.MOVE
).Constructor and Description |
---|
ListViewDropTarget(ListView<M,?> listView)
Creates a drop target for the specified list view.
|
Modifier and Type | Method and Description |
---|---|
ListView<M,?> |
getListView()
Returns the list view associated with this drop target.
|
boolean |
isAutoSelect()
Returns true if auto select is enabled.
|
void |
setAutoSelect(boolean autoSelect)
True to automatically select any new items created after a drop (defaults to false).
|
addDragCancelHandler, addDragEnterHandler, addDragLeaveHandler, addDragMoveHandler, addDropHandler, disable, enable, getFeedback, getGroup, getOperation, getOverStyle, getWidget, isAllowSelfAsSource, isEnabled, release, setAllowSelfAsSource, setFeedback, setGroup, setOperation, setOverStyle
public ListView<M,?> getListView()
public boolean isAutoSelect()
public void setAutoSelect(boolean autoSelect)
autoSelect
- true to auto selectCopyright © 2015. All rights reserved.