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 Summary
Constructors Modifier Constructor and Description protected
JAppletShell()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.Container
createButtonsFor(Agent agent)
java.awt.Component
createLabel(java.lang.String txt)
NumberViewer
createNumberViewer(java.lang.String label, int flags, NumberSink s)
Viewer
createViewerPanel(Viewer vwr)
void
deregisterAgent(Agent a)
void
deregisterButtons(java.awt.Container c)
void
deregisterViewable(Viewable v)
static void
deregisterWindow(Shell.Window win, java.lang.String name)
static java.awt.Frame
dummyFrame()
void
execute(java.lang.String cmd, Environment env)
void
exit()
static void
expose()
void
exposeCommands(Agent agent)
void
exposeViewables()
void
getCommands(Agent.Registry r)
Shell.Dialog
getDialog(java.lang.String title)
java.io.PrintWriter
getPrintWriter()
Viewer
getViewerFor(Viewable v)
Shell.Window
getWindow(java.lang.String title)
static void
initialise(java.applet.Applet applet)
void
loadargs(java.net.URL url)
void
print(java.lang.String msg)
protected void
put(java.lang.Class a, java.lang.Class b)
void
registerAgent(Agent a)
void
registerButtons(java.awt.Container c)
void
registerViewable(Viewable v)
static void
registerWindow(Shell.Window win, java.lang.String name)
void
releaseConsoleContainer(java.awt.Container c)
void
runscript(java.net.URL url)
void
saveargs(java.net.URL url)
void
setConsoleContainer(java.awt.Container c)
void
status(java.lang.String msg)
void
trace(java.lang.String msg)
-
-
-
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)
-
-