Class ProbeFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ProbeFrame extends JFrame
The probe window class. It is able to inspect content of objects. If the probed object implements the IProbeFields interface the inspected fields are the only ones specified by the getProbeFields() method. Otherwise, the object will be completely inspected.

Title: JAS

Description: Java Agent-based Simulation library

Copyright (C) 2002 Michele Sonnessa

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
Author:
Michele Sonnessa

See Also:
  • Field Details

    • probedObject

      protected Object probedObject
  • Constructor Details

    • ProbeFrame

      public ProbeFrame(Object o, String name)
      This constructor checks if the given object implements the IProbeFields interface.
      Parameters:
      o - The object to probe.
      name - The title of the frame window.
    • ProbeFrame

      public ProbeFrame(Object o, String name, boolean privateFields)
      This constructor ignores the IProbeFields interface and shows all the fields of the object.
      Parameters:
      o - The object to probe.
      name - The title of the frame window.
      privateFields - If true the probe will show only the public properties and method. If false it will be shown public, protected and private fields.
  • Method Details

    • dispose

      public void dispose()
      Show off the frame window.
      Overrides:
      dispose in class Window