controller.java

来自「J2ME实现的手机电话本」· Java 代码 · 共 43 行

JAVA
43
字号
/*
 * Controller.java
 *
 * Created on 2006年3月17日, 上午10:02
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.j2medev.sample.phonebook;

/**
 *
 * @author Admin
 */
public interface Controller {
    
    /** Creates a new instance of Controller */
    static final int SHOW_ADD_ENTRY = 0;
    static final int SHOW_EDIT_ENTRY = 1;
    static final int SHOW_LIST_ENTRY = 2;
    static final int SHOW_DETALL_ENTRY = 3;//所有联系人的列表
    static final int SHOW_SEARCH_ENTRY = 8;
    static final int SHOW_LIST1_ENTRY = 9;
    static final int SHOW_LIST_BACK = 11;
    static final int SHOW_LOGINSET_ENTRY = 13;
    static final int SHOW_ERR_ENTRY = 14;
    static final int SHOW_PASSSET_ENTRY = 15;
    
    static final int DO_ADD_ENTRY = 4;
    static final int DO_UPDATE_ENTRY = 5;
    static final int DO_DELETE_ENTRY = 6;
    static final int DO_ENTRY_ENTRY = 10;
    static final int DO_LOGINSET_ENTRY = 12; //登录设置命令
    static final int DO_PASSSET_ENTRY = 16;  //确定密码设置
    
    
    static final int APP_EXIT = 7;
    void handleCommand(int command, Object[] arg);
    
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?