|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.TransferHandler
org.globus.cog.gridface.impl.desktop.dnd.DesktopTransferHandler
| Field Summary | |
protected JComponent |
dragComponent
Component where drag was initiated |
protected int |
dragPoint_x
Point where drag initiated on the component |
protected int |
dragPoint_y
|
protected JComponent |
dropComponent
Component on which drop happened |
protected static org.globus.cog.gridface.impl.desktop.dnd.DesktopTransferHandler.DropHandler |
dropHandler
DropHandler to handle drop actions during drag |
protected int |
dropPoint_x
Point where drop happened on Desktop |
protected int |
dropPoint_y
|
static boolean |
isImportDesktopIconGroup
|
static boolean |
isSystemImportToDesktop
|
static boolean |
isSystemLinuxImportToDesktop
|
static boolean |
isSystemWindowsImportToDesktop
|
| Fields inherited from class javax.swing.TransferHandler |
COPY, COPY_OR_MOVE, MOVE, NONE |
| Constructor Summary | |
DesktopTransferHandler()
|
|
| Method Summary | |
boolean |
canImport(JComponent dropComponent,
DataFlavor[] flavors)
|
protected Transferable |
createTransferable(JComponent dragComponent)
Third method called during drag and drop. |
void |
exportAsDrag(JComponent comp,
InputEvent e,
int action)
First method being called to initiate drag, usually by mouseDragged in MouseMotionListener. |
JComponent |
getDragComponent()
|
Point |
getDragPoint()
|
JComponent |
getDropComponent()
|
static org.globus.cog.gridface.impl.desktop.dnd.DesktopTransferHandler.DropHandler |
getDropHandler()
|
Point |
getDropPoint()
|
int |
getSourceActions(JComponent c)
Second method called after initiating drag to get supported actions |
boolean |
importData(JComponent c,
Transferable t)
Most important method during drop operation. |
void |
setDragComponent(JComponent dragComponent)
|
void |
setDragPoint(Point dragPoint)
|
void |
setDropComponent(JComponent dropComponent)
|
void |
setDropPoint(Point dropPoint)
|
| Methods inherited from class javax.swing.TransferHandler |
exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean isSystemImportToDesktop
public static boolean isSystemLinuxImportToDesktop
public static boolean isSystemWindowsImportToDesktop
public static boolean isImportDesktopIconGroup
protected int dragPoint_x
protected int dragPoint_y
protected int dropPoint_x
protected int dropPoint_y
protected JComponent dragComponent
protected JComponent dropComponent
protected static org.globus.cog.gridface.impl.desktop.dnd.DesktopTransferHandler.DropHandler dropHandler
| Constructor Detail |
public DesktopTransferHandler()
| Method Detail |
public void exportAsDrag(JComponent comp,
InputEvent e,
int action)
public int getSourceActions(JComponent c)
protected Transferable createTransferable(JComponent dragComponent)
public boolean canImport(JComponent dropComponent,
DataFlavor[] flavors)
public boolean importData(JComponent c,
Transferable t)
public static org.globus.cog.gridface.impl.desktop.dnd.DesktopTransferHandler.DropHandler getDropHandler()
public Point getDropPoint()
public void setDropPoint(Point dropPoint)
public Point getDragPoint()
public void setDragPoint(Point dragPoint)
public JComponent getDragComponent()
public void setDragComponent(JComponent dragComponent)
public JComponent getDropComponent()
public void setDropComponent(JComponent dropComponent)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||