|
|||||||||
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.DropTarget
com.extjs.gxt.ui.client.dnd.ListViewDropTarget
public class ListViewDropTarget
A DropTarget
implementation for the ListView component.
Supported drag data:
Field Summary | |
---|---|
protected ModelData |
activeItem
|
protected boolean |
before
|
protected int |
insertIndex
|
protected ListView<ModelData> |
listView
|
Fields inherited from class com.extjs.gxt.ui.client.dnd.DropTarget |
---|
component, feedback, operation, overStyle |
Constructor Summary | |
---|---|
ListViewDropTarget(ListView listView)
Creates a new list view drop target instance. |
Method Summary | |
---|---|
ListView<ModelData> |
getListView()
Returns the target's list view component. |
boolean |
isAutoSelect()
Returns true if auto select is enabled. |
protected void |
onDragDrop(DNDEvent e)
Called when the user releases the mouse over the target component. |
protected void |
onDragEnter(DNDEvent e)
Called when the cursor first enters the bounds of the drop target. |
protected void |
onDragLeave(DNDEvent e)
Called when the cursor leaves the target. |
protected void |
onDragMove(DNDEvent event)
Called when the cursor is moved within the target component. |
void |
setAutoSelect(boolean autoSelect)
True to automatically select and new items created after a drop (defaults to false). |
protected void |
showFeedback(DNDEvent event)
Called as the mouse is moved over the target component. |
Methods inherited from class com.extjs.gxt.ui.client.dnd.DropTarget |
---|
addDNDListener, disable, enable, getComponent, getFeedback, getGroup, getOperation, getOverStyle, isAllowSelfAsSource, isEnabled, onComponentAttach, onComponentDetach, onDragCancelled, onDragFail, prepareDropData, release, removeDNDListener, setAllowSelfAsSource, setFeedback, setGroup, setOperation, setOverStyle |
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 ListView<ModelData> listView
protected int insertIndex
protected ModelData activeItem
protected boolean before
Constructor Detail |
---|
public ListViewDropTarget(ListView listView)
listView
- the target list viewMethod Detail |
---|
public ListView<ModelData> getListView()
public boolean isAutoSelect()
protected void onDragDrop(DNDEvent e)
DropTarget
onDragDrop
in class DropTarget
e
- the dd eventprotected void onDragEnter(DNDEvent e)
DropTarget
onDragEnter
in class DropTarget
e
- the dd eventprotected void onDragLeave(DNDEvent e)
DropTarget
onDragLeave
in class DropTarget
e
- the dd eventprotected void onDragMove(DNDEvent event)
DropTarget
BaseEvent.setCancelled(boolean)
to true, DropTarget.showFeedback(DNDEvent)
will be called.
onDragMove
in class DropTarget
event
- the dd eventpublic void setAutoSelect(boolean autoSelect)
autoSelect
- true to auto selectprotected void showFeedback(DNDEvent event)
DropTarget
showFeedback
in class DropTarget
event
- the dd event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |