Package com.macrofocus.common.selection

# Interface MutableSingleSelection<E>

All Superinterfaces:
  `Iterable<E>`, `MutableSelection<E>`, `Selection<E>`, `SingleSelection<E>`

All Known Implementing Classes:
  `AbstractMutableSingleSelection`, `BeanSingleSelection`, `NullSingleSelection`, `PropertySingleSelection`, `SimpleSingleSelection`

@JsType public interface MutableSingleSelection<E> extends SingleSelection<E>, MutableSelection<E>
Defines the requirements for a single selection that can change.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `setSelected(E element)`
  Change the selection to the given element.

  ### Methods inherited from interface java.lang.Iterable

  `forEach, iterator, spliterator`

  ### Methods inherited from interface com.macrofocus.common.selection.MutableSelection

  `clearSelection, setEnabled, setSelectedElements, setSelectedElementsState, setSelectedIterable, setSelectedIterableState, setSelectedState`

  ### Methods inherited from interface com.macrofocus.common.selection.Selection

  `addSelectionListener, addWeakSelectionListener, getSelectedCount, getSelectedSet, isActive, isEnabled, isSelected, removeSelectionListener, removeSelectionListeners`

  ### Methods inherited from interface com.macrofocus.common.selection.SingleSelection

  `addSingleSelectionListener, addWeakSingleSelectionListener, getSelected, removeSingleSelectionListener`

- ## Method Details

  - ### setSelected

    void setSelected(E element)
    Change the selection to the given element.
    Specified by:
      `setSelected` in interface `MutableSelection<E>`
    Parameters:
      `element` - the element to replace the current selection.