|
Sweet Home 3D 2.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
com.eteks.sweethome3d.model.CollectionEvent<T>
public class CollectionEvent<T>
Type of event notified when an item is added or deleted from a list.
T is the type of item stored in the collection.
| Nested Class Summary | |
|---|---|
static class |
CollectionEvent.Type
The type of change in the collection. |
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
CollectionEvent(Object source,
T item,
CollectionEvent.Type type)
Creates an event for an item that has no index. |
|
CollectionEvent(Object source,
T item,
int index,
CollectionEvent.Type type)
Creates an event for an item with its index. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionEvent(Object source,
T item,
CollectionEvent.Type type)
public CollectionEvent(Object source,
T item,
int index,
CollectionEvent.Type type)
| Method Detail |
|---|
public T getItem()
public int getIndex()
public CollectionEvent.Type getType()
|
Sweet Home 3D 2.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
![]() |
© Copyrights 2006-2010 eTeks - All rights reserved
Distributed under GNU General Public License |