Interface RemoveItemHandler<C extends HasItems<?,?,?>, S extends HasIdentifier<?,?>>

Type Parameters:
C - the type of the component that contains the items, which extends HasItems
S - the type of the subcomponent representing an item, which extends HasIdentifier
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RemoveItemHandler<C extends HasItems<?,?,?>, S extends HasIdentifier<?,?>>
Functional interface for handling the removal of items from a component that contains a collection of items. This interface is designed to provide a callback mechanism to be invoked whenever an item is removed from the associated component.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onRemove(C component, S item)
    Handles the removal of an item from a component containing a collection of items.
  • Method Details

    • onRemove

      void onRemove(C component, S item)
      Handles the removal of an item from a component containing a collection of items. This method is intended to be called whenever an item is removed from the component, allowing for custom processing or updates related to the removal.
      Parameters:
      component - the component from which the item is removed
      item - the item being removed from the component