public class SelectionEvent
extends java.util.EventObject
Constructor and Description |
---|
SelectionEvent(java.lang.Object source)
Construct an empty Selection event from the
given source.
|
SelectionEvent(java.lang.Object source,
java.lang.Object[] added,
java.lang.Object[] removed,
java.lang.Object primary)
Construct a new Selection event from the
given source, representing the given selection
additions, removals, and primary selection.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getPrimarySelection()
Return the primary selection object.
|
java.util.Iterator |
getSelectionAdditions()
Return an iterator over the objects
added to the selection model.
|
java.util.Iterator |
getSelectionRemovals()
Return an iterator over the objects
removed from the selection model.
|
(package private) void |
set(java.lang.Object[] added,
java.lang.Object[] removed,
java.lang.Object primary)
Set the contents of the selection event.
|
public SelectionEvent(java.lang.Object source, java.lang.Object[] added, java.lang.Object[] removed, java.lang.Object primary)
SelectionEvent(java.lang.Object source)
public java.util.Iterator getSelectionAdditions()
public java.util.Iterator getSelectionRemovals()
public java.lang.Object getPrimarySelection()
void set(java.lang.Object[] added, java.lang.Object[] removed, java.lang.Object primary)