DisplayAccess.javaAPI DocJ2ME MIDP 2.02893Thu Nov 07 12:02:22 GMT 2002com.sun.midp.lcdui


public interface DisplayAccess implements DisplayEvents
Public interface for an object that is used to provide internal access to a Display object, across package boundaries. The object implements this interface, and is created inside the same package as Display, so that it has access to private instance data of Display as necessary.

Fields Summary
Constructors Summary
Methods Summary
public voidflush(javax.microedition.lcdui.Displayable screen, javax.microedition.lcdui.Image offscreen_buffer, int x, int y, int width, int height)
Flushes the entire off-screen buffer to the display.

screen The Displayable
offscreen_buffer The image buffer
x The left edge of the region to be flushed
y The top edge of the region to be flushed
width The width of the region to be flushed
height The height of the region to be flushed

public voidforegroundNotify(boolean hasForeground)
Notifies the display that there is a change in its foreground status.

hasForeground A flag indicating the foreground status.

public javax.microedition.lcdui.DisplaygetDisplay()
Get the Display object that is associated with this DisplayAccess.

Display The Display object.

public intgetKeyMask()
Called to get key mask of all the keys that were pressed.

keyMask The key mask of all the keys that were pressed.

public voidsetTrustedIcon(SecurityToken token, boolean drawTrusted)
Set the trusted icon for this Display. When ever this display is in the foreground the given icon will be displayed in the area reserved for the trusted icon. Setting the icon to null will clear the trusted icon. Only callers with the internal MIDP permission can use this method.

token security token of the call that has internal MIDP permission
drawTrusted true to draw the trusted icon

public booleanwantsForeground()
Get the flag indicating that the most recent call to setCurrent was for a non-null Displayable. This allows the implementation of the hint provided to the display manager to determine which MIDlet to make the foreground.

true if the MIDlet has a screen to display; otherwise false if MIDlet has indicated that it does not need the display.