valuechoice.java

来自「This is a resource based on j2me embedde」· Java 代码 · 共 46 行

JAVA
46
字号
package com.sun.midp.appmanager;import java.util.Vector;/** *  Interfase represente the set of pairs of ID and label. *  One entity id market as selected. *  It can be used to represent the data for exclusive *  option buttons where each option has an ID. */interface ValueChoice {    /**     * Returns the ID of the selected item.     *     * @return ID of selected element     */    int getSelectedID();    /**     * Returns ID of specified item.     * @param index item index     * @return item ID     */    int getID(int index);    /**     * Returns label of specified choice items.     * @param index item index     * @return label     */    String getLabel(int index);    /**     * Returns count of items     * @return count     */    int getCount();    /**     * Returns choice title.     * @return title     */    String getTitle();}

⌨️ 快捷键说明

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