T
- The type of element to injectpublic class RibbonElementsInjectionHelper<T> extends Object
Modifier and Type | Class and Description |
---|---|
private class |
RibbonElementsInjectionHelper.ObjectOrderMapping |
Modifier and Type | Field and Description |
---|---|
protected List<T> |
_elements
The list of elements
|
protected Logger |
_logger
Logger
|
private Map<Integer,RibbonElementsInjectionHelper.ObjectOrderMapping> |
_mapping |
Constructor and Description |
---|
RibbonElementsInjectionHelper(List<T> elements,
Logger logger)
Map a list of elements by they order to allows for elements injection
|
Modifier and Type | Method and Description |
---|---|
void |
injectElements(T inject,
String order)
Inject an element into the list of elements
|
private Map<Integer,RibbonElementsInjectionHelper.ObjectOrderMapping> _mapping
public RibbonElementsInjectionHelper(List<T> elements, Logger logger)
elements
- The list of elementslogger
- The loggerpublic void injectElements(T inject, String order)
inject
- The element to injectorder
- The order property.