Revision 13198 trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/controls/dnd/JDnDList.java
JDnDList.java | ||
---|---|---|
69 | 69 |
* |
70 | 70 |
* $Id$ |
71 | 71 |
* $Log$ |
72 |
* Revision 1.1 2007-08-20 08:34:46 evercher |
|
72 |
* Revision 1.2 2007-08-21 09:57:17 bsanchez |
|
73 |
* - Variable no usada |
|
74 |
* |
|
75 |
* Revision 1.1 2007/08/20 08:34:46 evercher |
|
73 | 76 |
* He fusionado LibUI con LibUIComponents |
74 | 77 |
* |
75 | 78 |
* Revision 1.2 2006/03/23 10:37:11 jaume |
... | ... | |
118 | 121 |
*/ |
119 | 122 |
public class JDnDList extends JList implements DragSourceListener, DragGestureListener, DropTargetListener{ |
120 | 123 |
private DragSource dragSource; |
121 |
private DropTarget dropTarget; |
|
122 | 124 |
private boolean dragging; |
123 | 125 |
private int overIndex; |
124 | 126 |
private int[] selectedIndices; |
125 | 127 |
|
126 | 128 |
|
127 | 129 |
public JDnDList() { |
128 |
dropTarget = new DropTarget (this, this);
|
|
130 |
new DropTarget (this, this); |
|
129 | 131 |
dragSource = new DragSource(); |
130 | 132 |
dragSource.createDefaultDragGestureRecognizer( this, DnDConstants.ACTION_MOVE, this); |
131 | 133 |
} |
... | ... | |
137 | 139 |
dragSource.createDefaultDragGestureRecognizer( this, DnDConstants.ACTION_MOVE, this); |
138 | 140 |
|
139 | 141 |
// Configure ourselves to be a drop target |
140 |
dropTarget = new DropTarget( this, this );
|
|
142 |
new DropTarget( this, this ); |
|
141 | 143 |
} |
142 | 144 |
|
143 | 145 |
public void dragGestureRecognized(DragGestureEvent dge) { |
Also available in: Unified diff