01: /*
02: * BeanEventParam.java --
03: *
04: * This class stores the parameters that are passed to the event
05: * method when an event is fired.
06: *
07: * Copyright (c) 1997 Sun Microsystems, Inc.
08: *
09: * See the file "license.terms" for information on usage and
10: * redistribution of this file, and for a DISCLAIMER OF ALL
11: * WARRANTIES.
12: *
13: * RCS: @(#) $Id: BeanEventParamSet.java,v 1.1.1.1 1998/10/14 21:09:13 cvsadmin Exp $
14: */
15:
16: package tcl.lang;
17:
18: import java.beans.*;
19:
20: /*
21: * This class stores the parameters that are passed to the event
22: * method when an event is fired.
23: */
24:
25: class BeanEventParamSet {
26:
27: /*
28: * The types of the parameters.
29: */
30:
31: Class paramTypes[];
32:
33: /*
34: * The parameters to the event method that has been fired.
35: */
36:
37: Object params[];
38:
39: /*
40: *----------------------------------------------------------------------
41: *
42: * BeanEventParamSet --
43: *
44: * Creates a new BeanEventParamSet instance.
45: *
46: * Side effects:
47: * Member fields are initialized.
48: *
49: *----------------------------------------------------------------------
50: */
51:
52: BeanEventParamSet(Class t[], // Initial value for paramTypes.
53: Object p[]) // Initial value for params.
54: {
55: paramTypes = t;
56: params = p;
57: }
58:
59: } // end BeanEventParam
|