com.sap.ip.me.api.runtime.awt
Class AWTConfigurationUI

java.lang.Object
  extended bycom.sap.ip.me.api.runtime.awt.AWTConfigurationUI

public class AWTConfigurationUI
extends java.lang.Object

AWT Home FrameConfiguration Copyright: Copyright (c) 2002 Company: SAP AG

Version:
1.0 example: Message message = new Message(HomeFrame.getInstance(), infMsg, level, displayText); message.setSize(AWTConfigurationUI.PREFERRED_WIDTH, AWTConfigurationUI.PREFERRED_HEIGHT);
Author:
SAP

Field Summary
static int ERROR
          Description of the Field
static int PREFERRED_HEIGHT
          Description of the Field
static int PREFERRED_WIDTH
          Description of the Field
static int WARNING
          Description of the Field
 
Constructor Summary
AWTConfigurationUI()
           
 
Method Summary
static java.awt.Dialog createMsgBox(java.lang.String infMsg, int level, java.lang.String displayText)
          Creates a message box
 void doRepaint()
          forces a repaint at the UI
static java.awt.Point getCenteredWindowOrigin()
          returns the windows origin coordinats
static void goHome()
          shows the welcome screen of the mobile infrastructure
static void register(FrameworkInterface frameworkPara)
          registers a framework
static void setMenu(java.awt.Menu menu)
          insert in the Mobile Infrastructure framework menu bar the application menu
static void setMenuVisible(boolean visible)
          show and hide the menu bar
static void setTitle(java.lang.String title)
          sets the title of the framework window title
static void unregister()
          unregisters the framework
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFERRED_WIDTH

public static final int PREFERRED_WIDTH
Description of the Field

See Also:
Constant Field Values

PREFERRED_HEIGHT

public static final int PREFERRED_HEIGHT
Description of the Field

See Also:
Constant Field Values

ERROR

public static final int ERROR
Description of the Field

See Also:
Constant Field Values

WARNING

public static final int WARNING
Description of the Field

See Also:
Constant Field Values
Constructor Detail

AWTConfigurationUI

public AWTConfigurationUI()
Method Detail

setMenu

public static void setMenu(java.awt.Menu menu)
insert in the Mobile Infrastructure framework menu bar the application menu

Parameters:
menu - The new menu

setMenuVisible

public static void setMenuVisible(boolean visible)
show and hide the menu bar

Parameters:
visible - true, visible and false, invisible

goHome

public static void goHome()
shows the welcome screen of the mobile infrastructure


register

public static void register(FrameworkInterface frameworkPara)
registers a framework

Parameters:
frameworkPara - Description of the Parameter

unregister

public static void unregister()
unregisters the framework


doRepaint

public void doRepaint()
forces a repaint at the UI


createMsgBox

public static java.awt.Dialog createMsgBox(java.lang.String infMsg,
                                           int level,
                                           java.lang.String displayText)
Creates a message box

Parameters:
infMsg - info
level - level this means warning, info, etc.
displayText - the displayed text
Returns:
reference to the dialog

getCenteredWindowOrigin

public static java.awt.Point getCenteredWindowOrigin()
returns the windows origin coordinats


setTitle

public static void setTitle(java.lang.String title)
sets the title of the framework window title

Parameters:
title - windows title


Copyright © 2005 SAP AG. All Rights Reserved.