Class RibbonElementsInjectionHelper<T>

java.lang.Object
org.ametys.core.ui.ribbonconfiguration.RibbonElementsInjectionHelper<T>
Type Parameters:
T - The type of element to inject

public class RibbonElementsInjectionHelper<T> extends Object
Helper for the ribbon, for injecting elements inside another elements' container
  • Field Details

  • Constructor Details

    • RibbonElementsInjectionHelper

      public RibbonElementsInjectionHelper(List<T> elements, Logger logger)
      Map a list of elements by they order to allows for elements injection
      Parameters:
      elements - The list of elements
      logger - The logger
  • Method Details

    • injectElements

      public void injectElements(T inject, String order)
      Inject an element into the list of elements
      Parameters:
      inject - The element to inject
      order - The order property.