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".


Variable Index

 o ch
 o haveHost
 o host
 o ls
 o tf

Constructor Index

 o QueryApplet()

Method Index

 o 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).
 o 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.
 o performFindAndReport(String)
Trigger QUERY FIND and parse resulting REPORT, if entries are found
 o performQuery()
Perform host transaction depending on query type selected by user

Variables

 o host
 HostIO host
 o haveHost
 boolean haveHost
 o ch
 Choice ch
 o tf
 TextField tf
 o ls
 List ls

Constructors

 o QueryApplet
 public QueryApplet()

Methods

 o 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
 o 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
 o performQuery
 void performQuery()
Perform host transaction depending on query type selected by user

 o performFindAndReport
 void performFindAndReport(String findCmd)
Trigger QUERY FIND and parse resulting REPORT, if entries are found