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

DisplayEventHandler

public interface DisplayEventHandler
This class works around the fact that public classes can not be added to a javax package by an implementation.

Fields Summary
Constructors Summary
Methods Summary
public voiddonePreempting(java.lang.Object preemptToken)
Display the displayable that was being displayed before preemptDisplay was called.

param
preemptToken the token returned from preemptDisplay

public voidinitDisplayEventHandler(DisplayEventProducer theDisplayEventProducer, ForegroundController theForegroundController, RepaintEventProducer theRepaintEventProducer, DisplayContainer theDisplayContainer)
Initialize Display Event Handler

param
theDisplayEventProducer producer for display events
param
theForegroundController controls which display has the foreground
param
theRepaintEventProducer producer for repaint events events
param
theDisplayContainer container for display objects

public voidinitSuiteData(boolean drawTrustedIcon)
Initialize per suite data of the display event handler.

param
drawTrustedIcon true, to draw the trusted icon in the upper status bar for every display of this suite

public voidonDisplayBackgroundProcessed(int displayId)
Called by Display to notify DisplayEventHandler that Display has been sent to the background to finish preempt process if any.

param
displayId id of Display

public java.lang.ObjectpreemptDisplay(javax.microedition.lcdui.Displayable d, boolean waitForDisplay)
Preempt the current displayable with the given displayable until donePreempting is called.

param
d displayable to show the user
param
waitForDisplay if true this method will wait if the screen is being preempted by another thread.
return
an preempt token object to pass to donePreempting done if prempt will happen, else null
exception
SecurityException if the caller does not have permission the internal MIDP permission.
exception
InterruptedException if another thread interrupts the calling thread while this method is waiting to preempt the display.