com.mucommander.ui.dnd
Class DnDContext

java.lang.Object
  extended by com.mucommander.ui.dnd.DnDContext

public class DnDContext
extends java.lang.Object

This class gives information about the context in which a drag-and-drop operation is being performed. The getters are static since only one drag-and-drop operation can be performed at the same time. The information returned by the getters is meaningful only when a drag-and-drop is being carried out.

Author:
Maxence Bernard
See Also:
FileDragSourceListener

Constructor Summary
DnDContext()
           
 
Method Summary
static int getDragGestureModifiersEx()
          Returns the extended modifiers that are currently pressed while dragging.
static FolderPanel getDragInitiator()
          Returns the FolderPanel instance that initiated the drag operation.
static boolean isDragInitiatedByMucommander()
          Returns true if the current drag has been initiated by muCommander, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DnDContext

public DnDContext()
Method Detail

isDragInitiatedByMucommander

public static boolean isDragInitiatedByMucommander()
Returns true if the current drag has been initiated by muCommander, i.e. *not* by another application. The returned value has a meaning only if a drag operation is currently being performed.


getDragInitiator

public static FolderPanel getDragInitiator()
Returns the FolderPanel instance that initiated the drag operation. This method returns null if the current drag has not been initiated by muCommander.


getDragGestureModifiersEx

public static int getDragGestureModifiersEx()
Returns the extended modifiers that are currently pressed while dragging. This method returns 0 if the current drag has not been initiated by muCommander.



This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard