1   /*
2    * TestBean.java Created on May 3, 2001, 5:14 PM
3    */
4   
5   package nl.tudelft.dsol.introspection.beans;
6   
7   import java.awt.Color;
8   import java.awt.Font;
9   import java.io.Serializable;
10  
11  import nl.tudelft.simulation.logger.Logger;
12  
13  /***
14   * @author (c) 2003 <a href="http://www.tudelft.nl">Delft University of
15   *         Technology </a>, Delft, the Netherlands <br>
16   *         <a href="http://www.tbm.tudelft.nl">Faculty of Technology, Policy and
17   *         Management </a> <br>
18   *         <a href="http://www.sk.tbm.tudelft.nl">Department of System
19   *         Engineering </a> <br>
20   *         Main researcher : <a
21   *         href="http://www.tbm.tudelft.nl/webstaf/alexandv/">Dr. Ir. A.
22   *         Verbraeck <a/><br>
23   *         Assistant researchers <a href="http://www.peter-jacobs.com">Ir.
24   *         P.H.M. Jacobs </a> and <a
25   *         href="http://www.tbm.tudelft.nl/webstaf/nielsl">Ir. N.A. Lang </a>
26   */
27  public class SubTestBean implements Serializable
28  {
29      /*** Holds value of property firstProperty. */
30      private String firstProperty = "First ;-)";
31  
32      /*** Holds value of property secondProperty. */
33      private String secondProperty = "Second ;-)";
34  
35      /*** Holds value of property intProp. */
36      private int intProp = 1717;
37  
38      /*** Holds value of property color. */
39      private Color color = Color.BLUE;
40  
41      /*** Holds value of property font. */
42      private Font font;
43  
44      /*** Creates new TestBean */
45      public SubTestBean()
46      {
47          super();
48      }
49  
50      /***
51       * Getter for property firstProperty.
52       * 
53       * @return Value of property firstProperty.
54       */
55      public String getFirstProperty()
56      {
57          Logger
58                  .info(this, "getFirstProperty", this.firstProperty
59                          + "requested.");
60          return this.firstProperty;
61      }
62  
63      /***
64       * Setter for property firstProperty.
65       * 
66       * @param firstProperty New value of property firstProperty.
67       */
68      public void setFirstProperty(final String firstProperty)
69      {
70          Logger.info(this, "setFirstProperty", this.firstProperty + "set.");
71          this.firstProperty = firstProperty;
72      }
73  
74      /***
75       * Getter for property secondProperty.
76       * 
77       * @return Value of property secondProperty.
78       */
79      public String getSecondProperty()
80      {
81          Logger.info(this, "getSecondProperty", this.secondProperty
82                  + "requested.");
83          return this.secondProperty;
84      }
85  
86      /***
87       * Setter for property secondProperty.
88       * 
89       * @param secondProperty New value of property secondProperty.
90       */
91      public void setSecondProperty(final String secondProperty)
92      {
93          Logger.info(this, "setSecondProperty", this.secondProperty + "set.");
94          this.secondProperty = secondProperty;
95      }
96  
97      /***
98       * Getter for property intProp.
99       * 
100      * @return Value of property intProp.
101      */
102     public int getIntProp()
103     {
104         Logger.info(this, "getIntProp", this.intProp + "requested.");
105         return this.intProp;
106     }
107 
108     /***
109      * Setter for property intProp.
110      * 
111      * @param intProp New value of property intProp.
112      */
113     public void setIntProp(final int intProp)
114     {
115         Logger.info(this, "setIntProp", this.intProp + "set.");
116         this.intProp = intProp;
117     }
118 
119     /***
120      * Getter for property color.
121      * 
122      * @return Value of property color.
123      */
124     public Color getColor()
125     {
126         return this.color;
127     }
128 
129     /***
130      * Setter for property color.
131      * 
132      * @param color New value of property color.
133      */
134     public void setColor(final Color color)
135     {
136         this.color = color;
137     }
138 
139     /***
140      * Getter for property font.
141      * 
142      * @return Value of property font.
143      */
144     public Font getFont()
145     {
146         return this.font;
147     }
148 
149     /***
150      * Setter for property font.
151      * 
152      * @param font New value of property font.
153      */
154     public void setFont(final Font font)
155     {
156         this.font = font;
157     }
158 
159     /***
160      * @see java.lang.Object#toString()
161      */
162     @Override
163     public String toString()
164     {
165         return "" + this.getColor() + this.getFirstProperty() + this.getFont()
166                 + this.getIntProp() + this.getSecondProperty();
167     }
168 }