1
2
3
4
5
6
7
8
9
10
11
12
13
14 package org.gscg.gameleader.animation2D.mouse;
15
16 import java.io.Serializable;
17
18 /***
19 * Contains data for a field for client-side introspected objects on an
20 * animation panel.
21 * <p>
22 *
23 * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
24 * Delft, the Netherlands. All rights reserved.
25 *
26 * See for project information <a href="http://www.simulation.tudelft.nl/">
27 * www.simulation.tudelft.nl </a>.
28 *
29 * The source code and binary code of this software is proprietary information
30 * of Delft University of Technology.
31 *
32 * @author <a
33 * href="http://www.tbm.tudelft.nl/webstaf/stijnh/index.htm">Stijn-Pieter
34 * van Houten </a>
35 * @version $Revision: 1.1 $ $Date: 2005/06/16 12:33:54 $
36 * @since 1.1.2
37 */
38 public class IntrospectedFieldData implements Serializable
39 {
40 /*** the serial version uid */
41 private static final long serialVersionUID = 11L;
42
43 /*** the name */
44 private String name = null;
45
46 /*** the value */
47 private Serializable value = null;
48
49 /*** editable or not */
50 private boolean editable = false;
51
52 /***
53 * constructs a new IntrospectedFieldData
54 *
55 * @param name the name of the field
56 * @param value the value
57 * @param editable editable or not
58 */
59 public IntrospectedFieldData(final String name, final Serializable value,
60 final boolean editable)
61 {
62 super();
63 this.name = name;
64 this.value = value;
65 this.editable = editable;
66 }
67
68 /***
69 * @return Returns editable
70 */
71 public boolean isEditable()
72 {
73 return this.editable;
74 }
75
76 /***
77 * @return Returns the name
78 */
79 public String getName()
80 {
81 return this.name;
82 }
83
84 /***
85 * @return Returns the value
86 */
87 public Serializable getValue()
88 {
89 return this.value;
90 }
91
92 /***
93 * Sets the value Since we assume that this is always a number. In the
94 * IntrospectionUtil we expect this value indeed to be of type Number after
95 * client-side a change has been made using the introspection dialog.
96 *
97 * @param value the value to set
98 */
99 public void setValue(final Number value)
100 {
101 this.value = value;
102 }
103 }