com.vaadin.flow.data.selection.

Class SingleSelectionEvent<C extends Component,T>

Type Parameters:

C - the selection component type

T - the type of the selected item

All Implemented Interfaces:

HasValue.ValueChangeEvent<T>, SelectionEvent<C,T>, Serializable

public class SingleSelectionEvent<C extends Component,T> extends AbstractField.ComponentValueChangeEvent<C,T> implements SelectionEvent<C,T>

Fired when the selection changes in a listing component.

Since:

1.0.

Author:

Vaadin Ltd

See Also:

  • Constructor Details

    • SingleSelectionEvent

      public SingleSelectionEvent(C listing, SingleSelect<C,T> source, T oldSelection, boolean userOriginated)

      Creates a new selection change event in a component.

      Parameters:

      listing - the listing component where the event originated

      source - the single select source

      oldSelection - the item that was previously selected

      userOriginated - true if this event originates from the client, false otherwise.

  • Method Details