|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
nl.knowledgeplaza.util.collection.CollectionEvent<T>
public class CollectionEvent<T>
The CollectionEvent provides information on an ObservableCollection object when it has been modified.
| Field Summary | |
|---|---|
static int |
ABOUT_TO_ADD
The constant for an object about to be remove |
static int |
ABOUT_TO_REMOVE
The constant for an object about to be remove |
static int |
ADDED
The constant for an object added |
static int |
MODIFIED
The constant for an object modified |
static int |
REMOVED
The constant for an object removed |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
CollectionEvent(ObservableCollection<T> source,
int type)
Creates a CollectionEvent |
|
CollectionEvent(ObservableCollection source,
int type,
Collection<T> value)
Creates a CollectionEvent |
|
CollectionEvent(ObservableCollection source,
int type,
Collection<T> value,
Collection<T> originalValue)
Creates a CollectionEvent |
|
CollectionEvent(ObservableCollection source,
int type,
T value)
Creates a CollectionEvent |
|
CollectionEvent(ObservableCollection source,
int type,
T value,
T originalValue)
Creates a CollectionEvent |
|
| Method Summary | |
|---|---|
Collection<T> |
getOriginalValue()
Gets the value that was modified (only relevant on MODIFY) |
int |
getType()
Gets the event type |
Collection<T> |
getValue()
Gets the value that is added / removed |
| 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 |
| Field Detail |
|---|
public static final int ADDED
public static final int REMOVED
public static final int MODIFIED
public static final int ABOUT_TO_ADD
public static final int ABOUT_TO_REMOVE
| Constructor Detail |
|---|
public CollectionEvent(ObservableCollection<T> source,
int type)
source - the ObservableCollection that threw the eventtype - the type of event
public CollectionEvent(ObservableCollection source,
int type,
T value)
source - the ObservableCollection that threw the eventtype - the type of eventvalue - the value that is added / removed
public CollectionEvent(ObservableCollection source,
int type,
Collection<T> value)
source - the ObservableCollection that threw the eventtype - the type of eventvalue - the value that is added / removed
public CollectionEvent(ObservableCollection source,
int type,
T value,
T originalValue)
source - the ObservableCollection that threw the eventtype - the type of eventvalue - the value that is added / removed
public CollectionEvent(ObservableCollection source,
int type,
Collection<T> value,
Collection<T> originalValue)
source - the ObservableCollection that threw the eventtype - the type of eventvalue - the value that is added / removed| Method Detail |
|---|
public int getType()
public Collection<T> getValue()
public Collection<T> getOriginalValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||