📄 eventlistener.java
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -