Class QueryApplet
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----QueryApplet
- public class QueryApplet
- extends Applet
QueryApplet.java runs MPE program via Telnet and provides GUI front-end.
This is a quick & dirty prototype, but it helps to "get the idea".
It uses the Java Telnet implementation from the Java Telnet Applet
available at "http://www.first.gmd.de/persons/leo/java/Telnet".
-
ch
-
-
haveHost
-
-
host
-
-
ls
-
-
tf
-
-
QueryApplet()
-
-
destroy()
- The applet keeps the telnet connection open and MPE program loaded
until the web browser decides to destroy the applet (typically when
the user moves "far away" from the applet web page).
-
init()
- The applet opens telnet connection to host, logs on and launches the
MPE program to be interacted with, prepares the GUI for the user and
then translates user actions to appropriate transactions with the host
application.
-
performFindAndReport(String)
- Trigger QUERY FIND and parse resulting REPORT, if entries are found
-
performQuery()
- Perform host transaction depending on query type selected by user
host
HostIO host
haveHost
boolean haveHost
ch
Choice ch
tf
TextField tf
ls
List ls
QueryApplet
public QueryApplet()
init
public void init()
- The applet opens telnet connection to host, logs on and launches the
MPE program to be interacted with, prepares the GUI for the user and
then translates user actions to appropriate transactions with the host
application.
- Overrides:
- init in class Applet
destroy
public void destroy()
- The applet keeps the telnet connection open and MPE program loaded
until the web browser decides to destroy the applet (typically when
the user moves "far away" from the applet web page).
- Overrides:
- destroy in class Applet
performQuery
void performQuery()
- Perform host transaction depending on query type selected by user
performFindAndReport
void performFindAndReport(String findCmd)
- Trigger QUERY FIND and parse resulting REPORT, if entries are found