Source code: jpl2/common/gui/DragDropController.java
1 /***********************************************************************
2 * JavaPsionLink 2.0, a java implementation of the psion link protocol
3 * Copyright (C) 2002, 2003 John S Montgomery (john.montgomery@lineone.net)
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation; either version 2.1 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 ************************************************************************/
19 /*
20 * Created on 17-Sep-2003
21 *
22 */
23 package jpl2.common.gui;
24
25 import java.awt.Component;
26
27 /**
28 * An interface for drag'n'drop of files.
29 * @author john
30 *
31 * DragDropController
32 */
33 public interface DragDropController {
34
35 /** Attach the controller to a component.
36 *
37 * @param component
38 */
39 public void install( Component component );
40
41 public void addDragListener( DragListener listener );
42
43 public void addDropListener( DropListener listener );
44
45 }