java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
org.progeeks.meta.ListPropertyChangeEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ListPropertyChangeEvent
- extends java.beans.PropertyChangeEvent
An extension to the standard PropertyChangeEvent that provides
information about changes to the list. Standard property change
events don't handle this very well since the list object itself
will be the same.
- Version:
- $Revision: 1.2 $
|
Method Summary |
int |
getFirstIndex()
Returns the first index of the modified range. |
int |
getLastIndex()
Returns the last index of the modified range. |
int |
getType()
Returns the type of change done, one of: INSERT, UPDATE, or DELETE. |
INSERT
public static final int INSERT
- See Also:
- Constant Field Values
UPDATE
public static final int UPDATE
- See Also:
- Constant Field Values
DELETE
public static final int DELETE
- See Also:
- Constant Field Values
firstIndex
private int firstIndex
lastIndex
private int lastIndex
type
private int type
ListPropertyChangeEvent
public ListPropertyChangeEvent(java.lang.Object source,
java.lang.String propertyName,
java.lang.Object list,
int firstIndex,
int lastIndex,
int changeType)
ListPropertyChangeEvent
public ListPropertyChangeEvent(java.lang.Object source,
ListPropertyChangeEvent event)
- Creates a copy of the specified event but using a different source.
getFirstIndex
public int getFirstIndex()
- Returns the first index of the modified range. For deleted elements, this
will refer to the index of the element prior to being removed. For added
elements, it refers to the index after being added.
getLastIndex
public int getLastIndex()
- Returns the last index of the modified range. For deleted elements, this
will refer to the index of the element prior to being removed. For added
elements, it refers to the index after being added.
getType
public int getType()
- Returns the type of change done, one of: INSERT, UPDATE, or DELETE.