org.jclarion.clarion.swing.dnd.ClarionDragGesture Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clarion-runtime Show documentation
Show all versions of clarion-runtime Show documentation
JClarion runtime environment
The newest version!
package org.jclarion.clarion.swing.dnd;
import java.awt.dnd.DragGestureEvent;
import java.awt.dnd.DragGestureListener;
import java.awt.dnd.DragSource;
import org.jclarion.clarion.control.AbstractControl;
public class ClarionDragGesture implements DragGestureListener
{
private AbstractControl control;
public ClarionDragGesture(AbstractControl control)
{
this.control=control;
}
@Override
public void dragGestureRecognized(DragGestureEvent dge)
{
dge.startDrag(DragSource.DefaultCopyNoDrop,new ClarionTransferable(control),new ClarionDragSourceListener());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy