collectionevent.java
来自「本程序是有IBM开发的一个基于数据表格的组件,里面有相关的例子和DOC,本站资料」· Java 代码 · 共 46 行
JAVA
46 行
package com.ibm.j2x.event;
import java.util.Collection;
import java.util.EventObject;
import com.ibm.j2x.util.collection.ObservableCollection;
/**
* The CollectionEvent provides information on an ObservableCollection object
* when it has been modified.
* @author MAbernethy
*/
public class CollectionEvent extends EventObject
{
/** The constant for an object added */
public static final int ADD = 0;
/** The constant for an object removed */
public static final int REMOVE = 1;
/** The constant for an object modified */
public static final int MODIFY = 2;
private int type;
/**
* Creates a CollectionEvent
* @param source the ObservableCollection that threw the event
* @param type the type of event
*/
public CollectionEvent(ObservableCollection source, int type)
{
super(source);
this.type = type;
}
/**
* Gets the event type
* @return either ADD, REMOVE, or MODIFY
*/
public int getType()
{
return type;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?