Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.nokia.mid.ui
Class FullCanvas  view FullCanvas download FullCanvas.java

java.lang.Object
  extended byjavax.microedition.lcdui.Displayable
      extended byjavax.microedition.lcdui.Canvas
          extended bycom.nokia.mid.ui.FullCanvas

public abstract class FullCanvas
extends javax.microedition.lcdui.Canvas

The Softkey Codes are not generated by normal devices. In this class they are emulated with commands. SOFTKEY1 is mapped to Command.OK and SOFTKEY2 to Command.BACK. You should edit your device config file, so that OK is on the left and Back on the right.


Field Summary
static int KEY_DOWN_ARROW
           
static int KEY_END
           
static int KEY_LEFT_ARROW
           
static int KEY_RIGHT_ARROW
           
static int KEY_SEND
           
static int KEY_SOFTKEY1
           
static int KEY_SOFTKEY2
           
static int KEY_SOFTKEY3
           
static int KEY_UP_ARROW
           
 
Fields inherited from class javax.microedition.lcdui.Canvas
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP
 
Fields inherited from class javax.microedition.lcdui.Displayable
 
Constructor Summary
protected FullCanvas()
          Creates a new FullCanvas.
 
Method Summary
 void addCommand(javax.microedition.lcdui.Command cmd)
          Commands are not supported by FullCanvas
 int getHeight()
           
 int getWidth()
           
(package private)  void press(int i)
           
 void setCommandListener(javax.microedition.lcdui.CommandListener l)
          Commands are not supported by FullCanvas
 
Methods inherited from class javax.microedition.lcdui.Canvas
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, hideNotify, isDoubleBuffered, keyPressed, keyReleased, keyRepeated, paint, pointerDragged, pointerPressed, pointerReleased, repaint, repaint, serviceRepaints, showNotify
 
Methods inherited from class javax.microedition.lcdui.Displayable
isShown, removeCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_SOFTKEY1

public static final int KEY_SOFTKEY1
See Also:
Constant Field Values

KEY_SOFTKEY2

public static final int KEY_SOFTKEY2
See Also:
Constant Field Values

KEY_SEND

public static final int KEY_SEND
See Also:
Constant Field Values

KEY_END

public static final int KEY_END
See Also:
Constant Field Values

KEY_SOFTKEY3

public static final int KEY_SOFTKEY3
See Also:
Constant Field Values

KEY_UP_ARROW

public static final int KEY_UP_ARROW
See Also:
Constant Field Values

KEY_DOWN_ARROW

public static final int KEY_DOWN_ARROW
See Also:
Constant Field Values

KEY_LEFT_ARROW

public static final int KEY_LEFT_ARROW
See Also:
Constant Field Values

KEY_RIGHT_ARROW

public static final int KEY_RIGHT_ARROW
See Also:
Constant Field Values
Constructor Detail

FullCanvas

protected FullCanvas()
Creates a new FullCanvas. Adds two empty commands to emulate softkey functions.

Method Detail

addCommand

public void addCommand(javax.microedition.lcdui.Command cmd)
Commands are not supported by FullCanvas


getWidth

public int getWidth()

getHeight

public int getHeight()

setCommandListener

public void setCommandListener(javax.microedition.lcdui.CommandListener l)
Commands are not supported by FullCanvas


press

void press(int i)