first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user