public class ItemListEvent
extends java.lang.Object
Constructor and Description |
---|
ItemListEvent(Item item) |
ItemListEvent(Item item,
int index) |
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Gets the index of the item within its containing collection.
|
Item |
getItem()
Gets the item related to the event.
|
void |
setIndex(int index)
Sets the index of the item within its containing collection.
|
public ItemListEvent(Item item, int index)
item
- The item related to the event.index
- The zero-based index of the item within its containing collection.public ItemListEvent(Item item)
item
- The item related to the event.public Item getItem()
public int getIndex()
public void setIndex(int index)