Package samer.applet

Class JAppletShell

  • java.lang.Object
    • samer.applet.JAppletShell


  • public class JAppletShell
    extends java.lang.Object
    This is a Shell that uses Applets to form a GUI. The basic idea is that each applet that gets created on a web page registers itself with shell as an available window, or perhaps as a special window like a console or viewables container. Then, whenever a script or something asks for a window, it gets to use one of the applets.
    • Constructor Detail

      • JAppletShell

        protected JAppletShell()
    • Method Detail

      • initialise

        public static void initialise(java.applet.Applet applet)
      • getCommands

        public void getCommands(Agent.Registry r)
      • execute

        public void execute(java.lang.String cmd,
                            Environment env)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • exit

        public void exit()
      • loadargs

        public void loadargs(java.net.URL url)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • saveargs

        public void saveargs(java.net.URL url)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • runscript

        public void runscript(java.net.URL url)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • put

        protected void put(java.lang.Class a,
                           java.lang.Class b)
      • registerWindow

        public static void registerWindow(Shell.Window win,
                                          java.lang.String name)
      • deregisterWindow

        public static void deregisterWindow(Shell.Window win,
                                            java.lang.String name)
      • dummyFrame

        public static java.awt.Frame dummyFrame()
      • getDialog

        public Shell.Dialog getDialog(java.lang.String title)
      • getWindow

        public Shell.Window getWindow(java.lang.String title)
      • getViewerFor

        public Viewer getViewerFor(Viewable v)
      • status

        public void status(java.lang.String msg)
      • trace

        public void trace(java.lang.String msg)
      • print

        public void print(java.lang.String msg)
      • getPrintWriter

        public java.io.PrintWriter getPrintWriter()
      • registerAgent

        public void registerAgent(Agent a)
      • deregisterAgent

        public void deregisterAgent(Agent a)
      • registerViewable

        public void registerViewable(Viewable v)
      • deregisterViewable

        public void deregisterViewable(Viewable v)
      • registerButtons

        public void registerButtons(java.awt.Container c)
      • deregisterButtons

        public void deregisterButtons(java.awt.Container c)
      • createViewerPanel

        public Viewer createViewerPanel(Viewer vwr)
      • createLabel

        public java.awt.Component createLabel(java.lang.String txt)
      • createButtonsFor

        public java.awt.Container createButtonsFor(Agent agent)
      • createNumberViewer

        public NumberViewer createNumberViewer(java.lang.String label,
                                               int flags,
                                               NumberSink s)
      • exposeCommands

        public void exposeCommands(Agent agent)
      • expose

        public static void expose()
      • exposeViewables

        public void exposeViewables()
      • releaseConsoleContainer

        public void releaseConsoleContainer(java.awt.Container c)
      • setConsoleContainer

        public void setConsoleContainer(java.awt.Container c)