org.openscience.jmol.app

Class FileDropper

public class FileDropper extends Object implements DropTargetListener

A simple Dropping class to allow files to be dragged onto a target. It supports drag-and-drop of files from file browsers, and CML text from editors, e.g. jEdit.

Note that multiple drops are not thread safe.

Author: Billy

Field Summary
Stringfd_oldFileName
PropertyChangeSupportfd_propSupport
static StringFD_PROPERTY_FILENAME
static StringFD_PROPERTY_INLINE
Constructor Summary
FileDropper()
Method Summary
voidaddPropertyChangeListener(PropertyChangeListener l)
voiddragEnter(DropTargetDragEvent dtde)
voiddragExit(DropTargetEvent dtde)
voiddragOver(DropTargetDragEvent dtde)
voiddrop(DropTargetDropEvent dtde)
voiddropActionChanged(DropTargetDragEvent dtde)
voidremovePropertyChangeListener(PropertyChangeListener l)

Field Detail

fd_oldFileName

private String fd_oldFileName

fd_propSupport

private PropertyChangeSupport fd_propSupport

FD_PROPERTY_FILENAME

public static final String FD_PROPERTY_FILENAME

FD_PROPERTY_INLINE

public static final String FD_PROPERTY_INLINE

Constructor Detail

FileDropper

public FileDropper()

Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)

dragEnter

public void dragEnter(DropTargetDragEvent dtde)

dragExit

public void dragExit(DropTargetEvent dtde)

dragOver

public void dragOver(DropTargetDragEvent dtde)

drop

public void drop(DropTargetDropEvent dtde)

dropActionChanged

public void dropActionChanged(DropTargetDragEvent dtde)

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)