J2ME中文教程 3 MIDP高级UI 的使用[26]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

 

    protected void destroyApp(boolean unconditional) {

    }

 

    protected void pauseApp() {

    }

}

 

import javax.microedition.lcdui.*;

public class Table

    extends CustomItem

    implements ItemCommandListener {

 

    private final static Command CMD_EDIT = new Command("Edit",

                                                           Command.ITEM, 1);

    private Display display;

    private int rows = 5;

    private int cols = 3;

    private int dx = 50;

    private int dy = 20;

    private final static int UPPER = 0;

    private final static int IN = 1;

    private final static int LOWER = 2;

    private int location = UPPER;

    private int currentX = 0;

    private int currentY = 0;

    private String[][] data = new String[rows][cols];

   

    // Traversal stuff    

    //indicating support of horizontal traversal internal to the CustomItem

    boolean horz;

   

    //indicating support for vertical traversal internal to the CustomItem.

    boolean vert;

本文关键:J2ME中文教程 3 MIDP高级UI 的使用
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top