com.sap.ip.me.api.runtime.awt
Interface FrameworkInterface


public interface FrameworkInterface

The interface to decouple API and AWT framework

Author:
SAP

Method Summary
 java.awt.Dialog createMsgBox(java.lang.String infMsg, int level, java.lang.String displayText)
          Creates a message box
 void doRepaint()
          Forces a repaint of the UI
 java.awt.Point getCenteredWindowOrigin()
          returns the centeredWindowOrigin
 void goHome()
          shows the welcome screen of the mobile infrastructure
 void setMenu(java.awt.Menu menu)
          insert in the Mobile Infrastructure framework menu bar the application menu
 void setMenuVisible(boolean visible)
          show and hide the menu bar
 void setTitle(java.lang.String title)
          sets the title of the framework window title
 

Method Detail

setMenu

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

Parameters:
menu - The new menu

setMenuVisible

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

Parameters:
visible - control the visibility

goHome

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


doRepaint

public void doRepaint()
Forces a repaint of the UI


createMsgBox

public 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 java.awt.Point getCenteredWindowOrigin()
returns the centeredWindowOrigin

Returns:
returns the centeredWindowOrigin

setTitle

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