Package io.guise.framework.event
Class ListSelectionEvent<V>
java.lang.Object
java.util.EventObject
com.globalmentor.event.AbstractEvent
- Type Parameters:
V
- The type of values selected.
- All Implemented Interfaces:
com.globalmentor.event.Event
,GuiseEvent
,Serializable
An event indicating the list selection has been modified. An added or removed element represents an added or removed index of the selection. 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
ConstructorDescriptionListSelectionEvent
(ListSelectModel<V> source) Source constructor for general selection modification.ListSelectionEvent
(ListSelectModel<V> source, Integer addedElement, Integer removedElement) Source constructor for an added and/or removed element. -
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
toString
-
Constructor Details
-
ListSelectionEvent
Source constructor for general selection modification.- Parameters:
source
- The object on which the event initially occurred.- Throws:
NullPointerException
- if the given source isnull
.
-
ListSelectionEvent
Source constructor for an added and/or removed element.- Parameters:
source
- The object on which the event initially occurred.addedElement
- The index that was added to the selection, ornull
if no index was added or it is unknown whether or which indices were added.removedElement
- The index that was removed from the selection, ornull
if no index was removed or it is unknown whether or which indices were removed.- Throws:
NullPointerException
- if the given source isnull
.
-
-
Method Details
-
getSource
- Specified by:
getSource
in interfacecom.globalmentor.event.Event
- Overrides:
getSource
in classEventObject
-