observablecollection.java

来自「本程序是有IBM开发的一个基于数据表格的组件,里面有相关的例子和DOC,本站资料」· Java 代码 · 共 31 行

JAVA
31
字号

package com.ibm.j2x.util.collection;

import com.ibm.j2x.event.CollectionListener;

/**
 * The ObservableCollection interface acts as a super interface for all the collection
 * objects in the Observable framework.  It requires its implementors to 
 * store its own listeners.
 * <p>Although the Map and Bag are technically according to Sun not a Collection, they
 * are used through the Collections framework as if they are.  This inconsistency is
 * carried through to this package, as a Map and Bag are treated as a normal collection
 * for ease of use and consistency throughout the framework.
 * @author MAbernethy
 *
 */
public interface ObservableCollection
{
	/**
	 * Adds a CollectionListener to the collection
	 * @param l the listener
	 */
	public void addCollectionListener(CollectionListener l);
	
	/**
	 * Removes a CollectionListener to the collection
	 * @param l the listener
	 */
	public void removeCollectionListener(CollectionListener l);
}

⌨️ 快捷键说明

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