You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.data.binder.

Interface HasItemComponents<T>

    • Method Detail

      • addComponents

        default void addComponents​(T afterItem,
                                   Component... components)

        Adds the components after the given item.

        Parameters:

        afterItem - item to add components after

        components - components to add after item

        Throws:

        IllegalArgumentException - if this component doesn't contain the item

      • prependComponents

        default void prependComponents​(T beforeItem,
                                       Component... components)

        Adds the components before the given item.

        Parameters:

        beforeItem - item to add components in front of

        components - components to add before item

        Throws:

        IllegalArgumentException - if this component doesn't contain the item

      • getItemPosition

        default int getItemPosition​(T item)

        Gets the index of the child element that represents the given item.

        Parameters:

        item - the item to look for

        Returns:

        the index of the child element that represents the item, or -1 if the item is not found