Interface IMarkupIdGenerator

  • All Known Implementing Classes:
    DefaultMarkupIdGenerator
    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 IMarkupIdGenerator
    Generates markup ids for components
    • Method Detail

      • generateMarkupId

        String generateMarkupId​(Component component,
                                boolean createIfDoesNotExist)
        Generates markup id for the given component
        Parameters:
        component - The component for which to generate a markup id
        createIfDoesNotExist - When there is no existing markup id, determines whether it should be generated or whether null should be returned.
        Returns:
        The generated markup id