FileDocCategorySizeDatePackage
ChamDisplayTunnel.javaAPI DocphoneME MR2 API (J2ME)3328Wed May 02 18:00:20 BST 2007com.sun.midp.chameleon

ChamDisplayTunnel

public interface ChamDisplayTunnel
The ChamDisplayTunnel interface is a special interface which defines the relationship between Chameleon and the lcdui Display class. It exists to provide cross-package access from the Chameleon user interface library to the lcdui Display class.

Fields Summary
Constructors Summary
Methods Summary
public voidcallItemListener(javax.microedition.lcdui.Command cmd, javax.microedition.lcdui.ItemCommandListener listener)
This method is used by Chameleon to indicate that an item command has been selected.

param
cmd the Command which was selected
param
listener the item CommandListener which was established at the time the Command was added

public voidcallPaint(javax.microedition.lcdui.Graphics g)
This method is used by Chameleon to paint the current Displayable.

param
g the graphics context to paint with

public voidcallScreenListener(javax.microedition.lcdui.Command cmd, javax.microedition.lcdui.CommandListener listener)
This method is used by Chameleon to indicate that a screen command has been selected.

param
cmd the Command which was selected
param
listener the CommandListener which was established at the time the Command was added

public voidcallScrollContent(int scrollType, int thumbPosition)
This method is used by Chameleon to invoke Displayable.uCallScrollContent() method.

param
scrollType scrollType
param
thumbPosition

public voidcallSizeChanged(int w, int h)
This method is used by Chameleon to invoke Displayable.sizeChanged() method.

param
w the new width
param
h the new height

public voidscheduleRepaint()
This method is used by Chameleon to schedule a paint event with the event scheduler. This will result in a subsequent paint() call to Chameleon on the event thread.

public voidupdateScrollIndicator()
Updates the scroll indicator.