23 lines
590 B
Java
23 lines
590 B
Java
package net.sf.jasperreports.engine.design.events;
|
|
|
|
import java.beans.PropertyChangeEvent;
|
|
|
|
public class CollectionElementAddedEvent extends PropertyChangeEvent {
|
|
private static final long serialVersionUID = 10200L;
|
|
|
|
private final int addedIndex;
|
|
|
|
public CollectionElementAddedEvent(Object source, String propertyName, Object addedValue, int addedIndex) {
|
|
super(source, propertyName, null, addedValue);
|
|
this.addedIndex = addedIndex;
|
|
}
|
|
|
|
public Object getAddedValue() {
|
|
return getNewValue();
|
|
}
|
|
|
|
public int getAddedIndex() {
|
|
return this.addedIndex;
|
|
}
|
|
}
|