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