eventlistener.java
来自「Micro Window Toolkit(MWT)是一个用于开发J2ME用户界面」· Java 代码 · 共 39 行
JAVA
39 行
/*
* MWT - Micro Window Toolkit
* Copyright (C) 2007 Lucas Domanico - lucazd@gmail.com
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://j2me-mwt.sourceforge.net/
*/
package mwt;
/**
* <p>An event listener interface defines the method used to dispatch events.</p>
*
* <p>Due to the small device's limitations, there is not an event listener hierarchy.<br>
* Instead, events are classified by an integer value.<br>
* Negative values are reserved for future MWT extensions and 0 is used for undefined
* event types.</p>
*/
public interface EventListener {
/** Constant for undefined event types. */
final static public int EVENT_UNDEFINED = 0;
/** Constant for action event types. */
final static public int EVENT_ACTION = -1;
/**
* Processes an event.<br>
* Parameters depend on how the caller invokes the event. However, the event type
* should be an EventListener EVENT_* constant (or any custom event type) and
* the component should be the sender.
* @param eventType The event type
* @param c An optional component
* @param args Optional args
*/
public void processEvent(int eventType, Component c, Object[] args);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?