public class TLcdListEvent<T> extends TLcdCollectionEvent<T>
ILcdList
ILcdListListener
,
Serialized FormTLcdCollectionEvent.Type
source
Constructor and Description |
---|
TLcdListEvent(ILcdList<T> aList,
TLcdCollectionEvent.Type aType,
T aElement,
int aOldIndex,
int aNewIndex,
boolean aIsAdjusting)
Create a new event describing a change in
aList |
Modifier and Type | Method and Description |
---|---|
int |
getNewIndex()
Returns the index of the element in the list after the change, or -1 when the list no longer
contains the element after the change.
|
int |
getOldIndex()
Returns the index of the element in the list before the change occurred, or -1 when the list did
not contain the element before the change occurred.
|
ILcdList<T> |
getSource() |
getElement, getType, isAdjusting
toString
public TLcdListEvent(ILcdList<T> aList, TLcdCollectionEvent.Type aType, T aElement, int aOldIndex, int aNewIndex, boolean aIsAdjusting)
aList
aList
- The list in which the change occured.aType
- The type describing the nature of change.aElement
- The element which caused the change.aOldIndex
- The index of the element in the list before the change, or -1 if the list
did not contain the element before the change.aNewIndex
- The index of the element in the list after the change, or -1 if the list no
longer contains the element after the changeaIsAdjusting
- true
if more changes will be made to the collection after this
change, false
otherwisepublic int getOldIndex()
public int getNewIndex()
public ILcdList<T> getSource()
getSource
in class TLcdCollectionEvent<T>