.#menueventlistener.java.1.2

来自「国外的j2me播放器软件」· 2 代码 · 共 49 行

2
49
字号
package no.auc.one.portableplayer.userinterface;

public interface MenuEventListener {

    /**
     * Default menu action. Does nothing
     */
    public static final int MENUACTION_DO_NOTHING       = 0;

    /**
     * Menu will repaint itself. Useful for a MenuElement which redraws itself.
     */
    public static final int MENUACTION_REPAINT          = 2;

    /**
     * Menu should display the children of this MenuElement.
     */
    public static final int MENUACTION_DISPLAY_CHILDREN = 3;

    /**
     * Menu should display the elements of the grandparent for this MenuElement.
     */
    public static final int MENUACTION_DISPLAY_GRANDPARENT = 4;
    
    /**
     * User activated the MenuElement.
     * 
     * @return The return value describes what the MenuElement wants the Menu
     *         to do next. Possible values are the MENUACTION_* constants.
     */
    public int menuAction(MenuElementBase me);
    
    /**
     * User wants to move back / up one level in the hierarchy.
     *
     * @return The return value describes what the MenuElement wants the Menu
     *         to do next. Possible values are the MENUACTION_* constants.
     */
    public int menuNavigateBack(MenuElementBase me);

    /**
     * User wants to move into / down one level in the hierarchy.
     *
     * @return The return value describes what the MenuElement wants the Menu
     *         to do next. Possible values are the MENUACTION_* constants.
     */
    public int menuNavigateInto(MenuElementBase me);
}

⌨️ 快捷键说明

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