Class RibbonElementsInjectionHelper<T>
java.lang.Object
org.ametys.core.ui.ribbonconfiguration.RibbonElementsInjectionHelper<T>
- Type Parameters:
T
- The type of element to inject
Helper for the ribbon, for injecting elements inside another elements' container
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRibbonElementsInjectionHelper
(List<T> elements, Logger logger) Map a list of elements by they order to allows for elements injection -
Method Summary
Modifier and TypeMethodDescriptionvoid
injectElements
(T inject, String order) Inject an element into the list of elements
-
Field Details
-
_elements
The list of elements -
_logger
Logger
-
-
Constructor Details
-
RibbonElementsInjectionHelper
Map a list of elements by they order to allows for elements injection- Parameters:
elements
- The list of elementslogger
- The logger
-
-
Method Details
-
injectElements
Inject an element into the list of elements- Parameters:
inject
- The element to injectorder
- The order property.
-