eventlistenerlist.java

来自「j2me 高级UI」· Java 代码 · 共 37 行

JAVA
37
字号
/**
 * 作者:cat 戚永城
 * 时间:2008-3-1
 * QQ:415898635
 * E-Mail:	415898635@qq.com
 * 			qyc_12345@163.com
 * 
 * */
package org.qui.event;
/**List中每种Action只能注册一次*/
public class EventListenerList {

	ActionListener a = null;

	ItemStateListener i = null;

	public EventListenerList() {

	}

	public void add(ActionListener a) {
		this.a = a;
	}

	public void add(ItemStateListener i) {
		this.i = i;
	}

	public ActionListener getActionListener() {
		return a;
	}

	public ItemStateListener getItemStateListener() {
		return i;
	}
}

⌨️ 快捷键说明

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