Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jempeg.empeg.emplode.action
Class AbstractFileDropTargetListener  view AbstractFileDropTargetListener download AbstractFileDropTargetListener.java

java.lang.Object
  extended byorg.jempeg.empeg.emplode.action.AbstractFileDropTargetListener
All Implemented Interfaces:
java.awt.dnd.DropTargetListener, java.util.EventListener
Direct Known Subclasses:
TableDropTargetListener, TreeDropTargetListener

public abstract class AbstractFileDropTargetListener
extends java.lang.Object
implements java.awt.dnd.DropTargetListener

AbstractFileDropTargetListener defines the capabilites that are common to dragging-and-dropping files from the native filesystem onto either the playlist tree or playlist table.

Version:
$Revision: 1.13 $

Field Summary
private  org.jempeg.empeg.emplode.Emplode myEmplode
           
private  javax.swing.JTable myTable
           
 
Constructor Summary
AbstractFileDropTargetListener(org.jempeg.empeg.emplode.Emplode _emplode, javax.swing.JTable _table)
           
 
Method Summary
 void dragEnter(java.awt.dnd.DropTargetDragEvent _event)
          Called when the cursor hotspot enters a drop site which will accept the drag.
 void dragExit(java.awt.dnd.DropTargetEvent _event)
          Called when the cursor hotspot moves outside of a drop site which will accept the drag.
 void dragOver(java.awt.dnd.DropTargetDragEvent _event)
          Called when the cursor hotspot moves inside of a drop site which will accept the drag.
 void drop(java.awt.dnd.DropTargetDropEvent _event)
          Called when the drag operation has terminated with a drop.
 void dropActionChanged(java.awt.dnd.DropTargetDragEvent _event)
          Called when the user modifies the drop gesture.
protected abstract  org.jempeg.empeg.emplode.model.EmpegPlaylistTreeNodeIfc getPlaylistTreeNode(java.awt.dnd.DropTargetDropEvent _event)
           
protected  javax.swing.JTable getTable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myEmplode

private org.jempeg.empeg.emplode.Emplode myEmplode

myTable

private javax.swing.JTable myTable
Constructor Detail

AbstractFileDropTargetListener

public AbstractFileDropTargetListener(org.jempeg.empeg.emplode.Emplode _emplode,
                                      javax.swing.JTable _table)
Method Detail

dragEnter

public void dragEnter(java.awt.dnd.DropTargetDragEvent _event)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the cursor hotspot enters a drop site which will accept the drag.

Specified by:
dragEnter in interface java.awt.dnd.DropTargetListener

dragOver

public void dragOver(java.awt.dnd.DropTargetDragEvent _event)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the cursor hotspot moves inside of a drop site which will accept the drag.

Specified by:
dragOver in interface java.awt.dnd.DropTargetListener

dropActionChanged

public void dropActionChanged(java.awt.dnd.DropTargetDragEvent _event)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the user modifies the drop gesture. This is often the case when additional mouse or key events are received during the drag.

Specified by:
dropActionChanged in interface java.awt.dnd.DropTargetListener

dragExit

public void dragExit(java.awt.dnd.DropTargetEvent _event)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the cursor hotspot moves outside of a drop site which will accept the drag. This could also happen if the drop site is no longer active, or no longer accepts the drag.

Specified by:
dragExit in interface java.awt.dnd.DropTargetListener

drop

public void drop(java.awt.dnd.DropTargetDropEvent _event)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the drag operation has terminated with a drop.

Specified by:
drop in interface java.awt.dnd.DropTargetListener

getTable

protected javax.swing.JTable getTable()

getPlaylistTreeNode

protected abstract org.jempeg.empeg.emplode.model.EmpegPlaylistTreeNodeIfc getPlaylistTreeNode(java.awt.dnd.DropTargetDropEvent _event)