FileDocCategorySizeDatePackage
DisplayAccess.javaAPI DocphoneME MR2 API (J2ME)4848Wed May 02 18:00:24 BST 2007com.sun.midp.lcdui

DisplayAccess

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

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

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

return
Display The Display object.

public DisplayEventConsumergetDisplayEventConsumer()
Get the DisplayEventConsumer associated with this display.

return
Consumer of midlet events that go through this display

public intgetDisplayHeight()
Called to get current display height.

return
Display height.

public intgetDisplayId()
Get the ID of this display.

return
Display ID

public intgetDisplayWidth()
Called to get current display width.

return
Display width.

public ForegroundEventConsumergetForegroundEventConsumer()
Get the ForegroundEventConsumer associated with this display.

return
Consumer of foreground events that go through this display

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

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

public java.lang.StringgetNameOfOwner()
Get the class name of the MIDlet that owns this display. DisplayAccess I/F method.

return
name of the MIDlet that owns this Display

public voidrequestForeground()
Called to get the display to request the foreground.

public voidsetDisplayId(int newId)
Sets the ID of this display. Shall be called only from DisplayContainer.addDisplay() during Display construction and registration in the container.

param
newId new ID for Display associated with this DisplayAccess