1
2
3
4
5
6
7
8 package nl.tudelft.dsol.introspection;
9
10 import nl.tudelft.dsol.introspection.beans.GUIBean;
11 import nl.tudelft.simulation.introspection.beans.BeanIntrospector;
12 import nl.tudelft.simulation.introspection.fields.FieldIntrospector;
13 import nl.tudelft.simulation.introspection.gui.IntroSpectionDialog;
14 import nl.tudelft.simulation.introspection.gui.ObjectTableModel;
15
16 /***
17 * A test program for the GUI package.
18 * <p>
19 * (c) copyright 2002-2005-2004 <a href="http://www.simulation.tudelft.nl">Delft
20 * University of Technology </a>, the Netherlands. <br>
21 * See for project information <a
22 * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
23 * License of use: <a href="http://www.gnu.org/copyleft/lesser.html">Lesser
24 * General Public License (LGPL) </a>, no warranty.
25 *
26 * @author <a
27 * href="http://web.eur.nl/fbk/dep/dep1/Introduction/Staff/People/Lang">Niels
28 * Lang </a><a href="http://www.peter-jacobs.com/index.htm">Peter
29 * Jacobs </a>
30 * @version 1.1 Apr 15, 2004
31 * @since 1.5
32 */
33 public final class PTestGUI
34 {
35 /***
36 * constructs a new PTestGUI
37 */
38 private PTestGUI()
39 {
40 super();
41
42 }
43
44 /***
45 * executes the PTestSorter
46 *
47 * @param args the command-line arguments
48 */
49 public static void main(final String[] args)
50 {
51 Object introspected = new GUIBean();
52 new IntroSpectionDialog("Test IntrospectionField introspector",
53 new ObjectTableModel(introspected, new FieldIntrospector()));
54 new IntroSpectionDialog("Test Bean introspector", new ObjectTableModel(
55 introspected, new BeanIntrospector()));
56 }
57 }