Developing with SAP NetWeaver Developer Studio  |  MDK AWT Example Structure  | Example 1 JSP  |   Example 2 JSP   |  Example 3 JSP

Getting Started - Example 1 AWT

Displaying configuration information

In this AWT example program we use the same MI configuration API as in Example 1 JSP but we use the AWT runtime to display the data. The example creates a layout with header and footerpanel and a center page that displays the data. To implement the tabular representation of the center page in AWT we extended the AWT classes so that the center page can be adjusted easily to the needs of the application. Please refer the document MDK AWT Example Structure for further details about this classes and further information about AWT.

To download the example program, click here

Components

The example uses following packages:

import com.sap.ip.me.api.conf.Configuration;
import com.sap.ip.me.api.runtime.awt.AwtApplication;
import com.sap.ip.me.api.services.Log;

The following classes are implemented and contained in the application archive, that can be downloaded from above.

Java

Description
SystemInfo.java Implementation of the AwtApplication class.
Constants.java Interface defining all text strings used in SystemInfo.java.
BasicDataHandler Generates the data to be displayed.
CenterPage Implementation of the center page the displays the tabular data.
NoDetailList Implementation of the table that is displayed in the center page.

Implemented Classes in the Servlet for the Example

We create a class SystemInfo that implements the class AwtApplication and implements Constants and extends the AWT Panel class. Constants is an interface in which we define all relevant variables for the application. All variables used in Constants are written in uppercase characters. So anytime you see an uppercase variable used in class SystemInfo you will find the definition in interface Constants.

The class SystemInfo overwrites the following classes: