⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listcomponent.java

📁 j2me下的1套UI框架.包含j2me开发中会应用的各种低级组件
💻 JAVA
字号:
package com.jmobilecore.ui.core;

import javax.microedition.lcdui.Font;

/**
 * The interface ListComponent is required for all list-related components.
 * In this respect, the class ListComponent is analogous to the abstract superclass Component
 * for jMobileCore components.
 *
 * @author Greg Gridin
 */
public interface ListComponent {

    /**
     * Get textual representation of the <code>ListComponent</code>
     *
     * @return the textual representation of the component
     */
    public String getText();

    /**
     * Sets the textual representation of the <code>ListComponent</code>
     *
     * @param text the new textual representation of the component
     */
    public void setText(String text);

    /**
     * Get the list component's font
     *
     * @return the current font
     */
    public Font getFont();

    /**
     * Sets the font of this list component.
     *
     * @param font the font to become this list component's font;
     */
    public void setFont(Font font);

    /**
     * Get the key code shortcut for this list component
     *
     * @return the keycode shortcut
     */
    public int getShortcut();

    /**
     * Sets the key code shortcut for this list component
     *
     * @param shortcut the keycode - new shortcut value
     */
    public void setShortcut(int shortcut);

    /**
     * Get the object representing the list component's action
     *
     * @return the object associated with this list component
     */
    public Object getAction();

    /**
     * Sets the object as list component's action
     *
     * @param action the object - new action value
     */
    public void setAction(Object action);

} // interface ListComponent

⌨️ 快捷键说明

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