US 6,252,591 B1Grant
Method for mapping a text-oriented user interface to a graphics user interface by means of a class library
Issue Date:2001-06-26
•9 Claims
•3 Drawing Sheets
Abstract
Methods, systems and computer program products are provided for mapping a text-oriented user interface to a graphics user interface by automatically altering properties of control elements of a standard Java class library based on changes in the text-oriented user interface so as to dynamically react to changes in the text-oriented user interface to provide an extended Java class library. A graphics user interface corresponding to the text-oriented user interface may then be generated utilizing the extended Java class library so that the graphics user interface automatically reflects the changes in the text-oriented user interface.
Metadata
Assignee
- International Business Machines Corp.
Inventors
- Hans Gunter Dockweiler
- Joachim Weber
Application Information
Application Number:US 09/099,688
Filing Date:1998-06-18
Priority Date:1997-10-10
Art Unit:7
Classifications
IPC:
G06F 1300
Field of Search:
3453263453393453333453293453353453573453343955004739550045395705395527
Patent Drawings (3 sheets)
Description
[0002] The present invention relates to a method for mapping a text-oriented user interface of a program to a graphics user interface without having to amend the program itself where the graphics user interface can be started from a network environment.
[0003] At the present time there is a very large number of mainframe computer applications which are distinguished by matured functionality, robustness, security and high flexibility. These applications communicate with their users through a text-oriented interface. The application exchanges a data stream which corresponds with the contents of the screen with a terminal and formatted by the terminal is used as a screen mask by the user using a keyboard. For the implementation of the data stream which is exchanged between the mainframe computer and the terminal there are various architectures, the most widespread of which is IBM's 3270 architecture. The IBM 3270 architecture is hereinafter used to represent all other architectures. FIG. 1 shows this type of user interface.
[0004] With the introduction of PCs, however, it has become necessary to make the 3270 interface available to these PCs. For this purpose software programs have been developed which emulate the traditional terminal in a PC window. The interface in this emulator window is still text oriented and operable through the keyboard, since the emulator is limited to reproducing the capabilities of a terminal.
[0005] FIG. 2 shows this type of user interface.
[0006] Since a PC with a graphics user interface offers very much greater user-friendliness, it is desirable to provide mainframe applications also with such a graphics user interface. The most economical approach to this is so-called face-lifting or screen-scraping. For this, the application including its 3270 interface remains unaltered. PC windows are only defined for each screen mask which the graphics interface offers the user and accesses the 3270 data stream for the application page and thus represents input and output values between the fields of the screen mask and the graphics elements of the PC window. Instead of the emulator window, which is no longer in evidence, the user interacts with the PC graphics interface. FIG. 3 shows this type of user interface.
[0007] The interface described in FIG. 2 can be transferred in an Internet/Intranet environment. The mainframe computer takes over the role of a web-server and the 3270 emulator runs within a web browser. The communications protocol between the mainframe computer and emulator is TCP/IP and the emulator is implemented in Java (to enable it to run independent of the operating system and within a web browser).
[0008] At the present time there is no effective method for transferring the above-described process to the Internet/Intranet environment, in order to place a graphics interface on the 3270 interface in this (web browser) environment.
[0009] It is therefore the object of the present invention to provide such a method, which is capable-of representing a text-oriented user interface through a graphics user interface, which can be started without problem from a network environment without the necessity for alterations to the existing application.
[0010] This object is achieved by the features in claims 1 and 10. Preferred embodiments of the present invention are set out in the sub-claims.
[0011] The development tool can be used to produce a graphics mask quickly and simply for each individual text-oriented mask. The graphics masks thus produced can be stored on an Internet/Intranet server and made accessible to specified user groups either free or for a fee. In this case the user may download the masks produced to the working memory of his PC and use them there. This has the advantage that changes in the graphics masks require to be made only on the server. In this way it becomes unnecessary to distribute the software for the amended application to numerous PCs.
[0012] A further advantage of the present invention resides in the fact that the programming of the graphics mask is so simple that the code can also be generated automatically if the PC window has been defined by means of a graphics tool, which permits it to access the window definition through a programmed interface.
[0013] The present invention will be described by means of an example of a preferred embodiment, where
[0014] FIG. 1 shows a mainframe computer with a text-oriented application which communicates with a terminal through a text-oriented user interface.(state of the art),
[0015] FIG. 2 shows a mainframe computer with a text-oriented application which communicates with a PC through an emulation program which generates a textual user interface on the PC (state of the art),
[0016] FIG. 3 shows a mainframe computer with a text-oriented application which communicates with a PC through an emulation program and a face-lifting tool which generates a graphics user interface on the PC (state of the art),
[0017] FIG. 4ashows an implementation of the process in accordance with the invention in a network, where a text-oriented application is installed on a mainframe computer and where this application communicates through an emulation program and a client's graphics user interface (PC or network station) which can be loaded from a server on the network to a client.
[0018] FIG. 4bshows a special environment of FIG. 4awhere the environment is an Internet environment.
[0019] FIG. 4cshows a further special environment of FIG. 4a, where the environment is an Intranet environment.
[0020] By FIG. 5ashows a text-oriented screen mask which should map a graphics screen mask by means of the process in accordance with the invention.
[0021] FIG. 5bshows a graphics user interface corresponding to FIG. 5a,
[0022] FIG. 6 shows a JAVA class library which is a constituent of the present invention,
[0023] FIG. 4bshows a mainframe computer and a PC (network station) which both have Internet access. The text-oriented application is installed on the mainframe computer and is run there. In addition, there is an emulation program which is preferably installed on the PC and is also run there. The emulation program is preferably a program written- in Java which can run under the control of the web browser. In addition, it is also possible to load the emulator through the Internet using the web browser.
[0024] Since the user is working with a graphics user interface instead of with a text-oriented user interface, a program is required which represents the graphics user interface and which communicates with the text-oriented application of the main-frame computer with the aid of the emulator.
[0025] The program is preferably written in a platform-independent programming language such as Java. The graphics user interface is preferably generated with the aid of a class library (Java class library). The class library takes over both the representation of the graphics interface and also the requisite communication with the emulator. Since the Java standard class library is not designed for communication with an emulator it requires communication extensions. The extensions consist, in essence, in transferring data or actions from the text-oriented application to an element of the graphics interface and vice versa. The standard classes for window and control elements available in the Java class library have to be extended:
[0026] to change the properties of the control elements automatically and dynamically at run time.
[0027] to mirror input and output elements between the fields of the text-oriented application and the elements of the PC window in both directions.
[0028] to mirror user actions in the PC window, e.g. pressing a button, to corresponding actions in the text-oriented application.
[0029] This extended class library can be employed to produce a graphics user interface quickly and simply for any text-oriented mask.
[0030] The graphics user interface thus produced can be stored on a server in the Internet and be made accessible to certain user groups free or for a charge. For this, the user can download the user interface produced to the working memory of his PC and run it from there. This has the advantage that changes to the graphics interface only have to be made on the server. This obviates distribution of amended software to numerous PCs.
[0031] A further advantage of the present invention resides in the fact that the programming of the graphics user interface is so simple that the code can be generated automatically if a PC window has been defined by means of a graphics tool which permits access to the window definitions through a programmed interface.
[0032] FIG. 4clikewise shows a mainframe computer and a PC (network station) both of which have access to an Intranet. The comments to FIG. 4bapply accordingly.
[0033] FIG. 5aand FIG. 5bshow an example of a preferred embodiment of the present invention, how a text-oriented mask is represented in a graphics user interface.
[0034] FIG. 5ashows a text-oriented mask. FIG. 5bshows the graphics user interface on the PC which replaces the-text-oriented mask on the user side. In this, the mask title part of the PC window, the field “Input 1” becomes a PC input field, the field “Input 2” becomes a checkbox (Yes/No decision by mouse click) and the description of the three function keys in the screen mask become pushbuttons (initiation of an action by mouse click).
[0035] The extended class library mentioned in the description to FIG. 4b/cprovides classes and functions which bare optimised for the desired behaviour.
[0036] They are built, for example, on the standard classes present in Java. FIG. 6 shows the class hierarchy, which contains only the relevant elements for this embodiment.
[0037] The management of any desired control element is taken over by the control class. This contains presentation-specific attributes such as font, colour, text or position of the elements in the window. In addition, it takes care of the transfer of 3270 data from a field in the screen mask into the corresponding element and vice versa. The control class contains the following methods:
[0038] Specific elements, such as, for example, input field, PushButton and CheckBox are then inherited from this class. In this class the methods of the top class are partially overwritten, e.g. the showValue method must be implemented specifically for each control element.
[0039] There is a class Window for the management of the elements in a window. This too is a sub-class of Control and again contains a list of objects in the class Control. It initialises the control elements, manages the layout and triggers the imaging process between the PC values and the values from the 3270 data for the individual elements. Window contains the following additional methods:
[0040] In order to make the code available for a PC window, the application developer must define a class which is derived from Window, such as, for example,
[0041] class MyWindow extends window
[0042] The application developer of Window and hence also of MyWindow sets Window title, Layout and other presentation attributes for the window. Within this class the method initcontrol must be overwritten, in order to define the elements “Input 1”, “Input 2” and the buttons, i.e. initControl must contain the following code:
[0043] Control control
[0044] control=addEntryfield
[0045] control=addCheckBox
[0046] control=addPushButton
[0047] In order to make the individual elements also the relevant definitions for those of the 3270 data, the code appears as follows:
[0048] control=addEntryfield
[0049] control.setMappingParameter
[0050] control=addCheckBox
[0051] control.setMappingParameter
[0052] control=addPushButton
[0053] control.setMapKeySequence
[0054] Finally the method showWindow is called to signal that all elements have been defined and the window can be imaged. From this point the whole of the management of the window in respect of construction and behaviour is taken over by the class library.
[0055] If the PC window was defined by a tool which permits access to the window definition through a programmed interface, the code can be automatically generated. In the case of a window definition produced by a face-lifting tool, all attributes relevant to the 3270 data can be used for generating the code.
[0056] For the method described in FIG. 5a/b for generating a graphics user interface, the code appears in detail as follows:
[0057] The present invention therefore describes a process for the mapping of a text oriented user interface of a program to a graphics user interface without the necessity of changing the program itself, where the graphics user interface can be started from any network environment. A prerequisite for this is that the user interface to be created is written in a platform-independent language, such as Java. Here the process of the invention serves as a development tool based on standard Java classes and is extended by the classes required for communication between text-oriented and graphics user interface. Because of its platform-independent programming this development tool can be installed on any server within a network. Using this development tool, the application developer can quickly and easily develop a corresponding graphics mask for any text-oriented mask of an application with little cost in programming.
[0058] The graphics masks thus produced can be stored on a server in the Internet and made available either free or for a charge to specific user groups. In this case the user can download the maskproduced to the working memory of his PC and run it from there. This has the advantage that changes to the graphics interface only require to be made on the server. This eliminates distribution of the software for the changed application to numerous PCs.
[0059] A further advantage of the present invention resides in the fact that the programming of the graphics user interface is so simple that the code can even be generated automatically, if a PC window has been defined by means of a graphics tool which permits access to window definitions through a programmed interface.
Claims
What is claimed is:
1. A method for mapping a text-oriented user interface to a gaphics user interface, comprising:
automatically altering properties of control elements of a standard Java class library based on changes in the text-oriented user interface so as to dynamically react to changes in the text-oriented user interface to provide an extended Java class library;
generating a gaphics user interface corresponding to the text-oriented user interface utilizing the extended Java class library so that the graphics user interface automatically reflects the changes in the text-oriented user interface;
wherein the step of automatically altering properties of control elements of a standard Java class library comprises the steps of:
accessing a window definition associated with the text-oriented user interface so as to determine attributes associated with the window definition; and
overwriting portions of the standard Java class library utilizing the determined attributes so as to provide the extended Java class library based on the determined attributes.
2. A method according to claim 1, wherein the step of accessing comprises the step of utilizing a face-lifting tool to determine attributes associated with the window.
3. A method according to claim 1, wherein the step of accessing comprises accessing a window definition utilizing a programming interface of an application which provides the window definition.
4. A system for mapping a text-oriented user interface to a graphics user interface, comprising:
means for automatically altering properties of control elements of a standard Java class library based on changes in the text-oriented user interface so as to dynamically react to changes in the text-oriented user interface to provide an extended Java class library;
means for generating a graphics user interface corresponding to the text-oriented user interface utilizing the extended Java class library so that the graphics user interface automatically reflects the changes in the text-oriented user interface;
wherein the means for automatically altering properties of control elements of a standard Java class library comprises:
means for accessing a window definition associated with the text-oriented user interface so as to determine attributes associated with the window definition; and
means for overwriting portions of the standard Java class library utilizing the determined attributes so as to provide the extended Java class library based on the determined attributes.
5. A system according to claim 4, wherein the means for accessing comprises a face-lifting tool to determine attributes associated with the window.
6. A system according to claim 4, wherein the means for accessing comprises means for accessing a window definition utilizing a programming interface of an application which provides the window definition.
7. A computer program product stored in a computer readable medium for mapping a text-oriented user interface to a graphics user interface, comprising:
computer readable pro=am code for automatically altering properties of control elements of a standard Java class library based on changes in the text-oriented user interface so as to dynamically react to changes in the text-oriented user interface to provide an extended Java class library;
computer readable program code for generating a graphics user interface corresponding to the text-oriented user interface utilizing the extended Java class library so that the graphics user interface automatically reflects the changes in the text-oriented user interface;
wherein the computer readable program code for automatically altering properties of control elements of a standard Java class library comprises:
computer readable program code for accessing a window definition associated with the text-oriented user interface so as to determine attributes associated with the window definition; and
computer readable program code for overwriting portions of the standard Java class library utilizing the determined attributes so as to provide the extended Java class library based on the determined attributes.
8. A computer program product according to claim 7, the computer readable program code for accessing comprises computer readable program code for utilizing a face-lifting tool to determine attributes associated with the window.
9. A computer program product according to claim 7, wherein the computer readable program code for accessing comprises computer readable program code for accessing a window definition utilizing a programming interface of an application which provides the window definition.
Patent Citations (9)
| Patent | Date | Inventor | Cited By |
|---|---|---|---|
| US5767851 | 1998-06-01 | Yee et al. | Examiner |
| US5812864 | 1998-09-01 | McCoy et al. | Examiner |
| US5819067 | 1998-10-01 | Lynch | Examiner |
| US5884097 | 1999-03-01 | Li et al. | Examiner |
| US5896522 | 1999-04-01 | Ward et al. | Examiner |
| US5911070 | 1999-06-01 | Solton et al. | Examiner |
| US5912669 | 1999-06-01 | Hsia | Examiner |
| US5923878 | 1999-07-01 | Marsland | Examiner |
| US6014702 | 2000-01-01 | King et al. | Examiner |
Non-Patent Literature (2)
- Goldberg, Michael, “Sterling gives legacy apps Internet access,” Computerworld, pp. 1-2, Apr. 8, 1996.Applicant
- Cox, John, “Tools venders marrying the Web with existing applications,” Network World, vol. 13, pp. 1-3, Apr. 1, 1996.Examiner