| com.sun.midp.lcdui.DisplayEventConsumer
DisplayEventConsumer | public interface DisplayEventConsumer (Code) | | This interface provides a set of methods to handle
display-related events: user input, drawing,
callbacks that are assosiated with displays.
Implementor of this I/F shall be instance specific
i.e. associated with a Display object instance
(ex. Display.DisplayEventConsumerImpl class).
Therefore it is assumed that target identification
(displayId -> Display/DisplayAccess/DisplayEventConsumerImpl)
is done before calling I/F methods in EventListener.
|
Method Summary | |
public void | handleCallSeriallyEvent() Called by event delivery to batch process
all pending serial callbacks. | public void | handleCommandEvent(int cmdId) Called by event delivery when an abstract Command is fired.
The parameter is an index into the list of Commands that are
current, i.e. | public void | handleInputMethodEvent(String inputText) Called by event delivery when an input method event is processed. | public void | handleInvalidateEvent() Called by event delivery to process a Form invalidation. | public void | handleKeyEvent(int keyType, int keyCode) Called by event delivery when a key press,release or repeate event
needs to be processed. | public void | handlePeerStateChangeEvent(int modelVersion, int itemPeerId, int hint) Called by event delivery to notify an ItemLF in current DisplayableLF
of a change in its native peer state. | public void | handlePointerEvent(int pointerType, int x, int y) Called by event delivery when a pointer press,release or drag event
needs to be processed.
Parameters: pointerType - pointer press, release or dragis one of EventConstants.PRESSED, EventConstants.RELEASED,or EventConstants.DRAGGED. | public void | handleRepaintEvent(int x1, int y1, int x2, int y2, Object target) Called by event delivery when a repaint should occur. | public void | handleRotationEvent() | public void | handleScreenChangeEvent(Displayable screen) Called by event delivery when a screen change needs to occur. | public void | handleScreenRepaintEvent() |
handleCallSeriallyEvent | public void handleCallSeriallyEvent()(Code) | | Called by event delivery to batch process
all pending serial callbacks.
|
handleCommandEvent | public void handleCommandEvent(int cmdId)(Code) | | Called by event delivery when an abstract Command is fired.
The parameter is an index into the list of Commands that are
current, i.e. those associated with the visible Screen.
TBD: param screenId Id of the command target (Displayable)
Parameters: cmdId - command Id |
handleInputMethodEvent | public void handleInputMethodEvent(String inputText)(Code) | | Called by event delivery when an input method event is processed.
Parameters: inputText - string to process |
handleInvalidateEvent | public void handleInvalidateEvent()(Code) | | Called by event delivery to process a Form invalidation.
|
handleKeyEvent | public void handleKeyEvent(int keyType, int keyCode)(Code) | | Called by event delivery when a key press,release or repeate event
needs to be processed.
Parameters: keyType - key press, release or repeateis one of EventConstants.PRESSED, EventConstants.RELEASED,EventConstants.REPEATED. Parameters: keyCode - key code to process |
handlePeerStateChangeEvent | public void handlePeerStateChangeEvent(int modelVersion, int itemPeerId, int hint)(Code) | | Called by event delivery to notify an ItemLF in current DisplayableLF
of a change in its native peer state.
Parameters: modelVersion - the version of the peer's data model Parameters: itemPeerId - the id of the ItemLF's peer whose state has changed Parameters: hint - some value that is interpreted only between the peers |
handlePointerEvent | public void handlePointerEvent(int pointerType, int x, int y)(Code) | | Called by event delivery when a pointer press,release or drag event
needs to be processed.
Parameters: pointerType - pointer press, release or dragis one of EventConstants.PRESSED, EventConstants.RELEASED,or EventConstants.DRAGGED. Parameters: x - x-coordinate of the pointer event Parameters: y - y-coordinate of the pointer event |
handleRepaintEvent | public void handleRepaintEvent(int x1, int y1, int x2, int y2, Object target)(Code) | | Called by event delivery when a repaint should occur.
Parameters: x1 - The origin x coordinate of the repaint region Parameters: y1 - The origin y coordinate of the repaint region Parameters: x2 - The bounding x coordinate of the repaint region Parameters: y2 - The bounding y coordinate of the repaint region Parameters: target - The optional paint target |
handleRotationEvent | public void handleRotationEvent()(Code) | | |
handleScreenChangeEvent | public void handleScreenChangeEvent(Displayable screen)(Code) | | Called by event delivery when a screen change needs to occur.
Parameters: screen - The Displayable to make current in the Display |
handleScreenRepaintEvent | public void handleScreenRepaintEvent()(Code) | | |
|
|