Class SingleSelectionEvent<E>
- java.lang.Object
-
- com.macrofocus.selection.implementation.AbstractSelectionEvent<E>
-
- com.macrofocus.selection.implementation.SingleSelectionEvent<E>
-
- All Implemented Interfaces:
SelectionEvent<E>
public class SingleSelectionEvent<E> extends AbstractSelectionEvent<E>
Default implementation of a SelectionEvent for single selection.
-
-
Constructor Summary
Constructors Constructor Description SingleSelectionEvent(SingleSelection<E> model, boolean previousActive, boolean currentActive, E previousSelection, E currentSelection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<E>
getAffected()
E
getCurrentSelection()
SingleSelection<E>
getModel()
E
getPreviousSelection()
boolean
isAffected(E element)
java.lang.String
toString()
-
Methods inherited from class com.macrofocus.selection.implementation.AbstractSelectionEvent
getSelected, getUnselected
-
-
-
-
Constructor Detail
-
SingleSelectionEvent
public SingleSelectionEvent(SingleSelection<E> model, boolean previousActive, boolean currentActive, E previousSelection, E currentSelection)
-
-
Method Detail
-
getModel
public SingleSelection<E> getModel()
-
getPreviousSelection
public E getPreviousSelection()
-
getCurrentSelection
public E getCurrentSelection()
-
isAffected
public boolean isAffected(E element)
-
getAffected
public java.lang.Iterable<E> getAffected()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-