01: /*
02: * Copyright (C) 2004 NNL Technology AB
03: * Visit www.infonode.net for information about InfoNode(R)
04: * products and how to contact NNL Technology AB.
05: *
06: * This program is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU General Public License
08: * as published by the Free Software Foundation; either version 2
09: * of the License, or (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
19: * MA 02111-1307, USA.
20: */
21:
22: // $Id: ChildDropInfo.java,v 1.4 2005/12/04 13:46:04 jesper Exp $
23: package net.infonode.docking.drop;
24:
25: import net.infonode.docking.DockingWindow;
26:
27: import java.awt.*;
28:
29: /**
30: * <p>
31: * Information about an ongoing child drop i.e. when a child window
32: * of the drop window is asked if it accepts the drop.
33: * </p>
34: *
35: * <p>
36: * A drop is started at the root of the window tree and then passed
37: * down the tree to the appropriate child. Rejecting a child drop
38: * makes it possible to disable all types of drops in that subtree
39: * of the drop window.
40: * </p>
41: *
42: * <p>
43: * A child drop can be performed on windows that can have children,
44: * i.e. {@link net.infonode.docking.RootWindow},
45: * {@link net.infonode.docking.SplitWindow},
46: * {@link net.infonode.docking.TabWindow},
47: * {@link net.infonode.docking.WindowBar} or
48: * {@link net.infonode.docking.FloatingWindow}.
49: * </p>
50: *
51: * @author $Author: jesper $
52: * @version $Revision: 1.4 $
53: * @since IDW 1.4.0
54: */
55: public class ChildDropInfo extends DropInfo {
56: private DockingWindow childWindow;
57:
58: public ChildDropInfo(DockingWindow window,
59: DockingWindow dropWindow, Point point,
60: DockingWindow childWindow) {
61: super (window, dropWindow, point);
62: this .childWindow = childWindow;
63: }
64:
65: /**
66: * Returns the current child window in the drop window that will
67: * be asked if it accepts any type of drops.
68: *
69: * @return the child window
70: */
71: public DockingWindow getChildWindow() {
72: return childWindow;
73: }
74: }
|