edu.mit.ai.psg.jexa
Class Jexa

java.lang.Object
  |
  +--edu.mit.ai.psg.ui.outlines.Outliner
        |
        +--edu.mit.ai.psg.jexa.Jexa

public class Jexa
extends Outliner

Jexa: a Java examiner to examine objects via expandable/collapsible outlines.

Jexa may need to be initialized before use. Call Jexa.initialize(); (static initializers aren't always invoked as of Java 1.1.6.)

Standard call to start Jexa is Jexa.examine(Object);

Popup menu on object allows Jexa.mousedObject to be set to the object, so user may navigate through object, then call methods using the object (e.g., using a source code interpreter -- see jevaESUI). Jexa also adds ObjectOutline.outliner to the popup menu.

Author:
CarlManning, caroma@ai.mit.edu
Copyright (c) 1997, 1998, 1999 Massachusetts Institute of Technology
See Also:
edu.mit.ai.psg.jexa, Outliner, edu.mit.ai.psg.jevaESUI

Field Summary
static boolean isInitialized
           
static Object mousedObject
          mousedObject: Public variable which can be set via menu while browsing
 
Fields inherited from class edu.mit.ai.psg.ui.outlines.Outliner
defaultGenerator, generators, outliner
 
Constructor Summary
Jexa()
           
 
Method Summary
 void addPopupMenuItems(PopupMenu menu, Object obj, Component component)
          addPopUpMenuItems: Adds general menu items to components in outline, including the "set Jexa.mousedObject" menu item.
static Object examine(Object obj)
          Starts an outline frame, and returns obj
 Vector getAllGenerators(Object obj)
          Adds ObjectOutline.outlineGenerator
static String getCopyright()
           
static String getHomepage()
           
static String getNoWarranty()
           
static String getVersion()
           
static void initialize()
          Call initialize before use.
static Component makeOutlineComponent(Object obj)
          Generate a new java.awt.Component for obj to add to an outline.
static Frame makeOutlineFrame(Object obj)
          Create a Frame window with an outline for obj and returns frame
 
Methods inherited from class edu.mit.ai.psg.ui.outlines.Outliner
addListeners, getExactOutlineGenerator, getMostSpecificGenerator, getMostSpecificGeneratorImpl, makeOutlineComponentImpl, makeOutlineFrame, makeOutlineFrameImpl, makeOutlineFrameImpl, putOutlineGenerator, removeOutlineGenerator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isInitialized

public static boolean isInitialized

mousedObject

public static Object mousedObject
mousedObject: Public variable which can be set via menu while browsing
Constructor Detail

Jexa

public Jexa()
Method Detail

getCopyright

public static String getCopyright()

getNoWarranty

public static String getNoWarranty()

getVersion

public static String getVersion()

getHomepage

public static String getHomepage()

examine

public static Object examine(Object obj)
Starts an outline frame, and returns obj

makeOutlineFrame

public static Frame makeOutlineFrame(Object obj)
Create a Frame window with an outline for obj and returns frame

makeOutlineComponent

public static Component makeOutlineComponent(Object obj)
Generate a new java.awt.Component for obj to add to an outline. Uses generator for obj's most specific class or interface. (static method for other tools to call)

initialize

public static void initialize()
Call initialize before use. Initializes Outliner with generators and sets outliner.
See Also:
Outliner

getAllGenerators

public Vector getAllGenerators(Object obj)
Adds ObjectOutline.outlineGenerator
Overrides:
getAllGenerators in class Outliner

addPopupMenuItems

public void addPopupMenuItems(PopupMenu menu,
                              Object obj,
                              Component component)
addPopUpMenuItems: Adds general menu items to components in outline, including the "set Jexa.mousedObject" menu item. Extend this method to add additional popup menu items to all outline. components (if extending, be sure to call super.addPopupMenuItems).
Overrides:
addPopupMenuItems in class Outliner

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-bugs@ai.mit.edu