org.hfbk.util.ScriptShell Class Reference

Inheritance diagram for org.hfbk.util.ScriptShell:

Inheritance graph
[legend]
Collaboration diagram for org.hfbk.util.ScriptShell:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ScriptShell (VisClient client)

Static Public Member Functions

static void main (String[] args)

Package Attributes

String convenience
Frame frame = new Frame("Vis/Shell")
ShellPanel panel

Detailed Description

opens a window with a command shell to issue ECMAScript commands. objects can be put by put(..) which are accessable in the scripts top scope.

Definition at line 19 of file ScriptShell.java.


Constructor & Destructor Documentation

org.hfbk.util.ScriptShell.ScriptShell ( VisClient  client  ) 

Definition at line 54 of file ScriptShell.java.

References org.hfbk.util.ScriptShell.convenience, org.hfbk.util.Scripter.evaluate(), org.hfbk.util.ScriptShell.frame, org.hfbk.util.ScriptShell.panel, and org.hfbk.util.Scripter.put().

Referenced by org.hfbk.util.ScriptShell.main().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

static void org.hfbk.util.ScriptShell.main ( String[]  args  )  [static]

Definition at line 83 of file ScriptShell.java.

References org.hfbk.util.ScriptShell.ScriptShell().

Here is the call graph for this function:


Member Data Documentation

String org.hfbk.util.ScriptShell.convenience [package]

Initial value:

                "function list(object){" +
                "       var methods=''; " +
                "       for(name in object){" +
                "               var e=object[name];" +
                "               var t=typeof e;" +
                "               if (t!='function')" +
                "                       print (name+': '+e); " +
                "       }" +
                "}"+
                "function fields(object){" +
                "       cl=object.getClass();" +
                "       print(cl.getFields());" +
                "}"+
                "function methods(object){" +
                "       cl=object.getClass(); " +
                "       print(cl.getMethods()); " +
                "} " +
                "function print(object){" +
                "       shell.println(object);" +
                "} " +
                "function kill(visnode){" +
                "       visnode.parent.remove(visnode);" +
                "} " +
                "function exit(){" +
                "       shell.getParent().dispose();" +
                "}" +
                ""

Definition at line 21 of file ScriptShell.java.

Referenced by org.hfbk.util.ScriptShell.ScriptShell().

Frame org.hfbk.util.ScriptShell.frame = new Frame("Vis/Shell") [package]

Definition at line 51 of file ScriptShell.java.

Referenced by org.hfbk.util.ScriptShell.ScriptShell().

ShellPanel org.hfbk.util.ScriptShell.panel [package]

Definition at line 52 of file ScriptShell.java.

Referenced by org.hfbk.util.ScriptShell.ScriptShell().


The documentation for this class was generated from the following file:
Generated on Tue Apr 7 17:57:51 2009 for visclient by  doxygen 1.5.1