01: /*
02: * CONFIDENTIAL AND PROPRIETARY SOURCE CODE OF
03: * NETSCAPE COMMUNICATIONS CORPORATION
04: *
05: * Copyright (c) 1996 Netscape Communications Corporation.
06: * All Rights Reserved.
07: * Use of this Source Code is subject to the terms of the applicable
08: * license agreement from Netscape Communications Corporation.
09: */
10:
11: package graphical;
12:
13: import netscape.application.DragSession;
14: import netscape.application.Image;
15: import netscape.application.View;
16:
17: /**
18: Everything is public for now.
19: I'm in a hurry and don't have time to work out
20: the right thing.
21: */
22: public class DragArgument {
23:
24: public static final int DRAGDROPPED = 1001;
25:
26: public int commandType;
27: public Object destination;
28: public Object destinationData;
29: public Object source;
30: public Object sourceData;
31:
32: public DragArgument(int commandType, Object destination,
33: Object destinationData, Object source, Object sourceData) {
34: this .commandType = commandType;
35: this .destination = destination;
36: this .destinationData = destinationData;
37: this .source = source;
38: this .sourceData = sourceData;
39: }
40:
41: public String toString() {
42: return "DragArgument:" + " (" + Header.VERSION + ")" + "\n"
43: + "\t" + "commandType: " + commandType + "\n" + "\t"
44: + "destination: " + destination + "\n" + "\t"
45: + "destinationData: " + destinationData + "\n" + "\t"
46: + "source: " + source + "\n" + "\t" + "sourceData: "
47: + sourceData + "\n";
48: }
49: }
|