Package com.macrofocus.common.selection

# Class SingleSelectionEvent<E>

java.lang.Object
com.macrofocus.common.selection.AbstractSelectionEvent<E>
com.macrofocus.common.selection.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

  Modifier and Type
  Method
  Description
  `Iterable<E>`
  `getAffected()`
  `E`
  `getCurrentSelection()`
  `SingleSelection<E>`
  `getModel()`
  `E`
  `getPreviousSelection()`
  `boolean`
  `isAffected(E element)`
  `String`
  `toString()`

  ### Methods inherited from class com.macrofocus.common.selection.AbstractSelectionEvent

  `getSelected, getUnselected`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### SingleSelectionEvent

    public SingleSelectionEvent(SingleSelection<E> model, boolean previousActive, boolean currentActive, E previousSelection, E currentSelection)

- ## Method Details

  - ### getModel

    public SingleSelection<E> getModel()

  - ### getPreviousSelection

    public E getPreviousSelection()

  - ### getCurrentSelection

    public E getCurrentSelection()

  - ### isAffected

    public boolean isAffected(E element)

  - ### getAffected

    public Iterable<E> getAffected()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`