| java.lang.Object javax.microedition.lcdui.DisplayEventHandlerImpl
DisplayEventHandlerImpl | class DisplayEventHandlerImpl implements DisplayEventHandler,ItemEventConsumer(Code) | | This class has dual functiopnality:
First, it implements DisplayEventHandler I/F and thus provides access
to display objects (creation, preemption, set/get IDs and other properties).
Second, it implements ItemEventConsumer I/F and thus processes
LCDUI events that due to different reasons can't be associated with
Display instance specific DisplayEventConsumer objects,
but need to be processed by isolate-wide handler.
TBD: These are subjects for futher investigation to move them
to DisplayEventConsumer.
In addition, it implements a number of package private methods that work
with Display and are called locally by display/DisplayAccessor.
TBD: These are subjects for further investination to move them closer
to end users: Display & displayAccessor classes.
|
DisplayEventHandlerImpl | DisplayEventHandlerImpl()(Code) | | Package private constructor restrict creation to LCDUI package.
|
donePreempting | public void donePreempting(Object preemptToken)(Code) | | Display the displayable that was being displayed before
preemptDisplay was called.
DisplayEventHandler I/F method.
Parameters: preemptToken - the token returned from preemptDisplay |
handleItemSizeRefreshEvent | public void handleItemSizeRefreshEvent(CustomItem ci)(Code) | | Called by event delivery to refresh a CustomItem's size information.
ItemEventConsumer I/F method.
Parameters: ci - the custom item whose size information has to be changed |
handleItemStateChangeEvent | public void handleItemStateChangeEvent(Item item)(Code) | | Called by event delivery to process an Item state change.
ItemEventConsumer I/F method.
Parameters: item - the Item which has changed state |
initDisplayEventHandler | public void initDisplayEventHandler(DisplayEventProducer theDisplayEventProducer, ForegroundController theForegroundController, RepaintEventProducer theRepaintEventProducer, DisplayContainer theDisplayContainer)(Code) | | Initialize Display Event Handler.
DisplayEventHandler I/F method.
Parameters: theDisplayEventProducer - producer for display events Parameters: theForegroundController - controls which display has the foreground Parameters: theRepaintEventProducer - producer for repaint events events Parameters: theDisplayContainer - container for display objects |
initSuiteData | public void initSuiteData(boolean drawTrustedIcon)(Code) | | Initialize per suite data of the display event handler.
DisplayEventHandler I/F method.
Parameters: drawTrustedIcon - true, to draw the trusted icon in the upperstatus bar for every display of this suite |
onDisplayBackgroundProcessed | public void onDisplayBackgroundProcessed(int displayId)(Code) | | Called by Display to notify DisplayEventHandler that
Display has been sent to the background to finish
preempt process if any.
Parameters: displayId - id of Display |
preemptDisplay | public Object preemptDisplay(Displayable d, boolean waitForDisplay) throws InterruptedException(Code) | | Preempt the current displayable with
the given displayable until donePreempting is called.
To avoid dead locking the event thread his method
MUST NOT be called in the event thread.
DisplayEventHandler I/F method.
Parameters: d - displayable to show the user Parameters: waitForDisplay - if true this method will wait if thescreen is being preempted by another thread, howeverif this is called in the event dispatch thread thismethod will return null regardless of the valueof waitForDisplay an preempt token object to pass to donePreempting done ifprempt will happen, else null exception: InterruptedException - if another thread interrupts thecalling thread while this method is waiting to preempt thedisplay. |
|
|