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: /**
16: * The Interface for a source of drag and drop events. A component must implement this interface to be dragable.
17: * @author ole
18: */
19: public interface DragSource {
20:
21: /**
22: * Getter for the property if dragging is enabled on this Component.
23: * @return if dragging is enabled on this component
24: */
25: boolean isDragEnabled();
26:
27: /**
28: * Setter for the property if dragging is enabled on this Component.
29: * Don't forget to register the component with the @link{DragAndDropManager}
30: * @param dragEnabled should the component be draggable?
31: */
32: void setDragEnabled(boolean dragEnabled);
33: }
|