01: /*
02: * Copyright 2000,2005 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13: package org.wings.dnd;
14:
15: import org.wings.event.SComponentDropListener;
16: import java.util.List;
17:
18: /**
19: * The Interface for the taget of drag and drop events. A component must implement this interface to able to drop components on it..
20: *
21: * @author ole
22: */
23: public interface DropTarget {
24: /**
25: * add a DropListener to this Component.
26: * Don't forget to register the component with the @link{DragAndDropManager}
27: * @param listener the listener to add
28: */
29: void addComponentDropListener(SComponentDropListener listener);
30:
31: /**
32: * get the List of DropListeners
33: * @return the list of listeners
34: */
35: List<SComponentDropListener> getComponentDropListeners();
36: }
|