Package io.guise.framework.event
Class SetEvent<E>
java.lang.Object
java.util.EventObject
com.globalmentor.event.AbstractEvent
io.guise.framework.event.AbstractGuiseEvent
io.guise.framework.event.CollectionEvent<E>
io.guise.framework.event.SetEvent<E>
- Type Parameters:
E
- The type of elements contained in the set.
- All Implemented Interfaces:
com.globalmentor.event.Event
,GuiseEvent
,Serializable
- Direct Known Subclasses:
ListSelectionEvent
An event indicating a set has been modified. If a single element was replaced both an added and removed element will be provided. If neither an added nor a
removed element are provided, the event represents a general set modification.
- Author:
- Garret Wilson
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Methods inherited from class io.guise.framework.event.CollectionEvent
getAddedElement, getRemovedElement
Methods inherited from class io.guise.framework.event.AbstractGuiseEvent
getSession
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
Methods inherited from interface com.globalmentor.event.Event
getSource
-
Constructor Details
-
SetEvent
Source constructor for general set modification.- Parameters:
source
- The object on which the event initially occurred.- Throws:
NullPointerException
- if the given source isnull
.
-
SetEvent
Source constructor for an added and/or removed element.- Parameters:
source
- The object on which the event initially occurred.addedElement
- The element that was added to the set, ornull
if no element was added or it is unknown whether or which elements were added.removedElement
- The element that was removed from the set, ornull
if no element was removed or it is unknown whether or which elements were removed.- Throws:
NullPointerException
- if the given source isnull
.
-