public class CollectionEvent<T>
extends java.util.EventObject
T is the type of item stored in the collection.| Modifier and Type | Class and Description |
|---|---|
static class |
CollectionEvent.Type
The type of change in the collection.
|
| Constructor and Description |
|---|
CollectionEvent(java.lang.Object source,
T item,
CollectionEvent.Type type)
Creates an event for an item that has no index.
|
CollectionEvent(java.lang.Object source,
T item,
int index,
CollectionEvent.Type type)
Creates an event for an item with its index.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Returns the index of the item in collection or -1 if this index is unknown.
|
T |
getItem()
Returns the added or deleted item.
|
CollectionEvent.Type |
getType()
Returns the type of event.
|
public CollectionEvent(java.lang.Object source,
T item,
CollectionEvent.Type type)
public CollectionEvent(java.lang.Object source,
T item,
int index,
CollectionEvent.Type type)
public T getItem()
public int getIndex()
public CollectionEvent.Type getType()

? Copyrights 2006-2014 eTeks - All rights reserved
Distributed under GNU General Public License